Description of problem: Sometimes a migration may fail as the stage pods are created and stay in Pending as they are unable to mount a PVC due to it being stuck in a Terminating state. To recreate: 1) Create a Pod that mounts a PVC 2) Create a MigPlan that references the Pod and PVC 3) Delete the PVC while it is mounted to the Pod, PVC will be in terminating 4) Run a migration with the MigPlan
Fixed via https://github.com/konveyor/mig-controller/pull/583
Verified in MTC 1.3 SOURCE CLUSTER: Azure 4.2 TARGET CLUSTER: Azure 4.5 Replication repository: Azure Verified executing testcase "OCP-32834 - Migrate application that a PVC they are trying to attach is in 'Terminating'" Migration will now fail with: errors: - 'PVC: ocp32834/mysql, deleted.' itenerary: Failed Moved to VERIFIED status.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Migration Toolkit for Containers (MTC) Tool image release advisory 1.3.0), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4148