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

[vsphere-csi-driver-operator] CSI cloud.conf doesn't list multiple datacenters when specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 4.12
    • Storage / Operators
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      The vSphere CSI cloud.conf lists the single datacenter from platform workspace config but in a multi-zone setup (https://github.com/openshift/enhancements/pull/918 ) there may be more than the one datacenter.

      This issue is resulting in PVs failing to attach because the virtual machines can't be find in any other datacenter. For example:

      0s Warning FailedAttachVolume pod/image-registry-85b5d5db54-m78vp AttachVolume.Attach failed for volume "pvc-ab1a0611-cb3b-418d-bb3b-1e7bbe2a69ed" : rpc error: code = Internal desc = failed to find VirtualMachine for node:"rbost-zonal-ghxp2-worker-3-xm7gw". Error: virtual machine wasn't found  

      The machine above lives in datacenter-2 but the CSI cloud.conf is only aware of the datacenter IBMCloud.

      $ oc get cm vsphere-csi-config -o yaml  -n openshift-cluster-csi-drivers | grep datacenters
          datacenters = "IBMCloud" 

       

              hekumar@redhat.com Hemant Kumar
              rhn-support-rbost Robert Bost
              Wei Duan Wei Duan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: