Bug 2027928

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: cshereme, jshu, lwan
Target Milestone: ---   
Target Release: 4.8.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-14 11:45:39 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: 2024751    
Bug Blocks:    

Comment 1 Joel Diaz 2021-12-03 18:49:11 UTC
*** Bug 2028615 has been marked as a duplicate of this bug. ***

Comment 2 Jianping SHu 2021-12-06 07:05:21 UTC
Verified with cluster-bot cluster with PR 429 (launch 4.8-ci,openshift/cloud-credential-operator#429 aws)

1. Check pod-identity-webhook pod log, no "Error fetching secret"  
W1206 06:25:55.569752       1 client_config.go:615] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I1206 06:25:55.573631       1 main.go:191] Creating server
I1206 06:25:55.574435       1 main.go:211] Listening on :9999 for metrics and healthz
I1206 06:25:55.574549       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-12-06T06:25:50Z"

3. Check the volume in pod-identity-webhook yaml  
oc get pod pod-identity-webhook-844494b567-qw8kq -n openshift-cloud-credential-operator -o yaml
  volumes:
  - name: webhook-certs
    secret:
      defaultMode: 420
      secretName: pod-identity-webhook

Comment 8 errata-xmlrpc 2021-12-14 11:45:39 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.8.24 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:4999