-
Bug
-
Resolution: Done-Errata
-
Normal
-
None
-
4.17
This is a clone of issue OCPBUGS-41833. The following is the description of the original issue:
—
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.
- clones
-
OCPBUGS-41833 https://console.redhat.com/api/gathering/v2/%s/gathering_rules should have %s populated
- Verified
- is blocked by
-
OCPBUGS-41833 https://console.redhat.com/api/gathering/v2/%s/gathering_rules should have %s populated
- Verified
- links to
-
RHBA-2024:7922 OpenShift Container Platform 4.17.z bug fix update