Story #5178
closedStory #3821: As a user, I can migrate from Pulp 2 to Pulp 3
As a user, a Migration Plan is validated
100%
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
Updated by dkliban@redhat.com over 5 years ago
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
- Sprint set to Sprint 56
Updated by ipanova@redhat.com over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
Updated by ipanova@redhat.com over 5 years ago
- Status changed from ASSIGNED to POST
Added by ipanova@redhat.com about 5 years ago
Added by ipanova@redhat.com about 5 years ago
Revision f1522ac8 | View on GitHub
As a user, a Migration Plan is validated.
Added by ipanova@redhat.com about 5 years ago
Revision f1522ac8 | View on GitHub
As a user, a Migration Plan is validated.
Updated by ipanova@redhat.com about 5 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset commit:pulp-2to3-migrate|f1522ac8a405b90cf9712702665eba451314c262.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Updated by ttereshc almost 5 years ago
- Project changed from Pulp to Migration Plugin
- Sprint/Milestone deleted (
3.0.0)
Updated by ttereshc almost 5 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
As a user, a Migration Plan is validated.
closes #5178 https://pulp.plan.io/issues/5178