Bug 1464011

Summary: Scale up master failed due to undefined variable error
Product: OpenShift Container Platform Reporter: Wenkai Shi <weshi>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Wenkai Shi <weshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 05:28:56 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:

Description Wenkai Shi 2017-06-22 09:32:22 UTC
Description of problem:
Scale up master failed due to undefined variable error.

Version-Release number of selected component (if applicable):
openshift-ansible-3.6.122-1.git.0.62fcd88.el7

How reproducible:
100%

Steps to Reproduce:
1. Prepare a HA env
2. Scaleup master
3. 

Actual results:
# ansible-playbook -i inventory -v /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-master/scaleup.yml
...
TASK [openshift_master : set_fact] *********************************************
fatal: [host-8-175-47.host.centralci.eng.rdu2.redhat.com]: FAILED! => {
    "failed": true
}

MSG:

the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {{ hostvars[groups.oo_first_master.0].l_clean_install }}: 'dict object' has no attribute 'l_clean_install'

The error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_master/tasks/main.yml': line 131, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- set_fact:
  ^ here
...

Expected results:
Scale up succeed.

Additional info:

Comment 1 Wenkai Shi 2017-06-23 10:18:46 UTC
Add TestBlocker keywords, this block all testing relate to scaleup master.

Comment 4 Wenkai Shi 2017-06-28 08:39:44 UTC
Verified with version openshift-ansible-3.6.126.0-1.git.0.f9c47bf.el7, scaleup succeed.

Comment 6 errata-xmlrpc 2017-08-10 05:28:56 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/RHEA-2017:1716