Project

Profile

Help

Story #5178

Story #3821: As a user, I can migrate from Pulp 2 to Pulp 3

As a user, a Migration Plan is validated

Added by ttereshc over 2 years ago. Updated over 1 year ago.

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

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 58
Quarter:

Description

Users can submit a Migration Plan in JSON format.
The structure of the JSON as well as values in it need to be validated:
- check that structure is correct and only expected fields are present
- check that pulp2 plugins which need to be migrated and corresponding pulp 3 plugins are installed
- optionally check resources a Migration Plan refers to ( if a plugin exists in Pulp2, if resources exist in Pulp 2).

Consider using https://github.com/Julian/jsonschema which is among recommended project for JSON schema validation https://json-schema.org/implementations.html#validators

Example of a Migration Plan

 {
    "plugins": [
       { 
         "type": "iso",  # it should be a pulp2 type
         "protection": true, # migrate any content protection available for all repos
         "repositories" :  [
           {
             "name": "foo",
             "pulp2_repository_id":  "my_repo_id to use to find an importer to migrate"   # optional?
             "repository_versions": [
                 {
                   "pulp2_repository_id": "idA",
                   "distributor_ids":  ["distributor_id1", "distributor_id2"]  # optional?
                   "protection": ["distributor_id1"] # content protection migration is only needed for the specfied distributor(s)
                  },                
                  {
                    "pulp2_repository_id": "idB",
                    "distributor_ids":  ["distributor_id3"]
                  },
               ]
            }
        ]
     },
     {
       "type": "docker",
     }
  ]
}

For use cases and examples of a Migration Plan, see https://etherpad.net/p/pulp-2to3-migration

Associated revisions

Revision f1522ac8 View on GitHub
Added by ipanova@redhat.com over 2 years ago

As a user, a Migration Plan is validated.

closes #5178 https://pulp.plan.io/issues/5178

Revision f1522ac8 View on GitHub
Added by ipanova@redhat.com over 2 years ago

As a user, a Migration Plan is validated.

closes #5178 https://pulp.plan.io/issues/5178

Revision f1522ac8 View on GitHub
Added by ipanova@redhat.com over 2 years ago

As a user, a Migration Plan is validated.

closes #5178 https://pulp.plan.io/issues/5178

History

#1 Updated by ttereshc over 2 years ago

  • Description updated (diff)

#2 Updated by ttereshc over 2 years ago

  • Description updated (diff)

#3 Updated by dkliban@redhat.com over 2 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
  • Sprint set to Sprint 56

#4 Updated by rchan over 2 years ago

  • Sprint changed from Sprint 56 to Sprint 57

#5 Updated by ttereshc over 2 years ago

  • Parent task set to #3821

#6 Updated by ttereshc over 2 years ago

  • Description updated (diff)

#7 Updated by ipanova@redhat.com over 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

#8 Updated by ttereshc over 2 years ago

  • Description updated (diff)

#9 Updated by ttereshc over 2 years ago

  • Description updated (diff)

#10 Updated by ipanova@redhat.com over 2 years ago

  • Status changed from ASSIGNED to POST

#11 Updated by rchan over 2 years ago

  • Sprint changed from Sprint 57 to Sprint 58

#12 Updated by ipanova@redhat.com about 2 years ago

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

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

#13 Updated by bmbouter almost 2 years ago

  • Sprint/Milestone set to 3.0.0

#14 Updated by bmbouter almost 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#15 Updated by ttereshc almost 2 years ago

  • Project changed from Pulp to Migration Plugin
  • Sprint/Milestone deleted (3.0.0)

#16 Updated by ttereshc almost 2 years ago

  • Status changed from CLOSED - CURRENTRELEASE to MODIFIED

#17 Updated by ttereshc over 1 year ago

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

Please register to edit this issue

Also available in: Atom PDF