Bug 1332262

Summary: Registry service IP change requries restart of atomic-openshift-master services
Product: OpenShift Container Platform Reporter: Matt Woodson <mwoodson>
Component: openshift-controller-managerAssignee: Michal Fojtik <mfojtik>
Status: CLOSED EOL QA Contact: zhou ying <yinzhou>
Severity: low Docs Contact:
Priority: low    
Version: 3.1.0CC: aos-bugs, haowang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-23 12:48:39 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:

Description Matt Woodson 2016-05-02 16:46:46 UTC
Description of problem:

When changing the service IP of the registry, all of the masters services need to be restarted.  I have heard that this is because the registry's IP is cached.

Having to restart the master's services should not be needed in this case.  The service IP should be looked up dynamically and not cached.


Version-Release number of selected component (if applicable):

3.1.1.6

How reproducible:

Very

Steps to Reproduce:
1. Create registry according to docs (https://docs.openshift.com/enterprise/3.1/install_config/install/docker_registry.html#advanced-overriding-the-registry-configuration)
2.  Delete registry service
3. Re-create registry service

Actual results:

The cluster will not use the new registry service IP until the master's services are restarted.

HEre are some results:

Error: build error: Failed to push image. Response from registry is: unable to ping registry endpoint https://172.30.22.223:5000/v0/
v2 ping attempt failed with error: Get https://172.30.22.223:5000/v2/: dial tcp 172.30.22.223:5000: no route to host
 v1 ping attempt failed with error: Get https://172.30.22.223:5000/v1/_ping: dial tcp 172.30.22.223:5000: no route to host



Expected results:

Registry could be looked up and pushed to the right registry ip

Comment 2 Michal Fojtik 2016-12-15 08:45:27 UTC
Matt, is the doc Andy provided enough? Alternatively, you will be able to expose the registry service by a route (so you won't depend on the service IP address) in 3.5.