Skip to content

Skip nfs and lb groups on openshift_version - #4495

Merged
sdodson merged 3 commits into
openshift:masterfrom
ashcrow:skip-nfs-on-requirements-check
Jun 26, 2017
Merged

sdodson merged 3 commits into
openshift:masterfrom
ashcrow:skip-nfs-on-requirements-check

Conversation

@ashcrow

@ashcrow ashcrow commented Jun 19, 2017 •

Copy link
Copy Markdown
Member

I'm not thrilled with this idea but it seems to be the least invasive. Open for cleaner options.

Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1458653

@ashcrow ashcrow added the kind/bug Categorizes issue or PR as related to a bug. label Jun 19, 2017
@ashcrow
ashcrow requested review from abutcher, sosiouxme and timlnx June 19, 2017 15:11

@timlnx timlnx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No reason to assume NFS hosts are running any OCP software. LGTM.

@ashcrow

ashcrow commented Jun 20, 2017

Copy link
Copy Markdown
Member Author

aos-ci-test

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

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

@ashcrow

ashcrow commented Jun 20, 2017

Copy link
Copy Markdown
Member Author

Looks like a one time failure as an image wasn't able to be pulled from the registry. However, this change doesn't do anything to change images. "infra flake"

@ashcrow

ashcrow commented Jun 20, 2017

Copy link
Copy Markdown
Member Author

aos-ci-test

@openshift-bot

Copy link
Copy Markdown

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

@ashcrow

ashcrow commented Jun 20, 2017

Copy link
Copy Markdown
Member Author

The health checks are doing their job. I've been seeing "infra flakes" in the last few hours and this looks to be health check finding that:

One or more required Docker images are not available:

Will wait a bit before issuing a retry.

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

error: aos-ci-jenkins/OS_3.5_containerized for d29b791 (logs)

@sosiouxme

Copy link
Copy Markdown
Member

The bug shows a fail task in the openshift_version role. So excluding the NFS host from checks won't actually address this - it needs to be fixed in openshift_version - unless openshift_version wouldn't otherwise run against NFS hosts?

This might be necessary anyway though as I'm not sure what the checks do if openshift_version doesn't initialize the version variables.

@ashcrow

ashcrow commented Jun 20, 2017

Copy link
Copy Markdown
Member Author

I follow what you're saying Luke.

It looks like there are three locations which include the role:

  • roles/openshift_health_checker/meta/main.yml: Noted here
  • roles/openshift_common/meta/main.yml: Includes without scoping hosts
  • roles/openshift_docker/meta/main.yml: Includes without scoping hosts

I'll look at trying to keep nfs and lbs out of package checking rather than skipping them within the health checks.

@ashcrow
ashcrow force-pushed the skip-nfs-on-requirements-check branch from d29b791 to 953cc19 Compare June 21, 2017 14:34
@ashcrow ashcrow changed the title Skip nfs group on requirement check Skip nfs and lb groups on openshift_version Jun 21, 2017
@ashcrow ashcrow changed the title Skip nfs and lb groups on openshift_version WIP: Skip nfs and lb groups on openshift_version Jun 21, 2017
@ashcrow
ashcrow force-pushed the skip-nfs-on-requirements-check branch 4 times, most recently from fe51e08 to 1b7c789 Compare June 21, 2017 19:19
Comment thread roles/openshift_version/tasks/main.yml Outdated
# non nfs and lb hosts as these hosts may or may not
# have subscriptions set up
- when:
- inventory_hostname not in hostvars[groups.oo_nfs_to_config]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe like this from roles/etcd_migrate/tasks/check_cluster_status.yml
when: inventory_hostname in groups.oo_etcd_to_config[0]

@ashcrow
ashcrow force-pushed the skip-nfs-on-requirements-check branch 2 times, most recently from 368119e to 6c2ab6a Compare June 22, 2017 14:00
@ashcrow

ashcrow commented Jun 22, 2017

Copy link
Copy Markdown
Member Author

@sdodson / @kwoodson Looks like that one is a no go as well ...

