Repository navigation
Closed
openshift/vagrant-openshift
#497Labels
area/infrastructurearea/testskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P1
Milestone
Description
When building the openshift/node docker image:
--- openshift/node ---
Sending build context to Docker daemon 18.94 kB
Sending build context to Docker daemon 18.94 kB
Step 1 : FROM openshift/origin
---> 6e39b07a70f9
Step 2 : MAINTAINER Devan Goodwin <[email protected]>
---> Running in 73d875dde0c7
---> 4837e7ea6aff
Removing intermediate container 73d875dde0c7
Step 3 : ADD https://copr.fedoraproject.org/coprs/maxamillion/origin-next/repo/epel-7/maxamillion-origin-next-epel-7.repo /etc/yum.repos.d/
---> 14cab38052e9
Removing intermediate container 9eb5cda1db50
Step 4 : RUN INSTALL_PKGS="libmnl libnetfilter_conntrack openvswitch libnfnetlink iptables iproute bridge-utils procps-ng ethtool socat openssl binutils xz kmod-libs kmod sysvinit-tools device-mapper-libs dbus ceph-common iscsi-initiator-utils" && yum install -y $INSTALL_PKGS && rpm -V $INSTALL_PKGS && yum clean all
---> Running in 5dfb4fa924e4
Loaded plugins: fastestmirror, ovl
http://mirror.cc.columbia.edu/pub/linux/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
...
...
One of the configured repositories failed (Extra Packages for Enterprise Linux 7 - x86_64),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable epel
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=epel.skip_if_unavailable=true
failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try.
Metadata
Metadata
Assignees
Labels
area/infrastructurearea/testskind/test-flakeCategorizes issue or PR as related to test flakes.priority/P1
Activity
cgwalters commentedon May 9, 2016
See also https://lists.centos.org/pipermail/ci-users/2016-April/thread.html
stevekuznetsov commentedon Jun 20, 2016
This has gotten worse ...
@tdawson did you say this was just EPEL mirrors being out of sync with the source? Can we mitigate failures like this in CI?
stevekuznetsov commentedon Jun 21, 2016
Upgrading this since we're seeing quite a lot of it.
@danmcp @tdawson is there any possible way for us to latch onto a stable EPEL mirror from RH so our CI doesn't suffer needlessly? Can we cache the RPMs we're actually using somewhere?
danmcp commentedon Jun 21, 2016
Mirrors are certainly possible. @tdawson Do you have any particular recommendations or advice on the best approach?
70 remaining items
gabemontero commentedon Feb 8, 2017
So I got a few cycles to mess with this today. I'm currently blocked with what seems to be a shortcomming or unsupported scenario with
imagebuilder --mountThe details:
the arg
--mount /etc/yum.repos.d/local_epel.repo:/etc/yum.repos.d/local_epel.repois getting passed into imagebuilder via the env varThen, I inspect the contents of /etc/yum.repos.d/local_epel.repo in 2 places
echoandls -lacommands in theRUNportion of https://github.com/openshift/origin/blob/master/images/base/Dockerfiledocker run -it <image id> /bin/bashon the resultingopenshift/origin-baseimage, and then ranls -la /etc/yum.repos.dIn both cases,
/etc/yum.repos.d/local_epel.repois not the file I asked to be mounted, but a directory (with no files it it).--mount /etc/yum.repos.d/local_epel.repo:/etc/yum.repos.dtheimagebuildercommand bombs.gabemontero commentedon Feb 8, 2017
@stevekuznetsov did show me something he is working on, but he's doing a
--mountwhere both src and dst are directories.stevekuznetsov commentedon Feb 8, 2017
The
-mountwill be a transient mount so doingdocker run -iton the resulting container should show no trace of the mount point.gabemontero commentedon Feb 8, 2017
Yep forgot to mention that in my ii) but that crossed my mind as well, which was why added the debug in the
Dockerfile.So seemingly 2 issues with
imagebuilder.gabemontero commentedon Feb 8, 2017
@smarterclayton stopped by ... there was a race condition at docker 1.12.2 which could cause this. Upgrading to 1.12.5 is crashing docker now, but if I can get docker healthy in the short term I'll give it another go.
gabemontero commentedon Feb 8, 2017
Yep, things improved at docker 1.12.5. The mounted file is present as a file and with the correct contents during the docker build.
On the transient mount point, the file is still there, but empty when I exec into the image:
Now, next step, I'm still trying to confirm that the epel mirror was actually used / get that working. So far,
yum info | grep local-epelis turning up bupkus.yum info | grep epelandyum info | grep extrasby comparison turn up a bunch of hits for the repos that various packages were pulled from.gabemontero commentedon Feb 8, 2017
OK, got it to work separating out the install of yum-plugin-priorities and have it precede say the install of epel-release.
yum info epel-releasethen confirms it pulled it from our mirror.Now, I got a nasty looking 404 the first time I tried to use the mirror, and then subsequent
yum installsworked. It gave @stevekuznetsov and I pause, but we are still leaning toward giving it a go.But with the current vagrant -> oct transition going on, we decided to checkpoint on Monday and see where things are with that transition before moving forward.
gabemontero commentedon Feb 15, 2017
Update:
imagebuilderon the ami's when appropriatestevekuznetsov commentedon Mar 9, 2017
Let's do the dance...
soltysh commentedon May 2, 2017
Slightly different, but still this:
in https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended_conformance_install/1590/console