You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: Failed to synchronize cache for repo 'updates' #11452
As these types of issues proliferate, I think we need a better strategy for interacting with mirrors in general. Can we reduce the yum traffic? When we're building the DIND images do we really need to be doing the installs every time? Why can't we just layer the code/variant bits on top and update the base image with OS dependencies once a week or so? @marun
@stevekuznetsov I don't think this is a connectivity issue. In addition to these ci failures, I've seen the same error building fedora images locally or via the docker hub. Something is up with the fedora repos.
I think it's a good idea to build regularly to ensure we catch problems before they impact too many people on the networking team. But that doesn't have to be with every PR. I think a good strategy would be to bake the dind images into the ami and then rely on the extended and post-merge jobs to catch build-related regressions.
I don't know enough about the environment to say for certain but I would be surprised if the caches or other dnf data were actually interacting between the two builds. @smarterclayton would you expect that sort of cross-pollination to be possible?
openshift/dind-node is built "FROM openshift/dind", so its "RUN dnf -y update" is running against whatever state the openshift/dind build left the dnf caches in. Obviously this shouldn't actually be a problem, but if there was some bug in dnf's regenerate-caches-from-scratch code, it wouldn't get seen much in normal operation (since people don't normally "dnf clean all") so that might explain why we see this problem all the time but ordinary fedora users don't
Error: Failed to synchronize cache for repo 'fedora'
error: build error: The command '/bin/sh -c dnf update -y --releasever=25' returned a non-zero code: 1
Strangely it works on my Desktop's Docker:
Step 5 : RUN dnf update -y --releasever=25
---> Running in 1c14b7622cac
Last metadata expiration check: 0:00:46 ago on Wed May 17 14:42:19 2017.
Dependencies resolved.
================================================================================
Package Arch Version Repository
Size
================================================================================
Upgrading:
audit-libs x86_64 2.7.6-1.fc25 updates 107 k
ca-certificates noarch 2017.2.14-1.0.fc25 updates 477 k
coreutils x86_64 8.25-17.fc25 updates 1.1 M
coreutils-common x86_64 8.25-17.fc25 updates 1.9 M
This is not a transient failure. I have this error today on one dev machine with one Docker image but not a different machine with the same Docker image...this behavior appears weird...
The error appears to happen when there's some specific sort of problem on one of the fedora mirrors, which will then cause every "yum update" that hits that mirror to fail until eventually the mirror resyncs with the masters and fixes things. (If you look through the past instances of the flake, it tends to happen in bursts; it will happen 5 or 10 times in one day, and then not at all for a few weeks or months.)
If you reliably see it on one machine and not on another (at a given time), it's just because of DNS caching; one of them has resolved "mirrors.fedoraproject.org" to the mirror that has the problem, and the other has resolved it to a different mirror. If you can actually figure out which mirror is having the problems then filing a bug against the fedora infrastructure and/or emailing the maintainer of that mirror might help them figure out exactly what causes this...
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Activity
csrwng commentedon Oct 19, 2016
@stevekuznetsov fyi
marun commentedon Oct 21, 2016
I've been seeing this failure regularly when I attempt to
dnf -y updatefedora24 images.marun commentedon Oct 21, 2016
I've added failure cause 'dnf update failure' to jenkins.
stevekuznetsov commentedon Oct 21, 2016
This is either an internet connectivity issue or a mirror issue... @tdawson are we mirroring
@updatesinternally somewhere we can use?tdawson commentedon Oct 21, 2016
I believe this is a Fedora only issue. We are not mirroring any plain Fedora repo's, only EPEL.
stevekuznetsov commentedon Oct 21, 2016
Yes, this is true.
As these types of issues proliferate, I think we need a better strategy for interacting with mirrors in general. Can we reduce the
yumtraffic? When we're building the DIND images do we really need to be doing the installs every time? Why can't we just layer the code/variant bits on top and update the base image with OS dependencies once a week or so? @marunmarun commentedon Oct 21, 2016
@stevekuznetsov I don't think this is a connectivity issue. In addition to these ci failures, I've seen the same error building fedora images locally or via the docker hub. Something is up with the fedora repos.
stevekuznetsov commentedon Oct 21, 2016
I understand -- if we don't build them, we don't have the issue. What are we gaining by re-installing the dependencies in every build?
marun commentedon Oct 21, 2016
I think it's a good idea to build regularly to ensure we catch problems before they impact too many people on the networking team. But that doesn't have to be with every PR. I think a good strategy would be to bake the dind images into the ami and then rely on the extended and post-merge jobs to catch build-related regressions.
marun commentedon Oct 21, 2016
Related pr: #9622
17 remaining items
stevekuznetsov commentedon Apr 28, 2017
I don't know enough about the environment to say for certain but I would be surprised if the caches or other
dnfdata were actually interacting between the two builds. @smarterclayton would you expect that sort of cross-pollination to be possible?danwinship commentedon Apr 28, 2017
openshift/dind-node is built "FROM openshift/dind", so its "RUN dnf -y update" is running against whatever state the openshift/dind build left the dnf caches in. Obviously this shouldn't actually be a problem, but if there was some bug in dnf's regenerate-caches-from-scratch code, it wouldn't get seen much in normal operation (since people don't normally "dnf clean all") so that might explain why we see this problem all the time but ordinary fedora users don't
stevekuznetsov commentedon Apr 28, 2017
Ah, I see what you mean. Was it there just to reduce the size of the image? Seems reasonable to remove it/
soltysh commentedon Apr 28, 2017
There's no cache in place, what we usually do in all our images is, we clean the cache after installation, see here.
soltysh commentedon Apr 28, 2017
OK, nvmd, I just noticed the PR removing that 🤦♂️
bparees commentedon May 4, 2017
https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/548/consoleFull#82220402358b6e51eb7608a5981914356
levysantanna commentedon May 17, 2017
Same issue here:
Strangely it works on my Desktop's Docker:
stevekuznetsov commentedon May 17, 2017
@levysantanna this is a transient failure, no reason to expect you'd be able to reproduce it
zopyx commentedon Jul 6, 2017
This is not a transient failure. I have this error today on one dev machine with one Docker image but not a different machine with the same Docker image...this behavior appears weird...
danwinship commentedon Jul 6, 2017
The error appears to happen when there's some specific sort of problem on one of the fedora mirrors, which will then cause every "yum update" that hits that mirror to fail until eventually the mirror resyncs with the masters and fixes things. (If you look through the past instances of the flake, it tends to happen in bursts; it will happen 5 or 10 times in one day, and then not at all for a few weeks or months.)
If you reliably see it on one machine and not on another (at a given time), it's just because of DNS caching; one of them has resolved "mirrors.fedoraproject.org" to the mirror that has the problem, and the other has resolved it to a different mirror. If you can actually figure out which mirror is having the problems then filing a bug against the fedora infrastructure and/or emailing the maintainer of that mirror might help them figure out exactly what causes this...
openshift-bot commentedon Feb 13, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
stevekuznetsov commentedon Feb 13, 2018
We've pruned out dependencies on
@updaetsand@epelso this should be fixed./close
nicklasring commentedon Mar 27, 2019
Still having this issue, works fine on my desktop, "Error: Failed to synchronize cache for repo 'updates'" on the server.