Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-63698

[Hypershift] Azure-Disk and Azure-file CSI Driver doesn't work on Azure self-managed hosted cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.21
    • Storage / Operators
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • None
    • None
    • None
    • Proposed
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          Azure-Disk and Azure-file CSI Driver doesn't work on Azure self-managed hosted cluster

      Version-Release number of selected component (if applicable):

      mgmt cluster:
      $ oc version
      Client Version: 4.19.0-0.nightly-2025-02-09-122440
      Kustomize Version: v5.4.2
      Server Version: 4.21.0-0.nightly-2025-10-27-085201
      Kubernetes Version: v1.34.1
      $ oc get hostedclusters.hypershift.openshift.io  -n clusters
      NAME                  VERSION                              KUBECONFIG                             PROGRESS    AVAILABLE   PROGRESSING   MESSAGE
      wxj-self-managed-hc   4.21.0-0.nightly-2025-10-27-085201   wxj-self-managed-hc-admin-kubeconfig   Completed   True        False         The hosted control plane is available
      
      hosted cluster:
      $ oc version
      Client Version: 4.19.0-0.nightly-2025-02-09-122440
      Kustomize Version: v5.4.2
      Server Version: 4.21.0-0.nightly-2025-10-27-085201
      Kubernetes Version: v1.34.1

      How reproducible:

      Always    

      Steps to Reproduce:

          1. Create azure cluster as mgmt cluster
          2. Cluster azure self-managed hosted cluster
      $ oc get cloudcredentials cluster -o json | jq .spec.credentialsMode
      "Manual"
           3. Create Azure-Disk and Azure-file PVCs and pods
          

      Actual results:

      PVS should be in Bound status

      Expected results:

      PVCs are in Pending status 
      Azure-Disk:
      $ oc get pvc mypvc-test-1
      NAME           STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   VOLUMEATTRIBUTESCLASS   AGE
      mypvc-test-1   Pending                                      managed-csi    <unset>                 46m
      
      $ oc describe pvc mypvc-test-1
        Warning  ProvisioningFailed    35s (x17 over 34m)   disk.csi.azure.com_azure-disk-csi-driver-controller-b76f9dcb7-nwn8w_92e2f073-a654-4d92-90ea-0a40579daadb  failed to provision volume with StorageClass "managed-csi": rpc error: code = Internal desc = WorkloadIdentityCredential: open /var/run/secrets/openshift/serviceaccount/token: no such file or directory
      
      
      Azure-file:
      $ oc get pvc mydep-pvc-04
      NAME           STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS    VOLUMEATTRIBUTESCLASS   AGE
      mydep-pvc-04   Pending                                      azurefile-csi   <unset>                 21m
      
      $ oc describe pvc mydep-pvc-04
        Warning  ProvisioningFailed    4m36s (x14 over 23m)  file.csi.azure.com_azure-file-csi-driver-controller-bf96484b4-97tjf_9638cdae-2a66-499e-b8fc-84612b57c098  failed to provision volume with StorageClass "azurefile-csi": rpc error: code = Internal desc = failed to ensure storage account: clientFactory is nil

      Additional info:

      There is no token in Azure-Disk and Azure-File controller pod
      
      In mgmt cluster:
      Azure-disk:
      $ oc -n clusters-wxj-self-managed-hc rsh -c csi-driver azure-disk-csi-driver-controller-b76f9dcb7-nwn8w
      sh-5.1$  ls /var/run/secrets/openshift/serviceaccount/token
      ls: cannot access '/var/run/secrets/openshift/serviceaccount/token': No such file or directory
      Azure-file:
      $ oc -n clusters-wxj-self-managed-hc rsh  -c csi-driver azure-file-csi-driver-controller-bf96484b4-97tjf
      sh-5.1$ ls /var/run/secrets/openshift/serviceaccount/token
      ls: cannot access '/var/run/secrets/openshift/serviceaccount/token': No such file or directory    

       

              rh-ee-brcox Bryan Cox
              wduan@redhat.com Wei Duan
              None
              None
              Wei Duan Wei Duan
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: