Bug 1825259

Summary: When there is at least one stage migration, PV copy by snapshot takes the first rather than the last snapshot
Product: Migration Toolkit for Containers Reporter: Scott Seago <sseago>
Component: GeneralAssignee: Scott Seago <sseago>
Status: CLOSED DUPLICATE QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 1.3.0CC: chezhang, ernelson, jmatthew, pvauter, rjohnson, sregidor, whu
Target Milestone: ---   
Target Release: 1.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-05 20:54:07 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:

Description Scott Seago 2020-04-17 13:53:03 UTC
Description of problem:
When there is at least one stage migration, after the final migration is completed, any PVs copied by snapshot will have the content of the first rather than the last snapshot.

For snapshot copy, the restore plugin needs to discard the PV since snapshot restore doesn't support incremental copy.

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


How reproducible:
Always

Steps to Reproduce:
1. Create a MigPlan for a namespace with at least one PVC mounted by a running pod.
2. Configure the PV with action=copy, copyMethod=snapshot
3. Run a stage migration
4. Modify the PV (adding a file, etc.)
5. Run a final migration


Actual results:
Migrated PV is missing the changes from step 4. The migrated PV reflects PV state when the stage migration was done.

Expected results:
Migrated PV should include the changes from step 4

Additional info:

Comment 1 Scott Seago 2021-01-04 18:20:38 UTC
I think that https://bugzilla.redhat.com/show_bug.cgi?id=1894530 is a duplicate of this one, so this one can probably be closed as a duplicate since the other bug has the fix associated with it (and it's verified/closed)

Comment 2 Scott Seago 2021-01-04 18:22:59 UTC
That's the wrong link above. https://bugzilla.redhat.com/show_bug.cgi?id=1874635 is the closed duplicate BZ.

Comment 3 Erik Nelson 2021-01-05 20:54:07 UTC

*** This bug has been marked as a duplicate of bug 1874635 ***