Bug 1494470

Summary: Upgrade failed for AnsibleUndefinedVariable: 'l_bind_docker_reg_auth' is undefined
Product: OpenShift Container Platform Reporter: liujia <jiajliu>
Component: Cluster Version OperatorAssignee: Michael Gugino <mgugino>
Status: CLOSED ERRATA QA Contact: liujia <jiajliu>
Severity: high Docs Contact:
Priority: high    
Version: 3.7.0CC: aos-bugs, javier.ramirez, jkaur, jokerman, mmccomas, nnosenzo, wmeng
Target Milestone: ---Keywords: Reopened
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1526477 1526485 (view as bug list) Environment:
Last Closed: 2017-12-15 15:33:52 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: 1526477, 1526485    

Description liujia 2017-09-22 10:56:13 UTC
Description of problem:
Trigger upgrade against atomic hosts ha, upgrade failed at task [Create the ha systemd unit files].

failed: [x.x.x.x] (item=api) => {
    "failed": true, 
    "item": "api"
}

MSG:

AnsibleUndefinedVariable: 'l_bind_docker_reg_auth' is undefined
failed: [qe-jliu-con1-master-etcd-1.0922-8gh.qe.rhcloud.com] (item=controllers) => {
    "failed": true, 
    "item": "controllers"
}

MSG:

AnsibleUndefinedVariable: 'l_bind_docker_reg_auth' is undefined
	to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.retry


Version-Release number of the following components:
atomic-openshift-utils-3.7.0-0.127.0.git.0.b9941e4.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Install HA env on atomic hosts.
2. Trigger upgrade
# ansible-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade.yml -v|tee log
3.

Actual results:
Upgrade failed.

Expected results:
Upgrade succeed.

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 2 Michael Gugino 2017-09-22 15:49:05 UTC
PR Created: https://github.com/openshift/openshift-ansible/pull/5502

After merging, backport PR will be created for 3.6, 1.5, 1.4

Comment 4 liujia 2017-09-29 08:16:26 UTC
Remove testblocker, this bug has been fixed based on openshift-ansible-3.7.0-0.133.0.git.0.06c6bc7.el7.noarch.

@scott
You can modify the bug status.

Comment 6 liujia 2017-10-09 05:18:34 UTC
Version:
ansible-2.3.2.0-2.el7.noarch
openshift-ansible-3.7.0-0.144.2.git.0.da1dd6c.el7.noarch

Upgrade succeed.

Comment 11 errata-xmlrpc 2017-11-28 22:12:28 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/RHSA-2017:3188

Comment 15 Scott Dodson 2017-12-15 15:33:52 UTC
This was fixed in 3.7 in the referenced errata. It has not been fixed in 3.4. This bug should not be re-opened, it should be cloned for 3.4.