-
Bug
-
Resolution: Done-Errata
-
Major
-
None
-
4.17.z, 4.16.z, 4.18.z, 4.19.0
-
None
Description of problem:
[CSI Operator] azure stack hub inject env config incorrect
Version-Release number of selected component (if applicable):
4.19.0-0.nightly-2025-04-10-031621
How reproducible:
Always
Steps to Reproduce:
1. Install an openshift cluster on azure stack hub. 2. Check the csi driver controller/node state and logs.
Actual results:
In step 2 the driver controller/node pods logs contains "InitializeCloudFromConfig failed with error: read /etc/azure/azurestackcloud.json: is a directory" $ omc logs -c csi-driver azure-disk-csi-driver-node-k5shm | head -n 100 2025-03-27T21:07:32.019030795Z I0327 21:07:32.018931 1 main.go:112] set up prometheus server on 127.0.0.1:8206 2025-03-27T21:07:32.019138486Z I0327 21:07:32.019030 1 main.go:87] Sys info: NumCPU: 8 MAXPROC: 2 2025-03-27T21:07:32.019138486Z I0327 21:07:32.019057 1 azuredisk.go:222] driver userAgent: disk.csi.azure.com/v1.32.0 2025-03-27T21:07:32.019138486Z W0327 21:07:32.019071 1 client_config.go:667] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work. 2025-03-27T21:07:32.019619574Z I0327 21:07:32.019593 1 azure_disk_utils.go:155] reading cloud config from secret ""/"" 2025-03-27T21:07:32.027386838Z I0327 21:07:32.027342 1 azure_disk_utils.go:165] InitializeCloudFromSecret: failed to get cloud config from secret ""/"": secrets "\"\"" is forbidden: User "system:serviceaccount:openshift-cluster-csi-drivers:azure-disk-csi-driver-node-sa" cannot get resource "secrets" in API group "" in the namespace "\"\"" 2025-03-27T21:07:32.027386838Z I0327 21:07:32.027364 1 azure_disk_utils.go:174] could not read cloud config from secret ""/"" 2025-03-27T21:07:32.027386838Z I0327 21:07:32.027374 1 azure_disk_utils.go:177] AZURE_CREDENTIAL_FILE env var set as /etc/kubernetes/cloud.conf 2025-03-27T21:07:32.105160383Z W0327 21:07:32.105102 1 azure_disk_utils.go:236] InitializeCloudFromConfig failed with error: read /etc/azure/azurestackcloud.json: is a directory
Expected results:
In step 2 the driver controller/node pods logs should not contains "InitializeCloudFromConfig failed with error" and all pods should be healthy running
Additional info:
- blocks
-
OCPBUGS-55053 [4.18][CSI Operator] azure stack hub inject env config incorrect
-
- Closed
-
- is cloned by
-
OCPBUGS-55053 [4.18][CSI Operator] azure stack hub inject env config incorrect
-
- Closed
-
- is depended on by
-
OCPBUGS-54382 Azure stack: storage azure disk csi driver node pods CrashLoopBackOff
-
- Closed
-
- links to
-
RHEA-2024:11038 OpenShift Container Platform 4.19.z bug fix update