Bug 1992148

Summary: [Azure CSI] cannot deploy Azure Disk on ASH because /etc/kubernetes is read-only fs
Product: OpenShift Container Platform Reporter: Mike Fedosin <mfedosin>
Component: StorageAssignee: Mike Fedosin <mfedosin>
Storage sub component: Operators QA Contact: Wei Duan <wduan>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.0   
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-10-18 17:45:44 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:

Description Mike Fedosin 2021-08-10 16:10:26 UTC
Description of problem:
When deploying Azure CSI driver on ASH, we see this error:

Warning  Failed  5m43s (x26720 over 4d2h)  kubelet  (combined from similar events): Error: container create failed: time="2021-08-10T15:41:20Z" level=error msg="container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting \"/var/lib/kubelet/pods/9b6be4b7-86c2-45e1-a6ce-032faf62a332/volume-subpaths/azure-cfg/csi-driver/3\" to rootfs at \"/etc/kubernetes/azurestackcloud.json\" caused: open /var/lib/containers/storage/overlay/ed6766de84eff62c52dc3446d5e4b77e2ca9ff2232c6357bff773ff3cd0e0a22/merged/etc/kubernetes/azurestackcloud.json: read-only file system"

Seems like this happens because we try to mount azurestackcloud.json file to /etc/kubernetes which is read-only: https://github.com/openshift/azure-disk-csi-driver-operator/blob/master/assets/controller.yaml#L74

Comment 2 Wei Duan 2021-08-24 02:06:31 UTC
Verified pass on 4.9.0-0.nightly-2021-08-22-070405

Azure CSI driver installed successfully on ASH.

Comment 5 errata-xmlrpc 2021-10-18 17:45:44 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.9.0 bug fix and 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-2021:3759