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

Bug 1571608

Summary: The address for push images should not use ip address of docker-registry after upgrade
Product: OpenShift Container Platform Reporter: liujia <jiajliu>
Component: Cluster Version OperatorAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: liujia <jiajliu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.10.0CC: aos-bugs, jaboyd, jokerman, mmccomas, tbielawa, wmeng, zitang
Target Milestone: ---   
Target Release: 3.10.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: 2018-05-25 12:41:32 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 2018-04-25 08:22:15 UTC
Description of problem:
After upgrade v3.9 to v3.10, original registry address return back to ip of docker registry which should be dns address before upgrade.

//before upgrade
# oc get is
NAME               DOCKER REPO                                                 TAGS      UPDATED
registry-console   docker-registry.default.svc:5000/default/registry-console   v3.9      

//after upgrade
# oc get is
NAME               DOCKER REPO                                   TAGS      UPDATED
registry-console   172.30.38.105:5000/default/registry-console   v3.9      

# oc get dc docker-registry -o yaml |grep -A 1 "REGISTRY_OPENSHIFT_SERVER_ADDR"
        - name: REGISTRY_OPENSHIFT_SERVER_ADDR
          value: docker-registry.default.svc:5000

Version-Release number of the following components:
openshift-ansible-3.10.0-0.27.0.git.0.abed3b7.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Upgrade v3.9 to v3.10
2.
3.

Actual results:
Images was pull/push by ip address of docker-reregistry.

Expected results:
Images should be pull/push by dns address of docker-reregistry.

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Scott Dodson 2018-05-21 13:34:20 UTC
We're likely losing REGISTRY_OPENSHIFT_SERVER_ADDR in /etc/origin/master/master.env during upgrade for some reason. Also older variables may have been deprecated.

Need to make sure that we're no longer using deprecated variables and get the copy from /etc/sysconfig/atomic-openshift-master-api -> /etc/origin/master/master.env

Comment 2 Jay Boyd 2018-05-22 14:01:41 UTC
Marking https://bugzilla.redhat.com/show_bug.cgi?id=1579227  as a duplicate.  In 1579227 (3.9 -> 3.10 update with Service Catalog) the credentials from atomic-openshift-master-controllers are valid but the credentials found in master.env are different/invalid.  The belief is the fix for 157608 will update master.env with correct values.

Comment 3 Jay Boyd 2018-05-22 14:03:41 UTC
*** Bug 1579227 has been marked as a duplicate of this bug. ***

Comment 5 Scott Dodson 2018-05-25 12:41:32 UTC

*** This bug has been marked as a duplicate of bug 1581876 ***