Bug #30004
As a user, i can import a content view version export into an existing content view
Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Description
As a user, i can import a content view version export into an existing content view
hammer content-view version import --organization=org --name=foo --metadata=<metadata file>Precheck
- Metadata + Dump should exist (checks for checksums)
- Content View must exist
- ‘Shell’ library repositories of the repositories in the content view must exist
- We can try automating this as extra credit
- As a user I can import the import file and the repositories and content views would be created for me if not present.
- Creates a new version
- Create a new repository in pulp (if not already created)
- Configure a pulp importer, give it a repo mapping and the location of the dump.
- Call the pulp import api
- Tackle other operations similar to CV publish.
- Copy over the deltas between cv version repo and library repo (due to applicability calculations)
Related issues
Associated revisions
History
#1
Updated by Partha Aji about 2 years ago
As a user, i can import a content view version export into an existing content view
hammer content-view version import --organization=org --name=foo --metadata=<metadata file>Precheck
- Metadata + Dump should exist (checks for checksums)
- Content View must exist
- ‘Shell’ library repositories of the repositories in the content view must exist
- We can try automating this as extra credit
- As a user I can import the import file and the repositories and content views would be created for me if not present.
- Creates a new version
- Create a new repository in pulp (if not already created)
- Configure a pulp importer, give it a repo mapping and the location of the dump.
- Call the pulp import api
- Tackle other operations similar to CV publish.
- Copy over the deltas between cv version repo and library repo (due to applicability calculations)
- Also i can import a Composite content view version export into an existing content view
- Call out to the docs team
#2
Updated by Partha Aji about 2 years ago
- Blocks Tracker #29977: Import/Export Stories added
#3
Updated by Chris Roberts about 2 years ago
- Triaged changed from No to Yes
- Target version set to Katello 4.0.0
- Category set to Inter Server Sync
#4
Updated by Chris Roberts about 2 years ago
- Target version changed from Katello 4.0.0 to Katello 3.17.0
#5
Updated by The Foreman Bot almost 2 years ago
- Assignee set to Partha Aji
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/8932 added
#6
Updated by The Foreman Bot almost 2 years ago
- Fixed in Releases Katello 4.0.0 added
#7
Updated by Partha Aji almost 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|dce578c1648a9eec1b2e4b2954c6cd1aa3519f9e.
Fixes #30004 - Api endpoint to import an exported content (#8932)
This commit allows you to import an exported content view dump via api.
Changes include
1) Adding a end point in CVV Controller that accepts cotent view and
import path
2) Modifying the publish action to handle import case.
3) Making the publish do the import instead of copy contents if
import_only is true.
4) Actions to orchestrate the importing
5) Actions to finally update the library instance with published
content.