Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-4321

Fail to get a Pure volume by name if in a FlashArray POD

XMLWordPrintable

      Current behaviour:

      • Storage backend tries to fetch a volume by its {CLUSTER\_PREFIX}

        and

        {NAME}
      • we rely on the default CSI behaviour to create volumes on the root/default POD which means no pod
      • POD is an optional parameter in the StorageClass parameters.pure_fa_pod_name

      We have no way to reliably get a volume by name if reside in a POD. Because The POD details
      are not exposed on the k8s PersistentVolume for CSI driver < 25.8

      However, in CSI driver version 25.8 and above they set the volumeID in the PV VolumeHandle
      So we can get the volume by ID.
      We need to fallback to search by name if we can't find the volume
      Once CDI version < 25.8 are no longer supported we can remove that fallback

      Workaround for volumes in PODs:
      Since a POD is part of the volume name on the array, just like CLUSTER_PREFIX,
      adding the POD name to the cluster prefix will make the current code work.
      E.g CSI driver is 25.1 , PV name is "123", cluster prefix is "px-000" and POD is "user_pod".
      Set the secret key CLUSTER_PREFIX="user_pod::px-123".

              rgolan1@redhat.com Roy Golan
              rgolan1@redhat.com Roy Golan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: