Actions
Task #5632
closedStory #3821: As a user, I can migrate from Pulp 2 to Pulp 3
Mark changed/removed Pulp 2 repositories/importers/distributors
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 63
Quarter:
Description
Introduce a new field not_in_pulp2
on models for Pulp2Repository, Pulp2Importer, Pulp2Distributor pre-migration.
It should be False by default.
At pre-migration stage set not_in_pulp2
to True for the resources which are no longer in Pulp 2.
Only check/change resources for a specified plugin type!
Don't rely on id of resources but on their object_id when performing search/lookup.
There is an is_migrated
flag already on the mentioned models, it should be set to False if relevant timestamps for resources change. The migration stage should take is_migrated
into account.
Actions
Mark changed or removed resources
Also support the case if a resource has been re-created in pulp2, aka has same name or resource id but different object_id.
closes #5632 https://pulp.plan.io/issues/5632