Project

Profile

Help

Story #3810

Story #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

Added by ttereshc over 2 years ago. Updated 7 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Katello
Sprint:
Sprint 57
Quarter:

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

Associated revisions

Revision c0680580 View on GitHub
Added by ttereshc over 1 year ago

Allow artfacts to be pre-stored in the Pulp 3 storage

re #3810 https://pulp.plan.io/issues/3810

Revision 56ea0ed7 View on GitHub
Added by ttereshc over 1 year ago

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/

Revision 56ea0ed7 View on GitHub
Added by ttereshc over 1 year ago

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/

Revision 56ea0ed7 View on GitHub
Added by ttereshc over 1 year ago

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/

History

#1 Updated by jsherril@redhat.com over 2 years ago

  • Tags Katello-P1 added
  • Tags deleted (Pulp 3)

#2 Updated by jsherril@redhat.com over 2 years ago

  • Tags Pulp 3 added

#3 Updated by ttereshc about 2 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

#4 Updated by amacdona@redhat.com about 2 years ago

  • Parent task set to #3821

#5 Updated by ttereshc over 1 year ago

  • Parent task changed from #3821 to #3822

#6 Updated by bmbouter over 1 year ago

  • Tags deleted (Pulp 3)

#7 Updated by ttereshc over 1 year ago

  • Description updated (diff)

#8 Updated by ttereshc over 1 year ago

  • Sprint Candidate changed from No to Yes

#9 Updated by dkliban@redhat.com over 1 year ago

  • Groomed changed from No to Yes

#10 Updated by CodeHeeler over 1 year ago

  • Sprint set to Sprint 53

#11 Updated by amacdona@redhat.com over 1 year ago

  • Sprint changed from Sprint 53 to Sprint 54

#12 Updated by ttereshc over 1 year ago

  • Sprint changed from Sprint 54 to Sprint 55

#13 Updated by jsherril@redhat.com over 1 year ago

  • Tags Katello-P2 added
  • Tags deleted (Katello-P1)

#14 Updated by dkliban@redhat.com over 1 year ago

  • Sprint changed from Sprint 55 to Sprint 56

#15 Updated by dkliban@redhat.com over 1 year ago

  • Description updated (diff)

#16 Updated by dkliban@redhat.com over 1 year 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.

#17 Updated by ttereshc over 1 year ago

  • Description updated (diff)

#18 Updated by ttereshc over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc

#19 Updated by ttereshc over 1 year ago

  • Description updated (diff)

#20 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 56 to Sprint 57

#21 Updated by ttereshc over 1 year ago

  • Status changed from ASSIGNED to POST

#22 Updated by ttereshc over 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

Applied in changeset commit:pulp-2to3-migrate|56ea0ed75e34da968e15e9299e3cb7360ac9dfd1.

#23 Updated by bmbouter 12 months ago

  • Sprint/Milestone set to 3.0.0

#24 Updated by bmbouter 12 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#25 Updated by ttereshc 11 months ago

  • Status changed from CLOSED - CURRENTRELEASE to MODIFIED

#26 Updated by ttereshc 9 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
  • Sprint/Milestone set to 0.1.0

#27 Updated by ggainey 7 months ago

  • Tags Katello added
  • Tags deleted (Katello-P2)

Please register to edit this issue

Also available in: Atom PDF