Bug 1825259 - When there is at least one stage migration, PV copy by snapshot takes the first rather than the last snapshot
Summary: When there is at least one stage migration, PV copy by snapshot takes the fir...
Keywords:
Status: CLOSED DUPLICATE of bug 1874635
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: General
Version: 1.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 1.4.0
Assignee: Scott Seago
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-17 13:53 UTC by Scott Seago
Modified: 2021-01-05 20:54 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-05 20:54:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.