Bug 1571608 - The address for push images should not use ip address of docker-registry after upgrade
Summary: The address for push images should not use ip address of docker-registry afte...
Keywords:
Status: CLOSED DUPLICATE of bug 1581876
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.10.0
Assignee: Scott Dodson
QA Contact: liujia
URL:
Whiteboard:
: 1579227 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-25 08:22 UTC by liujia
Modified: 2018-05-25 12:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-25 12:41:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1581876 0 medium CLOSED [free-int] docker registry hostname not set in master-config 2021-02-22 00:41:40 UTC

Internal Links: 1581876

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 ***


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