-
Bug
-
Resolution: Unresolved
-
Normal
-
4.17
-
Moderate
-
None
-
CCXDEV Sprint 124, CCXDEV Sprint 125
-
2
-
False
-
-
Release Note Not Required
-
In Progress
Description of problem:
Insights operator should replaces %s in https://console.redhat.com/api/gathering/v2/%s/gathering_rules error messages like the failed-to-bootstrap:
$ jq -r .content osd-ccs-gcp-ad-install.log | sed 's/\\n/\n/g' | grep 'Cluster operator insights' time="2024-09-05T08:12:51Z" level=info msg="Cluster operator insights ClusterTransferAvailable is False with Unauthorized: failed to pull cluster transfer: OCM API https://api.openshift.com/api/accounts_mgmt/v1/cluster_transfers/?search=cluster_uuid+is+%REDACTED%27+and+status+is+%27accepted%27 returned HTTP 401: REDACTED" time="2024-09-05T08:12:51Z" level=info msg="Cluster operator insights Disabled is False with AsExpected: " time="2024-09-05T08:12:51Z" level=info msg="Cluster operator insights RemoteConfigurationAvailable is False with HttpStatus401: received HTTP 401 Unauthorized from https://console.redhat.com/api/gathering/v2/%s/gathering_rules" time="2024-09-05T08:12:51Z" level=info msg="Cluster operator insights RemoteConfigurationValid is Unknown with NoValidationYet: " time="2024-09-05T08:12:51Z" level=info msg="Cluster operator insights SCAAvailable is False with Unauthorized: Failed to pull SCA certs from https://api.openshift.com/api/accounts_mgmt/v1/certificates: OCM API https://api.openshift.com/api/accounts_mgmt/v1/certificates returned HTTP 401: REDACTED level=info msg=Cluster operator insights ClusterTransferAvailable is False with Unauthorized: failed to pull cluster transfer: OCM API https://api.openshift.com/api/accounts_mgmt/v1/cluster_transfers/?search=cluster_uuid+is+%27REDACTED%27+and+status+is+%27accepted%27 returned HTTP 401: REDACTED level=info msg=Cluster operator insights Disabled is False with AsExpected: level=info msg=Cluster operator insights RemoteConfigurationAvailable is False with HttpStatus401: received HTTP 401 Unauthorized from https://console.redhat.com/api/gathering/v2/%s/gathering_rules level=info msg=Cluster operator insights RemoteConfigurationValid is Unknown with NoValidationYet: level=info msg=Cluster operator insights SCAAvailable is False with Unauthorized: Failed to pull SCA certs from https://api.openshift.com/api/accounts_mgmt/v1/certificates: OCM API https://api.openshift.com/api/accounts_mgmt/v1/certificates returned HTTP 401: REDACTED level=info msg=Cluster operator insights UploadDegraded is True with NotAuthorized: Reporting was not allowed: your Red Hat account is not enabled for remote support or your token has expired: {\"errors\":[{\"meta\":{\"response_by\":\"gateway\"},\"detail\":\"UHC services authentication failed\",\"status\":401}]}
Version-Release number of selected component
Seen in 4.17 RCs. Also in this comment.
How reproducible
Unknown
Steps to Reproduce:
Unknown.
Actual results:
ClusterOperator conditions talking about https://console.redhat.com/api/gathering/v2/%s/gathering_rules
Expected results
URIs we expose in customer-oriented messaging to not have %s placeholders.
Additional detail
Seems like the template is coming in as conditionalGathererEndpoint here. Seems like insights-operator#964 introduced the %s, but I'm not finding the logic that's supposed to populate that placeholder.
- blocks
-
OCPBUGS-41914 [release-4.17] https://console.redhat.com/api/gathering/v2/%s/gathering_rules should have %s populated
- Closed
- is cloned by
-
OCPBUGS-41914 [release-4.17] https://console.redhat.com/api/gathering/v2/%s/gathering_rules should have %s populated
- Closed
- links to
-
RHEA-2024:6122 OpenShift Container Platform 4.18.z bug fix update
- mentioned on