Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmt should handle error due to outdated dnf cache #3277

Open
kkaarreell opened this issue Oct 10, 2024 · 1 comment · May be fixed by #3348
Open

tmt should handle error due to outdated dnf cache #3277

kkaarreell opened this issue Oct 10, 2024 · 1 comment · May be fixed by #3348
Assignees
Labels
plugin | install The prepare plugin for installing packages step | prepare Stuff related to the prepare step
Milestone

Comments

@kkaarreell
Copy link
Collaborator

From time to time I see issues like
https://artifacts.dev.testing-farm.io/9ad46c7d-ce18-4ca5-9b3f-49c26170d935/

       [101/124] rpm-sign-0:4.19.94-1.fc42.x86 100% | 112.0   B/s | 196.0   B |  00m02s
        >>> Status code: 404 for https://d2lzkl7pfhq30w.cloudfront.net/pub/fedora/linux/
        >>> Status code: 404 for http://mirror.us.leaseweb.net/fedora/linux/development/
        >>> Status code: 404 for http://mirrors.rit.edu/fedora/fedora/linux/development/
        >>> Status code: 404 for https://mirrors.rit.edu/fedora/fedora/linux/development
        >>> Status code: 404 for https://us.mirrors.cicku.me/fedora/linux/development/ra
        >>> Status code: 404 for http://us.mirrors.cicku.me/fedora/linux/development/raw
        >>> Status code: 404 for https://dl.fedoraproject.org/pub/fedora/linux/developme
        >>> Status code: 404 for http://dl.fedoraproject.org/pub/fedora/linux/developmen
        >>> No more mirrors to try - All mirrors were already tried without success
        [102/124] gdb-minimal-0:15.1-2.fc42.x86   0% | 378.9 KiB/s |  31.5 KiB |  00m00s
        >>> Not finished - interrupted by error: Cannot download Packages/r/rpm-sign-4.1
        [103/124] libverto-libev-0:0.3.2-9.fc41   0% |   0.0   B/s |   0.0   B |  00m00s
        >>> Not finished - interrupted by error: Cannot download Packages/r/rpm-sign-4.1Failed to download packages
         Librepo error: Cannot download Packages/r/rpm-sign-4.19.94-1.fc42.x86_64.rpm: All mirrors were tried

which are happening (I believe) due to a recent but not updated repodata cache and running dnf makecache would most likely fix it.

tmt prepare.install plugin should be handle this situation, e.g. update dnf cache and rerun the command.

@psss
Copy link
Collaborator

psss commented Oct 10, 2024

Should be relatively simple to implement, let's try in 1.38.

@psss psss added this to the 1.38 milestone Oct 10, 2024
@psss psss added step | prepare Stuff related to the prepare step plugin | install The prepare plugin for installing packages labels Oct 10, 2024
@thrix thrix modified the milestones: 1.38, 1.39 Oct 25, 2024
@bajertom bajertom linked a pull request Nov 8, 2024 that will close this issue
1 task
@psss psss modified the milestones: 1.39, 1.40 Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin | install The prepare plugin for installing packages step | prepare Stuff related to the prepare step
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants