Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1854908

Summary: Stage pods stuck as a PVC they are trying to attach is in 'Terminating'
Product: OpenShift Container Platform Reporter: John Matthews <jmatthew>
Component: Migration ToolingAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: mberube, rjohnson, sregidor
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1854914 (view as bug list) Environment:
Last Closed: 2020-09-30 18:42:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1854914    

Description John Matthews 2020-07-08 12:36:25 UTC
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

Comment 1 John Matthews 2020-07-08 12:37:08 UTC
Fixed via https://github.com/konveyor/mig-controller/pull/583

Comment 4 Sergio 2020-09-17 10:23:34 UTC
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.

Comment 8 errata-xmlrpc 2020-09-30 18:42:32 UTC
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