-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
2.11.0
-
Quality / Stability / Reliability
-
False
-
-
True
-
-
-
Sprint 10
Description of problem:
When set the conversionTempStorageClass, MTV use ephemeral volume, which is deleted automatically when related pod is deleted. a. MTV keep the inspection and conversion pod until user archive or delete the plan/pod. It's temp volume, we'd better delete the temp volume or document this, as when user set conversionTempStorageSize:2Ti for warm migration, after migration there are two 2Ti temp volumes left before user archive or delete the plan/pod. b. Warm migration, the inspection converson-temp-storage PVC,PV are left on cluster after user archive/delete the plan and delete related VM
Version-Release number of selected component (if applicable):
MTV 2.11.0-37 with CNV 4.20.13 and MTV 2.11.0-42 with CNV 4.21.1
How reproducible:
Always
Steps to Reproduce:
1) Create warm/cold migration plans to migrate VM from vCenter/ESXi 8 to OCP cluster with settings:
conversionTempStorageClass: nfs-csi or ocs-storagecluster-ceph-rbd conversionTempStorageSize: 1Ti
2) Plans executed successfully, the ephemeral pvc/pv are created and still exited when the plan is finished.
warm-rhel9-host-1ti-12-inspection-qzmdg-conversion-temp-storage: 1Ti
warm-rhel9-host-1ti-12-j6rxt-conversion-temp-storage: 1Ti
(MTV 2.11.0-37 with CNV 4.20.13) # oc get pvc|grep warm-rhel9-host-1ti-12 warm-rhel9-host-1ti-12-44l8c Bound pvc-ca6f1be6-3bbb-4187-876d-33adc43767d7 2276332667 RWX nfs-csi <unset> 9m25s warm-rhel9-host-1ti-12-ffnqm Bound pvc-e1bc8977-b925-422f-b410-5a76d34a43ae 18210661336 RWX nfs-csi <unset> 9m25s warm-rhel9-host-1ti-12-inspection-qzmdg-conversion-temp-storage Bound pvc-dae024ca-8afc-495e-9750-b59657d9a141 1Ti RWO ocs-storagecluster-ceph-rbd <unset> 12m warm-rhel9-host-1ti-12-j6rxt-conversion-temp-storage Bound pvc-600a7c2b-6a80-42b7-9bff-782b355a545f 1Ti RWO ocs-storagecluster-ceph-rbd <unset> 2m6s warm-rhel9-host-1ti-12-qdnpg Bound pvc-51c28462-5e39-4438-b877-c7ce102d3162 1138166334 RWX nfs-csi <unset> 9m25s
3) Cold migration: delete the conversion/inspection pod or archive/delete the plan, the pvc/pv are deleted;
Warm migration: the inspection converson-temp-storage PVC/PV is left on cluster after user archive/delete the plan and delete related VM
(MTV 2.11.0-42 with CNV 4.21.1) After warm migration, 1 inspection + 1 conversion temp storage PVCs are existed on cluster: # oc get pvc|grep conversion-temp-storage warm-rhel9-v8-host-12-inspection-zqnhf-conversion-temp-storage Bound pvc-96175084-8e6e-4e75-a600-77e5c32348c8 30Gi RWO ocs-storagecluster-ceph-rbd <unset> 67m warm-rhel9-v8-host-12-svtzh-conversion-temp-storage Bound pvc-b2b514c1-4f19-42a0-bc6f-bcc2fe56a406 30Gi RWO ocs-storagecluster-ceph-rbd <unset> 54m warm-win2022-v7-us-vm-1028-hmhmp-conversion-temp-storage Bound pvc-173a8326-fe0b-4094-8adb-7a64a9f9af6d 150Gi RWO nfs-csi <unset> 55m warm-win2022-v7-us-vm-1028-inspection-dpspk-conversion-temp-storage Bound pvc-9b2369e5-f0c3-43b0-855f-380ec5b2d9ce 150Gi RWO nfs-csi <unset> 67m After archiving and deleting the plans and related VMs, the conversion-temp-storage pvc/pvs are still left on cluster # oc get pvc|grep conversion-temp-storage warm-rhel9-v8-host-12-inspection-zqnhf-conversion-temp-storage Bound pvc-96175084-8e6e-4e75-a600-77e5c32348c8 30Gi RWO ocs-storagecluster-ceph-rbd <unset> 99m warm-win2022-v7-us-vm-1028-inspection-dpspk-conversion-temp-storage Bound pvc-9b2369e5-f0c3-43b0-855f-380ec5b2d9ce 150Gi RWO nfs-csi <unset> 99m # oc get plan No resources found in mtv-test namespace. # oc get vm No resources found in mtv-test namespace.
4) For warm migration: we need delete the inspection converson-temp-storage PVC/PV when archive/delete the plan.
As it's temp volume, we'd better delete the temp volume or document this to let user notice this, as when user set conversionTempStorageSize:1Ti for warm migration, after migration there are two 2Ti temp volumes left before user archive or delete the plan/pod.
Actual results:
In step2: The ephemeral pvc/pv are created and still exited when the plan is finished. Warm migration: the inspection converson-temp-storage PVC/PV are left on cluster after user archive/delete the plan and delete related VM
Expected results:
In step2: Delete the inspection converson-temp-storage PVC/PV when archive/delete the plan at least.
The ephemeral pvc/pv are deleted when the plan is finished or document this.
Additional info: