Project

Profile

Help

Story #5178

closed

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 almost 5 years ago. Updated about 4 years 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

Actions #1

Updated by ttereshc almost 5 years ago

  • Description updated (diff)
Actions #2

Updated by ttereshc almost 5 years ago

  • Description updated (diff)
Actions #3

Updated by dkliban@redhat.com almost 5 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
  • Sprint set to Sprint 56
Actions #4

Updated by rchan almost 5 years ago

  • Sprint changed from Sprint 56 to Sprint 57
Actions #5

Updated by ttereshc almost 5 years ago

  • Parent issue set to #3821
Actions #6

Updated by ttereshc almost 5 years ago

  • Description updated (diff)
Actions #7

Updated by ipanova@redhat.com almost 5 years ago

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

Updated by ttereshc almost 5 years ago

  • Description updated (diff)
Actions #9

Updated by ttereshc almost 5 years ago

  • Description updated (diff)
Actions #10

Updated by ipanova@redhat.com almost 5 years ago

  • Status changed from ASSIGNED to POST
Actions #11

Updated by rchan almost 5 years ago

  • Sprint changed from Sprint 57 to Sprint 58

Added by ipanova@redhat.com almost 5 years ago

Revision f1522ac8 | View on GitHub

As a user, a Migration Plan is validated.

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

Added by ipanova@redhat.com almost 5 years ago

Revision f1522ac8 | View on GitHub

As a user, a Migration Plan is validated.

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

Added by ipanova@redhat.com almost 5 years ago

Revision f1522ac8 | View on GitHub

As a user, a Migration Plan is validated.

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

Actions #12

Updated by ipanova@redhat.com almost 5 years ago

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

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

Actions #13

Updated by bmbouter over 4 years ago

  • Sprint/Milestone set to 3.0.0
Actions #14

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #15

Updated by ttereshc over 4 years ago

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

Updated by ttereshc over 4 years ago

  • Status changed from CLOSED - CURRENTRELEASE to MODIFIED
Actions #17

Updated by ttereshc about 4 years ago

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

Also available in: Atom PDF