Project

Profile

Help

Story #5407

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 about 2 months ago. Updated 1 day ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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&repositories=True

Will return:

 {
    "plugins": [
       { 
         "type": "docker",
         "protection": false,
         "repositories" :  [ ]
     }
  ]
}

GET pulp/api/v2/migration-plan/?plugin=docker

Will return:

 {
    "plugins": [
       { 
         "type": "docker" 
     }
  ]
}

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&protection=True

Will return:

 {
    "plugins": [
       { 
         "type": "docker",
         "protection": true,
         "repositories" :  []
     },
       { 
         "type": "iso",
         "protection": true,
         "repositories" :  []
     }
  ]
}

For further detailed specifications user will need to modify the json manually and add repos, distributors, etc he wants to migrate in case he does not want to migrate all repos. We need to provide docs that will explain how to do that.

History

#1 Updated by ipanova@redhat.com about 2 months ago

  • Description updated (diff)

#2 Updated by mdellweg 1 day 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.

Please register to edit this issue

Also available in: Atom PDF