-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Properly fail on empty repoquery version checks #4097
Conversation
aos-ci-test |
@@ -31,6 +31,13 @@ | |||
register: avail_openshift_version | |||
when: not openshift.common.is_containerized | bool | |||
|
|||
- name: Fail when unable to determine available OpenShift RPM version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you move set_fact
after Verify containers are available for upgrade
, you can put:
set_fact
Check latest available OpenShift RPM version
Fail when unable to determine available OpenShift RPM version
Verify OpenShift RPMs are available for upgrade
under common block with one not openshift.common.is_containerized | bool
when condition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had made a bunch of changes to this file to standardize stuff, including putting in blocks, but then backed it all out because I didn't want to conflate the actual change I was making to put in the one fail
task. I'll go ahead and make the other standardization changes.
33b7427
to
a67eee4
Compare
a67eee4
to
d1b5616
Compare
@ingvagabund @tbielawa Updated this PR with additional changes as follows:
|
aos-ci-test |
aos-ci-test |
aos-ci-test |
[merge] |
Flake on openshift/origin#14122 tito build error |
[merge] |
Evaluated for openshift ansible merge up to d1b5616 |
continuous-integration/openshift-jenkins/merge FAILURE (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/346/) (Base Commit: 44fc382) |
The
repoquery_cmd
could return an empty string if RPMs are not available. This PR adds a task to confirm therepoquery_cmd
returned a result, or fail with a helpful error message.Fixes #3119