Bug 2028971

Summary: 100% of the cco-metrics/cco-metrics targets in openshift-cloud-credential-operator namespace are down
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Cloud Credential OperatorAssignee: Akhil Rane <arane>
Status: CLOSED ERRATA QA Contact: wang lin <lwan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: arane, lwan
Target Milestone: ---   
Target Release: 4.6.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: 2022-01-12 09:47:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2027750    
Bug Blocks:    

Comment 1 wang lin 2021-12-06 03:25:54 UTC
Verified with cluster-bot image(4.6.0-0.ci.test-2021-12-06-014637-ci-ln-xtmsdqb-latest) with the PR merged , because cco in ocp version 4.6 doesn't have secret annotator implementation for osp,so launch an osp cluster.

1. check platform is openstack
$ oc get infrastructure cluster -o json | jq -r ".status.platformStatus"
{
  "openstack": {
    "apiServerInternalIP": "192.168.0.5",
    "ingressIP": "192.168.0.7"
  },
  "type": "OpenStack"
}
2. check cco pod works well
3. create an aws root secret, check cco pod won't hit crash
time="2021-12-06T03:21:19Z" level=info msg="observed admin cloud credential secret event" namespace=kube-system secret=aws-creds
time="2021-12-06T03:21:19Z" level=info msg="requeueing all CredentialsRequests"
time="2021-12-06T03:21:19Z" level=info msg="syncing credentials request" controller=credreq cr=openshift-cloud-credential-operator/openshift-image-registry-azure
..............

time="2021-12-06T03:21:20Z" level=info msg="Verified cloud creds can be used for minting new creds" controller=secretannotator
time="2021-12-06T03:21:20Z" level=info msg="syncing cluster operator status" controller=secretannotator_status
time="2021-12-06T03:21:20Z" level=info msg="calculated upgradeable condition" condition="&{Upgradeable True 0001-01-01 00:00:00 +0000 UTC  }"
time="2021-12-06T03:21:20Z" level=info msg="cluster operator status updated" controller=secretannotator_status
time="2021-12-06T03:21:28Z" level=info msg="calculating metrics for all CredentialsRequests" controller=metrics
time="2021-12-06T03:21:28Z" level=warning msg="Secret missing mode annotation, assuming ModeUnknown" controller=metrics

Comment 6 errata-xmlrpc 2022-01-12 09:47:25 UTC
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 (OpenShift Container Platform 4.6.53 bug fix update), 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-2022:0025