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

Fixing test flake for docker builds #8846

Merged
merged 1 commit into from
May 16, 2016
Merged

Conversation

brenton
Copy link
Contributor

@brenton brenton commented May 11, 2016

The problem appears to be triggered by a small number of epel mirrors. In the
past this sort of problem has been solved by upgrading nss. I updated nss
inside the centos7 container and still saw the problem. Only when I updated
openssl-libs did the problem seem to disappear.

Below you can see the error message:

One of the configured repositories failed (Unknown),
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 <repoid>

 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=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

The problem appears to be triggered by a small number of epel mirrors.  In the
past this sort of problem has been solved by upgrading nss.  I updated nss
inside the centos7 container and still saw the problem.  Only when I updated
openssl-libs did the problem seem to disappear.

Below you can see the error message:
---------------------------

One of the configured repositories failed (Unknown),
 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 <repoid>

     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=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
@brenton
Copy link
Contributor Author

brenton commented May 11, 2016

[test]

@brenton
Copy link
Contributor Author

brenton commented May 11, 2016

@dobbymoodge, fyi, I seen you've been doing some work recently on the base_ami job. Have you noticed this failure?

@dobbymoodge
Copy link
Contributor

@brenton I haven't looked into this particular issue before, but I see where it's happened a few times. LGTM.

@stevekuznetsov
Copy link
Contributor

fixes #8571

@brenton
Copy link
Contributor Author

brenton commented May 11, 2016

Doing some more testing to make sure this isn't just wishful thinking.

@brenton
Copy link
Contributor Author

brenton commented May 11, 2016

Hmm, I ran a few hundred more tests and still saw one failure. I don't think this solves the problem.

@brenton brenton closed this May 11, 2016
@brenton
Copy link
Contributor Author

brenton commented May 11, 2016

Actually, the failure I just saw was similar but for a core centos repository and not epel.

@brenton brenton reopened this May 11, 2016
@brenton
Copy link
Contributor Author

brenton commented May 11, 2016

Cannot find a valid baseurl for repo: base/7/x86_64 seems like a random centos repo failure instead of the metalink issue.

@smarterclayton
Copy link
Contributor

[test]

1 similar comment
@smarterclayton
Copy link
Contributor

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 606c905

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3838/)

@smarterclayton
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented May 16, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5917/) (Image: devenv-rhel7_4208)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 606c905

@openshift-bot openshift-bot merged commit ba8a56f into openshift:master May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants