Bug 1600859
| Summary: | redeploy-certificates.yml playbooks fails in containerized envs in 3.7 because openshift_is_containerized variable not being defined | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Joel Rosental R. <jrosenta> |
| Component: | Installer | Assignee: | Vadim Rutkovsky <vrutkovs> |
| Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.7.0 | CC: | aabhishe, aos-bugs, jokerman, mmccomas |
| Target Milestone: | --- | ||
| Target Release: | 3.7.z | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-08-29 11:39:55 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: | |||
https://github.com/openshift/openshift-ansible/pull/9067 was proposed fix but Vadim had some comments requesting changes. Lets get that cleaned up or another PR proposed. Looks like https://github.com/openshift/openshift-ansible/pull/8228/files introduced the problem in many files in addition to those fixed in #9067 Fix is available in openshift-ansible-3.7.59-1 Test with openshift-ansible-3.7.61-1.git.0.36791ef.el7.noarch.rpm.
It still fail as below:
TASK [Restart openvswitch service] *********************************************
fatal: [ec2-54-152-184-65.compute-1.amazonaws.com]: FAILED! => {"failed": true, "msg": "The conditional check 'openshift_use_openshift_sdn | bool' failed. The error was: error while evaluating conditional (openshift_use_openshift_sdn | bool): 'openshift_use_openshift_sdn' is undefined\n\nThe error appears to have been in '/home/slave6/workspace/Run-Ansible-Playbooks-Nextge/private-openshift-ansible/playbooks/common/openshift-node/restart.yml': line 24, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Restart openvswitch service\n ^ here\n"}
Created https://github.com/openshift/openshift-ansible/pull/9419 to make sure `openshift_use_openshift_sdn` always has a default value set Verify this bug with openshift-ansible-3.7.62-1.git.0.48dbebc.el7.noarch Tried redeploy-certificates.yml on rpm and containerized OCP 3.7 environment, the playbook could run well. 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-2018:2547 |
Description of problem: While running /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/redeploy-certificates.yml in a containerized OCP 3.7 environment the following error is stops the playbook execution: TASK [Restart openvswitch service] *********************************************************************************************************** fatal: [node.example.com]: FAILED! => {"msg": "The conditional check 'openshift_is_containerized | bool' failed. The error was: error while evaluating conditional (openshift_is_containerized | bool): 'openshift_is_containerized' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/common/openshift-node/restart.yml': line 24, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Restart openvswitch service\n ^ here\n"} to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/redeploy-certificates.retry It looks like openshift_is_containerized was brought back to 3.7 in this PR but that var does not exist in 3.7. https://github.com/openshift/openshift-ansible/pull/8228/files Current workaround is to set this variable in the inventory file Version-Release number of the following components: OpenShift 3.7.54 How reproducible: Always Steps to Reproduce: 1. Execute /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/redeploy-certificates.yml in an OCP 3.7 containerized environment Actual results: The playbook execution stops because this variable is not defined. Expected results: Playbook execution should execute without any issues.