Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1506896

Summary: [3.6]Fail to upgrade when use an authenticated registry
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.6.1CC: aos-bugs, bmcelvee, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
With this bug fix, the upgrade playbooks were updated to pass authentication credentials when pulling requisite images from an authenticated registry.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-21 05:41:13 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-27 06:21:52 UTC
Description of problem:
Upgrade against cluster with an authenticated registry failed at task  [openshift_node_upgrade : Check for credentials file for registry auth]
MSG:

The task includes an option with an undefined variable. The error was: 'oreg_auth_credentials_path' is undefined

The error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_node_upgrade/tasks/registry_auth.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- name: Check for credentials file for registry auth
  ^ here

exception type: <class 'ansible.errors.AnsibleUndefinedVariable'>
exception: 'oreg_auth_credentials_path' is undefined

Version-Release number of the following components:
openshift-ansible-3.6.173.0.59-1.git.0.0e31372.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Install ocp v3.5 with an authenticated registry
2. Upgrade v3.5 to v3.6

3.

Actual results:
Upgrade failed.

Expected results:
Upgrade succeed.

Additional info:
Inventory file in attachment.

Comment 4 liujia 2017-11-07 09:24:29 UTC
Changed back to modify to wait for a right errata.

Comment 7 liujia 2017-11-15 06:56:30 UTC
Verified on openshift-ansible-3.6.173.0.75-1.git.0.0a44128.el7.noarch.

Upgrade succeed against ocp with an authenticated registry.

Comment 10 errata-xmlrpc 2017-11-21 05:41:13 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-2017:3255