Bug 1537105 - Failed in "restart node" step when installing openshift with flannel network
Summary: Failed in "restart node" step when installing openshift with flannel network
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: 3.9.0
Assignee: Russell Teague
QA Contact: Meng Bo
URL:
Whiteboard:
Depends On:
Blocks: 1493955
TreeView+ depends on / blocked
 
Reported: 2018-01-22 12:50 UTC by Meng Bo
Modified: 2018-03-28 14:22 UTC (History)
6 users (show)

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
Clone Of:
Environment:
Last Closed: 2018-03-28 14:21:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:22:06 UTC

Description Meng Bo 2018-01-22 12:50:06 UTC
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:

Comment 1 Russell Teague 2018-01-23 16:02:16 UTC
Proposed: https://github.com/openshift/openshift-ansible/pull/6835

Comment 2 Russell Teague 2018-01-24 13:35:35 UTC
Merged

Comment 4 Johnny Liu 2018-01-25 05:40:26 UTC
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.

Comment 6 Russell Teague 2018-01-25 21:01:26 UTC
$  git tag --contains 81d383a935ad81c78000bb69c97c35768a9dd876
openshift-ansible-3.9.0-0.24.0

Comment 8 Meng Bo 2018-01-30 07:55:10 UTC
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.

Comment 11 errata-xmlrpc 2018-03-28 14:21:18 UTC
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


Note You need to log in before you can comment on or make changes to this bug.