Bug 1663268
Summary: | Enabling router metrics browser page cause "Readiness probe failed: HTTP probe failed with statuscode: 401" | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Alan Chan <alchan> |
Component: | Networking | Assignee: | Dan Mace <dmace> |
Networking sub component: | router | QA Contact: | Hongan Li <hongli> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | unspecified | ||
Priority: | unspecified | CC: | aos-bugs, tmanor |
Version: | 3.11.0 | ||
Target Milestone: | --- | ||
Target Release: | 3.11.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-03-14 02:17:59 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
Alan Chan
2019-01-03 15:34:15 UTC
Workaround based on what Luke found in the case 02284589 from 3.9: - oc patch dc router -p '"spec": {"template": {"spec": {"containers": [{"name": "router","readinessProbe": {"httpGet": {"path": "healthz"}}}]}}}' - oc set env dc router-dmz ROUTER_METRICS_TYPE- (In reply to Alan C from comment #1) > Workaround based on what Luke found in the case 02284589 from 3.9: > > - oc patch dc router -p '"spec": {"template": {"spec": {"containers": > [{"name": "router","readinessProbe": {"httpGet": {"path": "healthz"}}}]}}}' > > - oc set env dc router-dmz ROUTER_METRICS_TYPE- Sorry, typo, should be: - oc set env dc router ROUTER_METRICS_TYPE- ...to match the patch command. Yeah, the issue is we changed the probe paths to be different to distinguish between liveness and readiness checks. But when you disable the listener on the stats port on the openshift-router and enable it on haproxy, there is only one "unauthenticated" endpoint available (as haproxy only allows one monitor-uri) to use. So we do have to match up both the probes to the same endpoint "/healthz" when we remove ROUTER_LISTEN_ADDR - will create a PR for the docs team to also mention that we need to update the readiness probe in that section. Thanks. Moving to MODIFIED as the docs update merged. Docs PR against master: https://github.com/openshift/openshift-docs/pull/13622 The 3.11 PR (https://github.com/openshift/openshift-docs/pull/13608) got closed by Vikram so am not certain if this is ready for QA unless I missed another docs PR. the Doc PR looks good, thanks 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-2019:0407 |