Uploaded image for project: 'OpenShift Migration Toolkit for Containers'
  1. OpenShift Migration Toolkit for Containers
  2. MIG-1774

MTC can perform storage class conversion on volumes that were previously restored by OADP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • pvc-migrate
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo

      Hello team:

      [ Description ]:
      While running StorageClass Conversion using MTC over a volume that was successfully restored with OADP, we encountered the following errors:

       

      2m53s       Normal    Provisioning           persistentvolumeclaim/xxxxxxx   External provisioner is provisioning volume for claim "yyyyyyyyyyy/xxxxxxx"
      2m53s       Warning   ProvisioningFailed     persistentvolumeclaim/xxxxxxxx   failed to provision volume with StorageClass "ocs-storagecluster-cephfs": claim Selector is not supported
       

      Checking on the PVC definition that is being converted, we noticed that it comes with a selector label: 

      $ oc get pvc xxxxxxxxx -o yaml |yq '.spec.selector'
      {
        "matchLabels": {
          "velero.io/dynamic-pv-restore": "xxxxxxxxxxx"
        }
      }
       

      According to the following KCS or Kubernetes documentation, dynamically provisioned PVC's even if they are restored, should not come with a selector:

      This ticket is a follow-up to analyze if this could be fixed from the MTC perspective, as per OADP engineering determined in https://issues.redhat.com/browse/OADP-6507 

              rhn-engineering-dymurray Dylan Murray
              rhn-support-lperezbe Luis Perez Besa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: