Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1537105 - Failed in "restart node" step when installing openshift with flannel network
Failed in "restart node" step when installing openshift with flannel network
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.9.0
Unspecified Unspecified
low Severity medium
: ---
: 3.9.0
Assigned To: Russell Teague
Meng Bo
:
Depends On:
Blocks: 1493955
  Show dependency treegraph
 
Reported: 2018-01-22 07:50 EST by Meng Bo
Modified: 2018-03-28 10:22 EDT (History)
6 users (show)

See Also:
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 10:21:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 None None None 2018-03-28 10:22 EDT

  None (edit)
Description Meng Bo 2018-01-22 07:50:06 EST
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 11:02:16 EST
Proposed: https://github.com/openshift/openshift-ansible/pull/6835
Comment 2 Russell Teague 2018-01-24 08:35:35 EST
Merged
Comment 4 Johnny Liu 2018-01-25 00:40:26 EST
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 16:01:26 EST
$  git tag --contains 81d383a935ad81c78000bb69c97c35768a9dd876
openshift-ansible-3.9.0-0.24.0
Comment 8 Meng Bo 2018-01-30 02:55:10 EST
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 10:21:18 EDT
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.