Bug 1463499
Summary: | app's dc is pulling image from registry by IP but not by DNS. | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Johnny Liu <jialiu> | |
Component: | Image Registry | Assignee: | Michal Fojtik <mfojtik> | |
Status: | CLOSED ERRATA | QA Contact: | ge liu <geliu> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 3.6.0 | CC: | aos-bugs, jokerman, mfojtik, mmccomas, pweil, sdodson, yinzhou | |
Target Milestone: | --- | |||
Target Release: | 3.7.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1466784 (view as bug list) | Environment: | ||
Last Closed: | 2017-11-28 21:58:09 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1466784 |
Description
Johnny Liu
2017-06-21 06:59:20 UTC
Once the above issue happened, restart master service, re-trigger sti build, then image in app's dc will be pointed to registry svc DNS. That means app's dc image is pointed to registry svc IP only happened in the initial moment when app's dc is created in the first time. If this is an HA environment maybe this is a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1463498 ? I'll investigate today. (In reply to Scott Dodson from comment #2) > If this is an HA environment maybe this is a dupe of > https://bugzilla.redhat.com/show_bug.cgi?id=1463498 ? I'll investigate today. No, this is a single master env. Totally different bug with BZ#1463498. Pls refer to reproduce steps, in a multiple master HA env, step 3 will fail, but in this single master env, step 3 is working well. Any idea what's going on here? I guess the image stream still had the IP address in the pull spec and by restarting this and rebuilding the image stream pull spec was updated to point to the registry by DNS. Was this cluster live before setting the DEFAULT_REGISTRY variable or this happens on a clean cluster with the registry set? Can we see the image stream when this breaks? If the image stream has recorded the the IP address in pull spec... The image stream is the source of truth for deployment configs. PR: https://github.com/openshift/origin/pull/14882 After this, you have to set the OPENSHIFT_DEFAULT_REGISTRY variable for the docker-registry DC in order for the integrated registry using the DNS name over the IP address (which is the default). Currently this is hard-coded into registry image entrypoint and it should not. I guess what this cause is the registry everytime it updates the image stream it replaces the DNS with the IP address. However with the OPENSHIFT_DEFAULT_REGISTRY set for master, when the master API updates the image stream (oc tag or build?) it will revert the IP address back to the DNS. This should be tested more to make sure we don't break image streams (otherwise we will have to run ugly scripts replacing the broken IP's). The master should have OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000 set before that image stream is even created. I'll watch that PR. Since I don't think there's any additional work required of the installer here I'm going to move this to Image Registry component. *** Bug 1466583 has been marked as a duplicate of this bug. *** Yes the variable should be set in the registry DC now. https://github.com/openshift/openshift-ansible/pull/4681 According to comment 15, move this bug to verified state. 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/RHSA-2017:3188 |