Bug 1542397

Summary: Run docker upgrade failed due to openshift_is_atomic is undefined
Product: OpenShift Container Platform Reporter: liujia <jiajliu>
Component: Cluster Version OperatorAssignee: Michael Gugino <mgugino>
Status: CLOSED ERRATA QA Contact: liujia <jiajliu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, jokerman, mmccomas, wmeng, wsun
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-28 14:25:43 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 liujia 2018-02-06 09:41:03 UTC
Description of problem:
Run docker upgrade failed due to openshift_is_atomic is undefined.
PLAY [Check for appropriate Docker versions] ********************************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************************************************
ok: [x.x.x.x]
ok: [x.x.x.x]

TASK [fail] *****************************************************************************************************************************************************************
fatal: [x.x.x.x]: FAILED! => {"failed": true, "msg": "The conditional check 'openshift_is_atomic | bool' failed. The error was: error while evaluating conditional (openshift_is_atomic | bool): 'openshift_is_atomic' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/upgrades/docker/docker_upgrade.yml': line 15, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  tasks:\n  - fail:\n    ^ here\n"}

Version-Release number of the following components:
openshift-ansible-3.9.0-0.38.0.git.0.57e1184.el7.noarch

How reproducible:
always

Steps to Reproduce:
1.Run docker upgrade playbook against ocp3.9
# ansible-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/docker/upgrade.yml
2.
3.

Actual results:
Docker upgrade failed.

Expected results:
Docker should be upgraded to latest version.

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

Comment 1 Michael Gugino 2018-02-06 15:51:53 UTC
init/facts has not been run yet in this play.

PR Created: https://github.com/openshift/openshift-ansible/pull/7026

Comment 3 liujia 2018-02-22 05:55:39 UTC
Verified on openshift-ansible-3.9.0-0.47.0.git.0.f8847bb.el7.noarch.

Upgrade docker succeed.

Comment 6 errata-xmlrpc 2018-03-28 14:25:43 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