Bug 1506896 - [3.6]Fail to upgrade when use an authenticated registry
Summary: [3.6]Fail to upgrade when use an authenticated registry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.6.z
Assignee: Michael Gugino
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-27 06:21 UTC by liujia
Modified: 2017-11-21 05:41 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-11-21 05:41:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:3255 0 normal SHIPPED_LIVE OpenShift Container Platform atomic-openshift-utils bug fix and enhancement 2017-11-21 10:40:59 UTC

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


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