Bug 1503415 - Upgrade failed due to an undefined variable oreg_auth_credentials_replace
Summary: Upgrade failed due to an undefined variable oreg_auth_credentials_replace
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.7.0
Assignee: Michael Gugino
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-18 05:20 UTC by liujia
Modified: 2017-11-28 22:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-28 22:17:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

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


Note You need to log in before you can comment on or make changes to this bug.