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

openshift-checks: have playbooks invoke std_include #5026

Merged
merged 2 commits into from
Aug 17, 2017
Merged

openshift-checks: have playbooks invoke std_include #5026

merged 2 commits into from
Aug 17, 2017

Conversation

sosiouxme
Copy link
Member

@sosiouxme sosiouxme commented Aug 8, 2017

@sdodson @kwoodson with fixing the refactor integration tests last night I was sloppy and didn't test what happens with the actual check playbooks. CI doesn't test either. They broke, of course. Here's a quick commit to start fixing that. However the health.yml checks still report:

OpenShiftCheckException: 'openshift.common.short_version' is undefined

... so did something change about setting that fact?

@rhcarvalho the adhoc playbook will of course need similar alteration. And to get the instant informational failure you'll have to move the first conditional invocation before the std_include.

@kwoodson
Copy link
Contributor

kwoodson commented Aug 8, 2017

@sosiouxme, I'll try and take a look at this.

- include: ../openshift-cluster/evaluate_groups.yml
- include: ../openshift-cluster/std_include.yml
tags:
- always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add this if the main plays of this playbook have no tags?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cargo-culting. But I did learn that tags are actually being used on playbook runs, just not in the way I expected. They're used to exclude certain things (as opposed to --tags which is a whitelist). So I left well enough alone. But thinking about it, I don't see why that use case would need to have this tagged always either.

@rhcarvalho
Copy link
Contributor

@rhcarvalho the adhoc playbook will of course need similar alteration.

I'll update #4570 accordingly.

@@ -1,5 +1,7 @@
---
- include: ../openshift-cluster/evaluate_groups.yml
- include: ../openshift-cluster/std_include.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried this locally, and I'm getting:

Failure summary:


  1. Hosts:    node1
     Play:     Gather and set facts for node hosts
     Task:     Warn user about bad openshift_hostname values
     Message:  The conditional check 'lookupip.stdout not in ansible_all_ipv4_addresses' failed. The error was: error while evaluating conditional (lookupip.stdout not in ansible_all_ipv4_addresses): Unable to look up a name or access an attribute in template string ({% if lookupip.stdout not in ansible_all_ipv4_addresses %} True {% else %} False {% endif %}).
               Make sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable
               
               The error appears to have been in '/home/vagrant/src/github.com/openshift/openshift-ansible/playbooks/common/openshift-cluster/validate_hostnames.yml': line 12, column 5, but may
               be elsewhere in the file depending on the exact syntax problem.
               
               The offending line appears to be:
               
                   failed_when: false
                 - name: Warn user about bad openshift_hostname values
                   ^ here

Strangely, only node1 failed; other 3 hosts were okay.

@sosiouxme
Copy link
Member Author

sosiouxme commented Aug 8, 2017

I'm still not sure why short_version disappeared but this one check seems to be the only thing using it so I'll just fix that and forget it exists.
test

@sosiouxme
Copy link
Member Author

aos-ci-test

@openshift-bot
Copy link

error: aos-ci-jenkins/OS_3.6_containerized for 1392837 (logs)

@openshift-bot
Copy link

success: "aos-ci-jenkins/OS_3.6_NOT_containerized, aos-ci-jenkins/OS_3.6_NOT_containerized_e2e_tests" for 1392837 (logs)

@sosiouxme
Copy link
Member Author

Not sure what happened with 1392837 - I guess try again :(

@sosiouxme
Copy link
Member Author

aos-ci-test

@openshift-bot
Copy link

success: "aos-ci-jenkins/OS_3.6_NOT_containerized, aos-ci-jenkins/OS_3.6_NOT_containerized_e2e_tests" for 1392837 (logs)

@openshift-bot
Copy link

success: "aos-ci-jenkins/OS_3.6_containerized, aos-ci-jenkins/OS_3.6_containerized_e2e_tests" for 1392837 (logs)

@sosiouxme
Copy link
Member Author

sosiouxme commented Aug 9, 2017

merge

@sosiouxme
Copy link
Member Author

sosiouxme commented Aug 9, 2017

@sosiouxme
Copy link
Member Author

https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/821/

epel is really not my friend today.

also flake openshift/origin#13975

did not see anything else that looked like a result of this PR

@rhcarvalho or @sdodson would you mind a manual merge please...

@sosiouxme
Copy link
Member Author

sosiouxme commented Aug 10, 2017

wasn't able to get past yum flake openshift/origin#8571 yesterday. hoping it's resolved today. (Looks like the latest build is at least failing for a different reason...) merge

@sosiouxme
Copy link
Member Author

aos-ci-test

@sosiouxme
Copy link
Member Author

Last error was the "template error while templating string" problem that got fixed a few days back. I rebased to start fresh.

@openshift-bot
Copy link

error: aos-ci-jenkins/OS_3.6_NOT_containerized for 0094265 (logs)

@openshift-bot
Copy link

success: "aos-ci-jenkins/OS_3.6_containerized, aos-ci-jenkins/OS_3.6_containerized_e2e_tests" for 0094265 (logs)

@sosiouxme
Copy link
Member Author

aos-ci-test

@openshift-bot
Copy link

success: "aos-ci-jenkins/OS_3.6_NOT_containerized, aos-ci-jenkins/OS_3.6_NOT_containerized_e2e_tests" for 0094265 (logs)

@openshift-bot
Copy link

success: "aos-ci-jenkins/OS_3.6_containerized, aos-ci-jenkins/OS_3.6_containerized_e2e_tests" for 0094265 (logs)

@sosiouxme
Copy link
Member Author

[merge][severity: bug]

@sosiouxme
Copy link
Member Author

863 failed on openshift/origin#12072 among others

[merge][severity: bug]

@openshift-bot
Copy link

[test]ing while waiting on the merge queue

@openshift-bot
Copy link

Evaluated for openshift ansible test up to 0094265

@openshift-bot
Copy link

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible/461/) (Base Commit: b2b9e5e) (PR Branch Commit: 0094265)

@sosiouxme
Copy link
Member Author

https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/867/ failed on yum failure openshift/origin#10162 - not sure anything else about the tests was valid.

[merge][severity: bug]

@openshift-bot
Copy link

Evaluated for openshift ansible merge up to 0094265

@openshift-bot
Copy link

openshift-bot commented Aug 17, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/869/) (Base Commit: 22fc8d8) (PR Branch Commit: 0094265) (Extended Tests: bug)

@openshift-bot openshift-bot merged commit 2d5d649 into openshift:master Aug 17, 2017
@sosiouxme sosiouxme deleted the 20170808-fix-checks branch August 18, 2017 11:22
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.

4 participants