The error was: error while evaluating conditional (inventory_hostname not in groups.oo_nfs_to_config[0]): 'dict object' has no attribute 'oo_nfs_to_config'

@ashcrow

ashcrow commented Jun 23, 2017

Copy link
Copy Markdown
Member Author

Timed out waiting on router deploy.

     Play:     Create Hosted Resources
     Task:     openshift_hosted : Poll for OpenShift router deployment success
     Message:  One or more items failed

@ashcrow

ashcrow commented Jun 23, 2017

Copy link
Copy Markdown
Member Author

Unrelated failure:

     Play:     Configure nodes
     Task:     openshift_node : Install sdn-ovs package
     Message:  |failed expects a string or unicode

@sdodson

sdodson commented Jun 23, 2017

Copy link
Copy Markdown
Member

aos-ci-test

@openshift-bot

Copy link
Copy Markdown

error: aos-ci-jenkins/OS_3.5_NOT_containerized for 0c9d69a (logs)

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

success: "aos-ci-jenkins/OS_3.5_containerized, aos-ci-jenkins/OS_3.5_containerized_e2e_tests" for 0c9d69a (logs)

@openshift-bot

Copy link
Copy Markdown

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

@ashcrow

ashcrow commented Jun 23, 2017 •

Copy link
Copy Markdown
Member Author
     Play:     Configure nodes
     Task:     openshift_node : Install sdn-ovs package
     Message:  |failed expects a string or unicode

This is likely related to items being part of two groups. I'll add functionality in to not skip if lb/nfs+node/master.
Forgot we inverted the check.

Comment thread roles/openshift_version/tasks/main.yml Outdated
# have subscriptions set up
- when:
- inventory_hostname in groups['oo_masters_to_config']
- inventory_hostname in groups['oo_nodes_to_config']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be an or, i think this may be tripping up the test jobs where it's not working on hosts that are only nodes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking at the failure more closely it fails on 2 out of 3 hosts in the inventory so I'm pretty sure this is what's wrong.

sosiouxme and others added 2 commits June 23, 2017 16:55
openshift_health_checker requires openshift_version, and that has been
updated to require group evaluation.
Update check playbooks and integration tests to do group eval.
@ashcrow
ashcrow force-pushed the skip-nfs-on-requirements-check branch from 0c9d69a to bc9f930 Compare June 23, 2017 21:03
@ashcrow

ashcrow commented Jun 23, 2017

Copy link
Copy Markdown
Member Author
  • Switched to or
  • Updated comment for inclusive when
  • Rearranged commits

@ashcrow

ashcrow commented Jun 23, 2017

Copy link
Copy Markdown
Member Author

aos-ci-test

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

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

@openshift-bot

Copy link
Copy Markdown

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

@sosiouxme

sosiouxme commented Jun 24, 2017 •

Copy link
Copy Markdown
Member

Looks like a new test flake

[merge][severity: blocker]

@openshift-bot

Copy link
Copy Markdown

Evaluated for openshift ansible merge up to bc9f930

@openshift-bot

Copy link
Copy Markdown

continuous-integration/openshift-jenkins/merge FAILURE (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/631/) (Base Commit: d75a3c6) (PR Branch Commit: bc9f930) (Extended Tests: blocker)

@sosiouxme

Copy link
Copy Markdown
Member

@sdodson mind giving this a bump... AFAICS https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_openshift_ansible/631/consoleFull#-183799125458b6e51eb7608a5981914356 was some weird build env thing.

@sdodson

sdodson commented Jun 26, 2017

Copy link
Copy Markdown
Member

[test]

@sdodson

sdodson commented Jun 26, 2017

Copy link
Copy Markdown
Member

will merge manually based on which tests fail in that one

@openshift-bot

Copy link
Copy Markdown

Evaluated for openshift ansible test up to bc9f930

@openshift-bot

Copy link
Copy Markdown

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible/279/) (Base Commit: 576b719) (PR Branch Commit: bc9f930)

@sdodson

sdodson commented Jun 26, 2017

Copy link
Copy Markdown
Member

flake on openshift/origin#14871 again

@sdodson
sdodson merged commit 7b0acaf into openshift:master Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants