As a user, I can track Publications/Distributions and not remigrate them on every run
Currently, Publications/Distributions are recreated on every run. It means that on every run, even if there were no changes all the metadata (for some plugins) needs to be regenerated and Publication and Distribution needs to be created.
Track If there were any changes in pulp2 distributors. Check if there were any changes to repositories. Based on that information decide whether to recreate the Publications and Distributions or not
Track If there were any changes in pulp2 distributors¶
Similar to importers, this commit removed some initial attempts to track the distrubutors, see the deletion in
It's very important to delete all irrelevant Distributions, otherwise it's possible to have an overlapping base_paths which will fail migration.
- Pulp2Distributor model for pre-migration needs a new field
not_in_planaccordingly in the
- Remove Publications and Distributions from Pulp 3 if their Pulp 2 counterpart is marked as
- When pre-migrating a distributor, determine if there were any changes and mark it by setting
- When pre-migrating a distributor, if there are changes affected a publication or a distribution, remove a Publication or A Distribution associated with it.
Check if there were any changes to repositories¶
- If a repository had any changes to the content, distributors for such repository needs to be marked as
is_migrated=Falseand corresponding Publication/Distribution should be removed from Pulp 3.
Based on that information decide whether to recreate Publications and Distributions or not¶
- At the migration step, create a Publication and/or a Distribution for each Pulp2Distributor has
- Status changed from ASSIGNED to POST
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp:pulp-2to3-migration|5562f70f982ec0706a9fb501ccc3a8da4433e49e.
Please register to edit this issue