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:
Proposed: https://github.com/openshift/openshift-ansible/pull/6835
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