Bug 1537105
| Summary: | Failed in "restart node" step when installing openshift with flannel network | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Meng Bo <bmeng> |
| Component: | Installer | Assignee: | Russell Teague <rteague> |
| Status: | CLOSED ERRATA | QA Contact: | Meng Bo <bmeng> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.9.0 | CC: | aos-bugs, jialiu, jokerman, mmccomas, rteague, wmeng |
| Target Milestone: | --- | ||
| Target Release: | 3.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Variable used in the flannel role was not defined
Consequence: Role failed when variable was used
Fix: Added openshift_facts to the role dependencies to bring the variable into scope
Result: The role completed as expected
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-03-28 14:21:18 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1493955 | ||
Merged This bug is targeted for 3.9, while this bug is attached to a 3.5/3.6/3.7 errata, pls attach it to a correct errata. $ git tag --contains 81d383a935ad81c78000bb69c97c35768a9dd876 openshift-ansible-3.9.0-0.24.0 Tested with openshift-ansible version openshift-ansible-3.9.0-0.31.0.git.0.e0a0ad8.el7.noarch.rpm The restart_node step passed without error. 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:0489 |
Description of problem: The "restart node" failed when installing openshift with flannel. Version-Release number of the following components: rpm -q openshift-ansible openshift-ansible-3.9.0-0.22.0.git.0.0e9d896.el7.noarch.rpm rpm -q ansible 2.4.2.0-2.el7 How reproducible: always Steps to Reproduce: 1. Add the following lines to inventory file to install openshift with flannel network plugin openshift_use_openshift_sdn=false openshift_use_flannel=true 2. The installation failed in task "RUNNING HANDLER [flannel : restart node]" 3. Actual results: RUNNING HANDLER [flannel : restart node] *************************************** Monday 22 January 2018 10:38:15 +0000 (0:00:02.629) 0:06:05.140 ******** fatal: [host-8-245-179.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'openshift_service_type' is undefined\n\nThe error appears to have been in '/home/slave3/workspace/Launch Environment Flexy/private-openshift-ansible/roles/flannel/handlers/main.yml': line 16, 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: restart node\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'openshift_service_type' is undefined"} fatal: [host-8-247-67.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'openshift_service_type' is undefined\n\nThe error appears to have been in '/home/slave3/workspace/Launch Environment Flexy/private-openshift-ansible/roles/flannel/handlers/main.yml': line 16, 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: restart node\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'openshift_service_type' is undefined"} Failure summary: 1. Hosts: host-8-245-179.host.centralci.eng.rdu2.redhat.com, host-8-247-67.host.centralci.eng.rdu2.redhat.com Play: Additional node config Task: restart node Message: The task includes an option with an undefined variable. The error was: 'openshift_service_type' is undefined The error appears to have been in '/home/slave3/workspace/Launch Environment Flexy/private-openshift-ansible/roles/flannel/handlers/main.yml': line 16, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: restart node ^ here exception type: <class 'ansible.errors.AnsibleUndefinedVariable'> exception: 'openshift_service_type' is undefined Expected results: Should be able to install openshift with flannel network without errors. Additional info: