Bug 2024804
Summary: | gcp-pd-csi-driver does not use trusted-ca-bundle when cluster proxy configured | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Matt Bargenquast <mbargenq> |
Component: | Storage | Assignee: | Fabio Bertinatto <fbertina> |
Storage sub component: | Operators | QA Contact: | Wei Duan <wduan> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | aos-bugs, dofinn, jsafrane, wduan |
Version: | 4.8 | ||
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-10 16:29:41 UTC | Type: | Bug |
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: | |||
Bug Blocks: | 2038191 |
Description
Matt Bargenquast
2021-11-19 05:21:18 UTC
@Wei, would it be possible to verify this fix before merging it? I've tested it myself (with the environment that you helped me to get), but I'd like someone else to take a look before merging it. 1. Reproduced on 4.10.0-0.nightly-2022-01-05-181126 Config the proxy as: $ oc get proxy cluster -o yaml spec: httpProxy: http://proxy-user1:JYgU8qRZV4DY4PXJbxJK@10.0.0.2:3129 httpsProxy: http://proxy-user1:JYgU8qRZV4DY4PXJbxJK@10.0.0.2:3129 noProxy: test.no-proxy.com,.apps.wduan-0106c.qe.gcp.devcluster.openshift.com trustedCA: name: user-ca-bundle $ oc get pod -l app=gcp-pd-csi-driver-controller -n openshift-cluster-csi-drivers NAME READY STATUS RESTARTS AGE gcp-pd-csi-driver-controller-5f949d8bb8-hbqk2 9/10 CrashLoopBackOff 76 (2m49s ago) 3h47m gcp-pd-csi-driver-controller-5f949d8bb8-rsm2g 9/10 CrashLoopBackOff 66 (3m34s ago) 3h42m $ oc -n openshift-cluster-csi-drivers logs gcp-pd-csi-driver-controller-5f949d8bb8-hbqk2 -c csi-driver I0106 07:13:11.477353 1 main.go:73] Driver vendor version v4.10.0-202112171255.p0.g19e9a57.assembly.stream-0-ge32ee06-dirty I0106 07:13:11.490654 1 gce.go:84] Using GCE provider config <nil> I0106 07:13:11.491281 1 gce.go:135] GOOGLE_APPLICATION_CREDENTIALS env var set /etc/cloud-sa/service_account.json I0106 07:13:11.491693 1 gce.go:139] Using DefaultTokenSource &oauth2.reuseTokenSource{new:jwt.jwtSource{ctx:(*context.cancelCtx)(0xc00043e000), conf:(*jwt.Config)(0xc000442140)}, mu:sync.Mutex{state:0, sema:0x0}, t:(*oauth2.Token)(nil)} E0106 07:13:11.546518 1 gce.go:196] error fetching initial token: oauth2: cannot fetch token: Post "https://oauth2.googleapis.com/token": x509: certificate signed by unknown authority 2. Verified pass on 4.10.0-0.ci.test-2022-01-06-031931-ci-ln-p8isg1k-latest with pre-merged PR: openshift gcp-pd-csi-driver-operator pull 40 $ oc -n openshift-cluster-csi-drivers get pod NAME READY STATUS RESTARTS AGE gcp-pd-csi-driver-controller-798f8d89cd-f7mqj 10/10 Running 0 101m gcp-pd-csi-driver-controller-798f8d89cd-tj7xv 10/10 Running 0 95m gcp-pd-csi-driver-node-2p5dw 3/3 Running 3 106m gcp-pd-csi-driver-node-c8lr9 3/3 Running 3 105m gcp-pd-csi-driver-node-nkpmx 3/3 Running 3 105m gcp-pd-csi-driver-node-nqtbp 3/3 Running 3 105m gcp-pd-csi-driver-node-wzckk 3/3 Running 3 106m gcp-pd-csi-driver-operator-6f785b94b7-bwltc 1/1 Running 0 95m Create pvc with CSI driver and pod, pod is running. So update Verified: Tested. 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 (Moderate: OpenShift Container Platform 4.10.3 security 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/RHSA-2022:0056 |