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

[CCLM] DV/PVC leftover is not cleaned up when the migration is failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • CCLM
    • None
    • Quality / Stability / Reliability
    • 3
    • False
    • Hide

      None

      Show
      None
    • True
    • CNV Storage 276
    • Moderate

      Description of problem:

      DV/PVC leftover is not cleaned up when the migration is failed

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

      CNV-v4.20-98

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create and VM and do CCLM
      2. The migration is failed for some reason
      3. Check the target namespace
      

      Actual results:

      The DV/PVC leftover is not cleaned up:
      $ oc get pvc
      NAME                                                STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS                                 VOLUMEATTRIBUTESCLASS   AGE
      plan27-6255500b-8acb-417f-bb1f-6edb7f513457-g9dvx   Pending                                                                        ocs-storagecluster-ceph-rbd-virtualization   <unset>                 25m
      prime-bdbfc186-4caa-4fe4-a3e6-421b07d9d5f2          Bound     pvc-4e424d28-2424-47c5-b9c8-12275ec3f059   30Gi       RWX            ocs-storagecluster-ceph-rbd-virtualization   <unset>                 25m
      $ oc get dv
      NAME                                                PHASE              PROGRESS   RESTARTS   AGE
      plan27-6255500b-8acb-417f-bb1f-6edb7f513457-g9dvx   ImportInProgress   N/A        9          25m
      
      Deleting the Plan, the DV/PVC is still there. 
      $ oc get plan plan27 -n openshift-mtv
      Error from server (NotFound): plans.forklift.konveyor.io "plan27" not found
      $ oc get pvc
      NAME                                                STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS                                 VOLUMEATTRIBUTESCLASS   AGE
      plan27-6255500b-8acb-417f-bb1f-6edb7f513457-g9dvx   Pending                                                                        ocs-storagecluster-ceph-rbd-virtualization   <unset>                 25m
      prime-bdbfc186-4caa-4fe4-a3e6-421b07d9d5f2          Bound     pvc-4e424d28-2424-47c5-b9c8-12275ec3f059   30Gi       RWX            ocs-storagecluster-ceph-rbd-virtualization   <unset>                 25m
      
      
      
      

      Expected results:

      It is better to have a clearing mechanism that DV/PVC leftover could be cleaned up when migration is failed or the plan is deleted. 

      Additional info:

       

              slucidi@redhat.com Samuel Lucidi
              yadu1@redhat.com Yan Du
              Yan Du Yan Du
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: