Bug 1905119 - Race in AWS EBS determining whether custom CA bundle is used
Summary: Race in AWS EBS determining whether custom CA bundle is used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.7.0
Assignee: Matthew Staebler
QA Contact: Yunfei Jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-07 15:18 UTC by Matthew Staebler
Modified: 2021-02-24 15:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
This is a bug in new functionality added to 4.7.
Clone Of:
Environment:
Last Closed: 2021-02-24 15:40:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift aws-ebs-csi-driver-operator pull 111 0 None closed Bug 1905119: dynamically update controller asset for custom CA bundle 2021-02-18 09:54:28 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:40:49 UTC

Description Matthew Staebler 2020-12-07 15:18:38 UTC
The determination about whether a custom CA bundle is being used is assessed when the operator starts. This can lead to incorrect behavior if the kube-cloud-config ConfigMap has not yet been created in the openshit-config-managed namespace when the operator starts.

Comment 4 Yunfei Jiang 2021-02-07 05:28:01 UTC
verified. PASS
OCP version: 4.7.0-0.nightly-2021-02-05-005950


verify steps:
1. install c2s cluster
2. ca-bundle.pem exists in cm openshift-config-managed/kube-cloud-config
3. ca-bundle.pem exists in cm openshift-config/cloud-provider-config
4. CA bundle in deployment openshift-cluster-csi-drivers/aws-ebs-csi-driver-controller
<--snip-->
                            {
                                "mountPath": "/etc/ca",
                                "name": "ca-bundle",
                                "readOnly": true
                            }
<--snip-->
                            {
                                "name": "AWS_CA_BUNDLE",
                                "value": "/etc/ca/ca-bundle.pem"
                            }
<--snip-->

5. remove ca-bundle.pem from openshift-config/cloud-provider-config
6. ca-bundle.pem not exists in cm openshift-config-managed/kube-cloud-config
7. CA bundle not used in deployment openshift-cluster-csi-drivers/aws-ebs-csi-driver-controller
8. add ca-bundle.pem to openshift-config/cloud-provider-config
9. ca-bundle.pem exists in cm openshift-config-managed/kube-cloud-config, and its value is up to date.
10. CA bundle in deployment openshift-cluster-csi-drivers/aws-ebs-csi-driver-controller, and its value is up to date.

Comment 7 errata-xmlrpc 2021-02-24 15:40:32 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement 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-2020:5633


Note You need to log in before you can comment on or make changes to this bug.