Story #3810
closedStory #3821: As a user, I can migrate from Pulp 2 to Pulp 3
Story #3822: As a user, I can migrate all content units of a specific type from Pulp 2 to Pulp 3
As a user, I can migrate ISO content units from Pulp 2 into Pulp 3 as File Content
100%
Description
Desired workflow for migrating ISO content¶
1. Create a migration plan by POSTing to /pulp/api/v3/migration-plans/ the following JSON.¶
{
"plugins": [
{
"type": "iso",
}
]
}
2. Run the migration plan¶
POST request to /pulp/api/v3/migration-plans/asdf-2345-ghjk-4567-adc/run/
Implementation details¶
The migrate_from_pulp2 task[0] needs to be updated to do the following:
1. Query the Pulp2Content model for: type='iso', pulp3content=None
2. Dispatch 36 'migrate_content' coroutines with 1 parameter: content_queryset - a slice of the queryset from step 1.
3. For each unit discovered, the coroutine will do the following:
- create a hard link in /var/lib/pulp/artifacts/ directory
- create Artifact in the Pulp3 database
- create FileContent in the Pulp3 database
- update the Pulp2Content model with a reference to the FileContent
[0] https://github.com/pulp/pulp-2to3-migrate/blob/master/pulp_2to3_migrate/app/tasks/migrate.py#L3
Updated by jsherril@redhat.com about 6 years ago
- Tags Katello-P1 added
- Tags deleted (
Pulp 3)
Updated by ttereshc almost 6 years ago
- Related to Story #3822: As a user, I can migrate all content units of a specific type from Pulp 2 to Pulp 3 added
Updated by amacdona@redhat.com over 5 years ago
- Sprint changed from Sprint 53 to Sprint 54
Updated by ttereshc over 5 years ago
- Sprint changed from Sprint 54 to Sprint 55
Updated by jsherril@redhat.com over 5 years ago
- Tags Katello-P2 added
- Tags deleted (
Katello-P1)
Updated by dkliban@redhat.com about 5 years ago
- Sprint changed from Sprint 55 to Sprint 56
Updated by dkliban@redhat.com about 5 years ago
- Description updated (diff)
Since this code is going to be run as coroutines, I am roving all information about sharding. If we decide to dispatch this work through the tasking system we can add the sharding of the content.
Updated by ttereshc about 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Updated by ttereshc about 5 years ago
- Status changed from ASSIGNED to POST
Added by ttereshc about 5 years ago
Added by ttereshc about 5 years ago
Revision 56ea0ed7 | View on GitHub
Migrate Pulp 2 ISO content into Pulp 3
Create hard links (of copy if not possible) and create Artifacts, ContentArtifacts and Content in pulp 3.
closes #3810 https://pulp.plan.io/issues/3810
Required PR: https://github.com/pulp/pulpcore/pull/254/
Added by ttereshc about 5 years ago
Revision 56ea0ed7 | View on GitHub
Migrate Pulp 2 ISO content into Pulp 3
Create hard links (of copy if not possible) and create Artifacts, ContentArtifacts and Content in pulp 3.
closes #3810 https://pulp.plan.io/issues/3810
Required PR: https://github.com/pulp/pulpcore/pull/254/
Added by ttereshc about 5 years ago
Revision 56ea0ed7 | View on GitHub
Migrate Pulp 2 ISO content into Pulp 3
Create hard links (of copy if not possible) and create Artifacts, ContentArtifacts and Content in pulp 3.
closes #3810 https://pulp.plan.io/issues/3810
Required PR: https://github.com/pulp/pulpcore/pull/254/
Updated by ttereshc about 5 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset commit:pulp-2to3-migrate|56ea0ed75e34da968e15e9299e3cb7360ac9dfd1.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Updated by ttereshc over 4 years ago
- Status changed from CLOSED - CURRENTRELEASE to MODIFIED
Updated by ttereshc over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
- Sprint/Milestone set to 0.1.0
Updated by ggainey over 4 years ago
- Tags Katello added
- Tags deleted (
Katello-P2)
Allow artfacts to be pre-stored in the Pulp 3 storage
re #3810 https://pulp.plan.io/issues/3810