Bug 1503415

Summary: Upgrade failed due to an undefined variable oreg_auth_credentials_replace
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.7.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
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: Environment:
Last Closed: 2017-11-28 22:17:38 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 2017-10-18 05:20:07 UTC
Description of problem:
Upgrade ocp cluster from v3.6 to v3.7, upgrade failed for an undefined variable oreg_auth_credentials_replace.

Failure summary:


  1. Hosts:     x.x.x.x
     Play:     Upgrade master
     Task:     Create credentials for registry auth
     Message:  The conditional check '(not master_oreg_auth_credentials_stat.stat.exists or oreg_auth_credentials_replace) | bool' failed. The error was: error while evaluating conditional ((not master_oreg_auth_credentials_stat.stat.exists or oreg_auth_credentials_replace) | bool): 'oreg_auth_credentials_replace' is undefined
               
               The error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_master/tasks/registry_auth.yml': line 8, column 3, but may
               be elsewhere in the file depending on the exact syntax problem.
               
               The offending line appears to be:
               
               
               - name: Create credentials for registry auth
                 ^ here


Add "oreg_auth_credentials_replace=false" in inventory file can workaround.

Version-Release number of the following components:
openshift-ansible-3.7.0-0.158.0.git.0.8941dd5.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Upgrade v3.6 to v3.7
2.
3.

Actual results:
Upgrade failed.

Expected results:
Upgrade succeed.

Additional info:
Inventory file and log in attachment.

Comment 3 Michael Gugino 2017-10-18 14:25:24 UTC
PR Created: https://github.com/openshift/openshift-ansible/pull/5792

Comment 5 liujia 2017-10-26 07:30:55 UTC
Version:
openshift-ansible-3.7.0-0.179.0.git.0.a2641b6.el7.noarch

The issue has been fixed.

Comment 8 errata-xmlrpc 2017-11-28 22:17:38 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