-
Notifications
You must be signed in to change notification settings - Fork 4.8k
ClusterRegistry diagnostic: fix address mismatch #16188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClusterRegistry diagnostic: fix address mismatch #16188
Conversation
pkg/diagnostics/cluster/registry.go
Outdated
| serviceIpPort := fmt.Sprintf("%s:%d", service.Spec.ClusterIP, service.Spec.Ports[0].Port) | ||
| serviceHostPort := fmt.Sprintf("%s.%s.svc:%d", registryName, service.ObjectMeta.Namespace, service.Spec.Ports[0].Port) | ||
| if cacheHost != serviceIpPort && cacheHost != serviceHostPort { | ||
| r.Error("DClu1019", nil, fmt.Sprintf(clRegISMismatch, registryName, serviceIpPort, cacheHost)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the message say something about serviceHostPort?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that would make sense, thanks.
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
17065ca to
5bbe044
Compare
|
@liggitt addressed that. Is there a magic bot command to indicate this should be cherry-picked to 3.6? |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, sosiouxme The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
Automatic merge from submit-queue (batch tested with PRs 14825, 15756, 16178, 16188, 16189) |
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