-
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
[openshift_hosted] Router/Registry #3423
Conversation
when: openshift.hosted.registry.replicas | default(none) is none | ||
|
||
- set_fact: | ||
l_node_count: "{{ (registry_nodes_json.stdout | default('{\"items\":[]}') | from_json)['items'] | length }}" | ||
l_node_count: "{{ registry_nodes.results.results[0]['items'] | length }}" |
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.
Any reason we couldn't wrap this all in a block and use vars for this instead of set_fact?
|
||
- set_fact: | ||
- name: Set fact docker_registry_route_hostname | ||
set_fact: |
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.
Same comment here about using block/vars instead of set_fact.
@@ -1,7 +1,9 @@ | |||
--- | |||
- fail: |
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.
Not related to this PR, but it might be good to switch to use assert for these use cases rather than fail.
c31a20e
to
ce2b983
Compare
fa9602d
to
0284d66
Compare
0284d66
to
7cf5cc1
Compare
aos-ci-test |
7cf5cc1 - State: success - All Test Contexts: aos-ci-jenkins/OS_unit_tests - Logs: https://aos-ci.s3.amazonaws.com/openshift/openshift-ansible/jenkins-openshift-ansible-2-unit-tests-1008/7cf5cc141d04a14096f26132998f28ece077eaa6.txt |
7cf5cc1 - State: success - All Test Contexts: "aos-ci-jenkins/OS_3.4_NOT_containerized, aos-ci-jenkins/OS_3.4_NOT_containerized_e2e_tests" - Logs: https://aos-ci.s3.amazonaws.com/openshift/openshift-ansible/jenkins-openshift-ansible-3-test-matrix-CONTAINERIZED=_NOT_containerized,OSE_VER=3.4,PYTHON=System-CPython-2.7,TOPOLOGY=openshift-cluster,TargetBranch=master,nodes=openshift-ansible-slave-1012/7cf5cc141d04a14096f26132998f28ece077eaa6.txt |
7cf5cc1 - State: success - All Test Contexts: "aos-ci-jenkins/OS_3.4_containerized, aos-ci-jenkins/OS_3.4_containerized_e2e_tests" - Logs: https://aos-ci.s3.amazonaws.com/openshift/openshift-ansible/jenkins-openshift-ansible-3-test-matrix-CONTAINERIZED=_containerized,OSE_VER=3.4,PYTHON=System-CPython-2.7,TOPOLOGY=openshift-cluster-containerized,TargetBranch=master,nodes=openshift-ansible-slave-1012/7cf5cc141d04a14096f26132998f28ece077eaa6.txt |
7cf5cc1 - State: success - All Test Contexts: "aos-ci-jenkins/OS_3.5_NOT_containerized, aos-ci-jenkins/OS_3.5_NOT_containerized_e2e_tests" - Logs: https://aos-ci.s3.amazonaws.com/openshift/openshift-ansible/jenkins-openshift-ansible-3-test-matrix-CONTAINERIZED=_NOT_containerized,OSE_VER=3.5,PYTHON=System-CPython-2.7,TOPOLOGY=openshift-cluster,TargetBranch=master,nodes=openshift-ansible-slave-1012/7cf5cc141d04a14096f26132998f28ece077eaa6.txt |
7cf5cc1 - State: success - All Test Contexts: "aos-ci-jenkins/OS_3.5_containerized, aos-ci-jenkins/OS_3.5_containerized_e2e_tests" - Logs: https://aos-ci.s3.amazonaws.com/openshift/openshift-ansible/jenkins-openshift-ansible-3-test-matrix-CONTAINERIZED=_containerized,OSE_VER=3.5,PYTHON=System-CPython-2.7,TOPOLOGY=openshift-cluster-containerized,TargetBranch=master,nodes=openshift-ansible-slave-1012/7cf5cc141d04a14096f26132998f28ece077eaa6.txt |
I'm pretty sure this broke origin-gce: https://ci.openshift.redhat.com/jenkins/job/zz_origin_gce_image/136/
We set
|
My guess is that the search for your selector from the previous step failed. https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_hosted/tasks/router/router.yml#L2-L9 Would need to see what happened in that step. @mtnbikenc, looks like we should do some output validation when doing that query for nodes with selector. |
The Origin GCE setup sets:
and there is one node with that label. |
Skipped because openshift_router_selector is set, it looks like.
|
Can we fast track a fix on monday morning? This is blocking the switch to 3.6 in origin and upgrade test automation. |
Absolutely. Can you capture debug of this variable before the set_fact? Add this to line 10: |
It's not set - the conditional isn't set because the route selector is. |
|
I'll look at this now. |
No description provided.