Story #3821: As a user, I can migrate from Pulp 2 to Pulp 3
Mark changed/removed Pulp 2 repositories/importers/distributors
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.