Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1503415 - Upgrade failed due to an undefined variable oreg_auth_credentials_replace
Upgrade failed due to an undefined variable oreg_auth_credentials_replace
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Upgrade (Show other bugs)
3.7.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.7.0
Assigned To: Michael Gugino
liujia
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-18 01:20 EDT by liujia
Modified: 2017-11-28 17:17 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-28 17:17:38 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-28 21:34:54 EST

  None (edit)
Description liujia 2017-10-18 01:20:07 EDT
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 10:25:24 EDT
PR Created: https://github.com/openshift/openshift-ansible/pull/5792
Comment 5 liujia 2017-10-26 03:30:55 EDT
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 17:17:38 EST
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.