Skip to content

fix tsb error message #15034

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

Merged
merged 1 commit into from
Jul 5, 2017
Merged

Conversation

jim-minter
Copy link
Contributor

No description provided.

@bparees
Copy link
Contributor

bparees commented Jul 4, 2017

lgtm [merge]

@bparees
Copy link
Contributor

bparees commented Jul 4, 2017

opened issue #15035
[merge]

@bparees
Copy link
Contributor

bparees commented Jul 5, 2017

repo mirror issue. @stevekuznetsov not sure if it's worth you looking at?

https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1227/testReport/junit/(root)/Verify%20upgrade%20targets/_localhost__Check_latest_available_OpenShift_RPM_version/

{u'package_found': False, u'returncode': 1, u'stdout': u'Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64 error was \nNo timestamp for file\n', u'cmd': u'/usr/bin/repoquery --plugins --quiet --pkgnarrow=repos --queryformat=%{version}|%{release}|%{arch}|%{repo}|%{version}-%{release} --config=/tmp/tmp4WjReN origin', u'results': {}, u'stderr': u'Repository centos-openshift-origin is listed more than once in the configuration\nRepository centos-openshift-origin-testing is listed more than once in the configuration\nRepository centos-openshift-origin-debuginfo is listed more than once in the configuration\nRepository centos-openshift-origin-source is listed more than once in the configuration\nFile /var/cache/yum/x86_64/7Server/epel/metalink.xml does not exist\n'}

[merge]

@0xmichalis
Copy link
Contributor

#15039 [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 73eb17b

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 5, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1231/) (Base Commit: fc8f3c7) (PR Branch Commit: 73eb17b) (Image: devenv-rhel7_6425)

@openshift-bot openshift-bot merged commit c9f829c into openshift:master Jul 5, 2017
@stevekuznetsov
Copy link
Contributor

@sosiouxme @rhcarvalho depends on how you guys want to handle the above -- unclear how often customers will hit the weird yum mirror stuff but it may be nice to gloss over that in the check, unclear.

@sosiouxme
Copy link
Member

sosiouxme commented Jul 5, 2017

@stevekuznetsov I don't think this was actually one of the checks, it was just a random repoquery by an upgrade task:

https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1227/consoleText
(search for "package_found" or see just above https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1227/consoleFull#32866359658b6e51eb7608a5981914356)

TASK [Check latest available OpenShift RPM version] ****************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/upgrades/pre/verify_upgrade_targets.yml:16
fatal: [localhost]: FAILED! => {
    "changed": false, 
    "failed": true, 
    "generated_timestamp": "2017-07-04 16:15:55.100249", 
    "msg": {
        "cmd": "/usr/bin/repoquery --plugins --quiet --pkgnarrow=repos --queryformat=%{version}|%{release}|%{arch}|%{repo}|%{version}-%{release} --config=/tmp/tmp4WjReN origin", 
        "package_found": false, 
        "results": {}, 
        "returncode": 1, 
        "stderr": "Repository centos-openshift-origin is listed more than once in the configuration\nRepository centos-openshift-origin-testing is listed more than once in the configuration\nRepository centos-openshift-origin-debuginfo is listed more than once in the configuration\nRepository centos-openshift-origin-source is listed more than once in the configuration\nFile /var/cache/yum/x86_64/7Server/epel/metalink.xml does not exist\n", 
        "stdout": "Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64 error was \nNo timestamp for file\n"
    }
}

Regardless, yum usage is mainly succeed/fail... there's not much way to get a structured error message and so you're left with parsing the human-readable text if you want to know what happened. I think it would likely be a good idea to make it standard to retry so that little blips in repo availability don't torpedo a long install/upgrade... possibly even clear the yum cache and retry when there's an error.

@stevekuznetsov
Copy link
Contributor

Oh sorry, totally misunderstood that task title. Agreed re: bad messages. All of the RPM tools are written in Python so some part of that communication issue stems from Python --> shell --> Python :(

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.

6 participants