Bug 1642379
| Summary: | Undefined variable openshift_version in openstack playbooks | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | jliberma <jliberma> |
| Component: | Installer | Assignee: | Tzu-Mainn Chen <tzumainn> |
| Status: | CLOSED ERRATA | QA Contact: | weiwei jiang <wjiang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.11.0 | CC: | aos-bugs, chernand, eminguez, jialiu, jliberma, jokerman, mmccomas, wsun |
| Target Milestone: | --- | ||
| Target Release: | 3.11.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-20 14:11:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
jliberma@redhat.com
2018-10-24 10:05:47 UTC
I believe you're right about the PR that would fix this. I don't have an openstack environment to verify this against so assigning over the openstack team in case they want to verify it before it goes to QE. release-3.11 backport https://github.com/openshift/openshift-ansible/pull/10504 *** Bug 1642331 has been marked as a duplicate of this bug. *** Please help check if this bug could be verified,thanks! OCP QE also hit such similar issue when running playbooks/prerequisites.yml with openshift-ansible-3.11.44-1.git.0.11d174e.el7.noarch, maybe need some more fix.
Set the following value in inventory file:
rhsub_ak=openshift-qe-stage
rhsub_orgid=711497
rhsub_pool=8a99f9815fe7bf9701600822f2f23ec4
# ansible-playbook -i /tmp/qe-inventory-host-file /usr/share/ansible/openshift-ansible/playbooks/prerequisites.yml -v
<--snip-->
TASK [openshift_repos : Enable RHEL repositories] *****************************************************************************************************************************************************************
fatal: [host-8-251-179.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'openshift_version' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_repos/tasks/rhel_repos.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Enable RHEL repositories\n ^ here\n"}
fatal: [host-8-245-235.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'openshift_version' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_repos/tasks/rhel_repos.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Enable RHEL repositories\n ^ here\n"}
fatal: [host-8-251-140.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'openshift_version' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_repos/tasks/rhel_repos.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Enable RHEL repositories\n ^ here\n"}
From my testing https://github.com/openshift/openshift-ansible/pull/10742 should fix this on 3.11. In openshift-ansible-3.11.55-1 and later Verified on
# rpm -qa|grep -i openshift
openshift-ansible-playbooks-3.11.75-1.git.0.95e8e2a.el7.noarch
openshift-ansible-3.11.75-1.git.0.95e8e2a.el7.noarch
openshift-ansible-docs-3.11.75-1.git.0.95e8e2a.el7.noarch
openshift-ansible-roles-3.11.75-1.git.0.95e8e2a.el7.noarch
atomic-openshift-clients-3.11.75-1.git.0.eb59351.el7.x86_64
TASK [openshift_repos : Enable RHEL repositories] ******************************************************************************************************************************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_repos/tasks/rhel_repos.yml:25
Wednesday 30 January 2019 08:15:03 +0000 (0:00:18.219) 0:04:29.104 *****
changed: [infra-node-0.wjiang-ocp.example.com] => {"attempts": 1, "changed": true, "cmd": ["subscription-manager", "repos", "--enable=rhel-7-server-rpms", "--enable=rhel-7-server-extras-rpms", "--enable=rhel-7-server-ose-3.11-rpms"], "delta": "0:00:13.284237", "end": "2019-01-30 03:15:14.392958", "rc": 0, "start": "2019-01-30 03:15:01.108721", "stderr": "", "stderr_lines": [], "stdout": "Repository 'rhel-7-server-rpms' is enabled for this system.\nRepository 'rhel-7-server-extras-rpms' is enabled for this system.\nRepository 'rhel-7-server-ose-3.11-rpms' is enabled for this system.", "stdout_lines": ["Repository 'rhel-7-server-rpms' is enabled for this system.", "Repository 'rhel-7-server-extras-rpms' is enabled for this system.", "Repository 'rhel-7-server-ose-3.11-rpms' is enabled for this system."]}
changed: [master-0.wjiang-ocp.example.com] => {"attempts": 1, "changed": true, "cmd": ["subscription-manager", "repos", "--enable=rhel-7-server-rpms", "--enable=rhel-7-server-extras-rpms", "--enable=rhel-7-server-ose-3.11-rpms"], "delta": "0:00:13.950057", "end": "2019-01-30 03:15:15.291960", "rc": 0, "start": "2019-01-30 03:15:01.341903", "stderr": "", "stderr_lines": [], "stdout": "Repository 'rhel-7-server-rpms' is enabled for this system.\nRepository 'rhel-7-server-extras-rpms' is enabled for this system.\nRepository 'rhel-7-server-ose-3.11-rpms' is enabled for this system.", "stdout_lines": ["Repository 'rhel-7-server-rpms' is enabled for this system.", "Repository 'rhel-7-server-extras-rpms' is enabled for this system.", "Repository 'rhel-7-server-ose-3.11-rpms' is enabled for this system."]}
changed: [master-1.wjiang-ocp.example.com] => {"attempts": 1, "changed": true, "cmd": ["subscription-manager", "repos", "--enable=rhel-7-server-rpms", "--enable=rhel-7-server-extras-rpms", "--enable=rhel-7-server-ose-3.11-rpms"], "delta": "0:00:14.028675", "end": "2019-01-30 03:15:15.465426", "rc": 0, "start": "2019-01-30 03:15:01.436751", "stderr": "", "stderr_lines": [], "stdout": "Repository 'rhel-7-server-rpms' is enabled for this system.\nRepository 'rhel-7-server-extras-rpms' is enabled for this system.\nRepository 'rhel-7-server-ose-3.11-rpms' is enabled for this system.", "stdout_lines": ["Repository 'rhel-7-server-rpms' is enabled for this system.", "Repository 'rhel-7-server-extras-rpms' is enabled for this system.", "Repository 'rhel-7-server-ose-3.11-rpms' is enabled for this system."]}
changed: [app-node-0.wjiang-ocp.example.com] => {"attempts": 1, "changed": true, "cmd": ["subscription-manager", "repos", "--enable=rhel-7-server-rpms", "--enable=rhel-7-server-extras-rpms", "--enable=rhel-7-server-ose-3.11-rpms"], "delta": "0:00:14.052732", "end": "2019-01-30 03:15:15.568383", "rc": 0, "start": "2019-01-30 03:15:01.515651", "stderr": "", "stderr_lines": [], "stdout": "Repository 'rhel-7-server-rpms' is enabled for this system.\nRepository 'rhel-7-server-extras-rpms' is enabled for this system.\nRepository 'rhel-7-server-ose-3.11-rpms' is enabled for this system.", "stdout_lines": ["Repository 'rhel-7-server-rpms' is enabled for this system.", "Repository 'rhel-7-server-extras-rpms' is enabled for this system.", "Repository 'rhel-7-server-ose-3.11-rpms' is enabled for this system."]}
changed: [lb-0.wjiang-ocp.example.com] => {"attempts": 1, "changed": true, "cmd": ["subscription-manager", "repos", "--enable=rhel-7-server-rpms", "--enable=rhel-7-server-extras-rpms", "--enable=rhel-7-server-ose-3.11-rpms"], "delta": "0:00:14.061713", "end": "2019-01-30 03:15:15.690699", "rc": 0, "start": "2019-01-30 03:15:01.628986", "stderr": "", "stderr_lines": [], "stdout": "Repository 'rhel-7-server-rpms' is enabled for this system.\nRepository 'rhel-7-server-extras-rpms' is enabled for this system.\nRepository 'rhel-7-server-ose-3.11-rpms' is enabled for this system.", "stdout_lines": ["Repository 'rhel-7-server-rpms' is enabled for this system.", "Repository 'rhel-7-server-extras-rpms' is enabled for this system.", "Repository 'rhel-7-server-ose-3.11-rpms' is enabled for this system."]}
TASK [openshift_repos : include_tasks] *****************************************************************************************************************************************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_repos/tasks/main.yaml:45
Wednesday 30 January 2019 08:15:18 +0000 (0:00:14.703) 0:04:43.807 *****
skipping: [master-0.wjiang-ocp.example.com] => {"changed": false, "skip_reason": "Conditional result was False"}
skipping: [master-1.wjiang-ocp.example.com] => {"changed": false, "skip_reason": "Conditional result was False"}
skipping: [app-node-0.wjiang-ocp.example.com] => {"changed": false, "skip_reason": "Conditional result was False"}
skipping: [infra-node-0.wjiang-ocp.example.com] => {"changed": false, "skip_reason": "Conditional result was False"}
skipping: [lb-0.wjiang-ocp.example.com] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [openshift_repos : Ensure clean repo cache in the event repos have been changed manually] *********************************************************************************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_repos/tasks/main.yaml:52
Wednesday 30 January 2019 08:15:18 +0000 (0:00:00.335) 0:04:44.143 *****
changed: [master-0.wjiang-ocp.example.com] => {
"msg": "First run of openshift_repos"
}
changed: [master-1.wjiang-ocp.example.com] => {
"msg": "First run of openshift_repos"
}
changed: [app-node-0.wjiang-ocp.example.com] => {
"msg": "First run of openshift_repos"
}
changed: [infra-node-0.wjiang-ocp.example.com] => {
"msg": "First run of openshift_repos"
}
changed: [lb-0.wjiang-ocp.example.com] => {
"msg": "First run of openshift_repos"
}
TASK [openshift_repos : Record that openshift_repos already ran] ***************************************************************************************************************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_repos/tasks/main.yaml:58
Wednesday 30 January 2019 08:15:19 +0000 (0:00:00.456) 0:04:44.599 *****
ok: [master-0.wjiang-ocp.example.com] => {"ansible_facts": {"r_openshift_repos_has_run": true}, "changed": false}
ok: [master-1.wjiang-ocp.example.com] => {"ansible_facts": {"r_openshift_repos_has_run": true}, "changed": false}
ok: [app-node-0.wjiang-ocp.example.com] => {"ansible_facts": {"r_openshift_repos_has_run": true}, "changed": false}
ok: [infra-node-0.wjiang-ocp.example.com] => {"ansible_facts": {"r_openshift_repos_has_run": true}, "changed": false}
ok: [lb-0.wjiang-ocp.example.com] => {"ansible_facts": {"r_openshift_repos_has_run": true}, "changed": false}
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0326 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |