Story #5407
closedStory #3821: As a user, I can migrate from Pulp 2 to Pulp 3
As a user I have a pulp2 api that generates a MP template
0%
Description
Add a pulp2 api endpoint that will return MP template in a json format based on the provided data.
This template is subject to further modifications unless whole plugin is intended to be migrated.
GET pulp/api/v2/migration-plan/?plugin=docker
Will return:
{
"plugins": [
{
"type": "docker",
}
]
}
GET pulp/api/v2/migration-plan/?plugin=docker&repositories=True
Will return:
{
"plugins": [
{
"type": "docker",
"repositories": [list of all repositories in Pulp2 for this plugin, one pulp2 repo is migrated into 1 pulp3 repo and repo version]
}
]
}
GET pulp/api/v2/migration-plan/?plugin=docker,iso
Will return:
{
"plugins": [
{
"type": "docker"
},
{
"type": "iso"
}
]
}
GET pulp/api/v2/migration-plan/?plugin=docker,iso&repositories=True
Will return:
{
"plugins": [
{
"type": "docker",
"repositories" : [list of all repositories in Pulp2 for this plugin, one pulp2 repo is migrated into 1 pulp3 repo and repo version]
},
{
"type": "iso",
"repositories" : [list of all repositories in Pulp2 for this plugin, one pulp2 repo is migrated into 1 pulp3 repo and repo version]
}
]
}
For further detailed specifications user will need to modify the json manually and also in the case when they don't want to migrate all repos. We need to provide docs that will explain how to do that.
Updated by mdellweg about 5 years ago
If pulp2 could spell out every repository available instead of specifying []
for all. It would be easier for the administrator to reorder and reassign entities.
Updated by ttereshc almost 5 years ago
- Project changed from Pulp to Migration Plugin
Updated by ttereshc over 4 years ago
- Status changed from NEW to CLOSED - WONTFIX
This no longer relevant. If anyone ever needs this functionality, it will be done in Pulp 3 in the migration plugin itself, feel free to open a new issue in this case.