Project

Profile

Help

Story #5407

closed

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

Added by ipanova@redhat.com over 5 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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.

Also available in: Atom PDF