Task #5852
closedStory #3821: As a user, I can migrate from Pulp 2 to Pulp 3
Add ability to pre-migrate importers and distributors independently from the repo they belong to
100%
Description
Motivation¶
There is a use case which implies migration of an importer or of a distributor without migrating a pulp 2 repo they belong to: in the migration plan users can specify which distributor or which importer to use, and it's possible that repository they belong to doesn't need to be migrated.
Current implementation can migrate selectively importers and distributors but only from the repositories which needs to be migrated.
Solution¶
Allow to pre-migrate importers and distributors independently from a repo if needed.
- Introduce new method
get_mentioned_repositories
(?) on a migration plan object which will return all the repo_ids mentioned in the plan - repositories to migrate, repositories to take importers or distributors from.
(Currently we haveget_repositories
which return which repositories to migrate.
- Use the list of
mentioned_repositories
to get info from pulp2 and iterate over.
- Update repo pre-migration to pre-migrate only repositories needed to be migrated
- Update repocontent pre-migration to pre-migrate only content from the repositories needed to be migrate
- Allow relation to Pulp2Repository be null for Pulp2Importer and Pulp2Distributor.
Updated by ttereshc about 5 years ago
- Parent issue set to #3821
- Tags Pulp 2 to 3 Migrate added
Updated by dalley about 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by dalley almost 5 years ago
- Status changed from ASSIGNED to NEW
- Assignee deleted (
dalley)
Updated by ttereshc almost 5 years ago
- Project changed from Pulp to Migration Plugin
Updated by ttereshc almost 5 years ago
- Tags Katello-P1 added
- Tags deleted (
Katello-P2)
Updated by ttereshc almost 5 years ago
- Groomed changed from No to Yes
- Sprint set to Sprint 64
Updated by ttereshc almost 5 years ago
- Status changed from NEW to POST
Added by ttereshc almost 5 years ago
Added by ttereshc almost 5 years ago
Revision 80971584 | View on GitHub
Fully migrate importers and distributors on every run
Also inspect all importers, distributors in case some of them are requested to be migrated without a repository. Make sure RemoteArtifacts are created for already existing content when old Remotes are removed.
Migrations are squashed due to changes in the importer/distributor models.
Added by ttereshc almost 5 years ago
Revision 80971584 | View on GitHub
Fully migrate importers and distributors on every run
Also inspect all importers, distributors in case some of them are requested to be migrated without a repository. Make sure RemoteArtifacts are created for already existing content when old Remotes are removed.
Migrations are squashed due to changes in the importer/distributor models.
Updated by ttereshc almost 5 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp:pulp-2to3-migration|809715843fe093b614e9b0cef9a09a60e7a47ebc.
Updated by ttereshc over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
- Sprint/Milestone set to 0.1.0
Updated by bmbouter over 4 years ago
- Tags deleted (
Pulp 2 to 3 Migrate)
We're removing the 'Pulp 2 to 3 Migrate' tag to allow membership of the Migration Plugin project in Redmine to be the controlling area https://pulp.plan.io/projects/migration
Fully migrate importers and distributors on every run
Also inspect all importers, distributors in case some of them are requested to be migrated without a repository. Make sure RemoteArtifacts are created for already existing content when old Remotes are removed.
Migrations are squashed due to changes in the importer/distributor models.
closes #5980 https://pulp.plan.io/issues/5980
closes #5852 https://pulp.plan.io/issues/5852