Bug 1488059
Summary: | ClusterRegistry health check fails after installation | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Marko Myllynen <myllynen> |
Component: | Unknown | Assignee: | Luke Meyer <lmeyer> |
Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> |
Severity: | low | Docs Contact: | |
Priority: | high | ||
Version: | 3.6.0 | CC: | aos-bugs, jokerman, lmeyer, mmccomas |
Target Milestone: | --- | ||
Target Release: | 3.6.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
The ClusterRegistry diagnostic checks the registry given to ImageStreams by default with the known registry service. It compares the IP, but with 3.6 the ImageStream now gets a cluster hostname for the registry instead of an IP.
Consequence:
The diagnostic reports a false error condition because the IP is not the same as the hostname.
Fix:
The diagnostic now checks if either of the hostname and IP version of the registry matches.
Result:
The diagnostic should again report correctly against either old deployments or new.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-10-25 13:06:40 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
Marko Myllynen
2017-09-04 08:41:35 UTC
I need to do some work to confirm this but I suspect what happened here is that the ImageStream used to get its registry as an IP, and now it's getting it as a hostname, which of course is not the same string as the service IP. The diagnostic was intended to detect the situation cpitman explained, however if I'm right then that may not be a problem any longer (the registry URL won't change just because the service is re-created with a different IP) and the diagnostic could be retired. Commits pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/5bbe044b3449f9cd2da4f6434d884688a61ae67b ClusterRegistry diagnostic: fix address mismatch The registry for imagestreams was previously recorded as an IP, which could change if the registry service were re-created. Now it is a cluster hostname, which should be unchanging even if re-created. Just ensure it is the right hostname. fixes bug 1488059 https://bugzilla.redhat.com/show_bug.cgi?id=1488059 https://github.com/openshift/origin/commit/5c677dcb72783bc8bad3de0bd3094075c3d5712d Merge pull request #16188 from sosiouxme/20170906-oadm-diag-clusterregistry-bz1488059 Automatic merge from submit-queue (batch tested with PRs 14825, 15756, 16178, 16188, 16189) ClusterRegistry diagnostic: fix address mismatch The registry for imagestreams was previously recorded as an IP, which could change if the registry service were re-created. Now it is a cluster hostname, which should be unchanging even if re-created. Just ensure it is the right hostname. fix bug 1488059 https://bugzilla.redhat.com/show_bug.cgi?id=1488059 Verified this bug with openshift v3.6.173.0.49, and PASS. # oadm diagnostics ClusterRegistry [Note] Determining if client configuration exists for client/cluster diagnostics Info: Successfully read a client config file at '/root/.kube/config' Info: Using context for cluster-admin access: 'default/host-8-241-49-host-centralci-eng-rdu2-redhat-com:8443/system:admin' [Note] Running diagnostic: ClusterRegistry Description: Check that there is a working Docker registry [Note] Summary of diagnostics execution (version v3.6.173.0.49): [Note] Completed with no errors or warnings seen. 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:3049 |