Bug 2024751

Summary: pod-identity-webhook starts without tls
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Cloud Credential OperatorAssignee: Luis Sanchez <sanchezl>
Status: CLOSED ERRATA QA Contact: Jianping SHu <jshu>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.10CC: jshu, lwan
Target Milestone: ---   
Target Release: 4.9.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: 2021-12-13 12:06:24 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: 2024613    
Bug Blocks: 2027928    

Comment 1 Jianping SHu 2021-11-24 06:53:57 UTC
Verified with cluster-bot cluster with PR 423 and 424 (launch 4.9-ci,openshift/cloud-credential-operator#423,openshift/cloud-credential-operator#424 aws)

1. Check pod-identity-webhook pod log, no "Error fetching secret"  
W1124 06:25:55.267947       1 client_config.go:615] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I1124 06:25:55.271611       1 main.go:191] Creating server
I1124 06:25:55.272333       1 main.go:211] Listening on :9999 for metrics and healthz
I1124 06:25:55.272695       1 main.go:205] Listening on :6443

2. Check creationTimestamp of secret pod-identity-webhook is before that of "Creating server" in log  
oc get secret pod-identity-webhook -n openshift-cloud-credential-operator -o yaml
  creationTimestamp: "2021-11-24T06:25:48Z"

3. Check the volume for secret pod-identity-webhook in pod yaml  
oc get pod pod-identity-webhook-57bcfb74c5-r6fj5 -n openshift-cloud-credential-operator -o yaml
  volumes:
  - name: webhook-certs
    secret:
      defaultMode: 420
      secretName: pod-identity-webhook

Comment 7 errata-xmlrpc 2021-12-13 12:06:24 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.9.11 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-2021:5003