Project

General

Profile

Bug #30000

As a user, I can use CLI to export a unfiltered non-composite content view version to an export file with yum content.

Added by Partha Aji over 2 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

hammer content-view version export --export-dir export_directory --name=cv-foo --version=1.0 --disconnected-server-name=disconnected.example.com

Make api call to pulp (create exporter and repository versions in the cvv) * One call to create-exporter, include all repositories in the version * One call to initiate the export, including specific repository-versions if/as desired * Pulp exports each repository version to a file. Grab the filenames and checksums from the output of the export task.
CLI also generates a metadata json file containing the following information * CV Name, * Version * Repositories belonging to this version * Names and Checksums of the exported files * Rpms and errata_ids in those repositories.
Make an entry in the ContentViewExportHistory along the lines of
ID  |   server name  |  content view  | version |   Date | Description
========================================================
1   |  disconnected.example.com || foo  | 1.0   | 01/01/2020  |    None
* Verify the full export * Verify filtered non composite * Verify composite

Related issues

Blocks Katello - Tracker #29977: Import/Export StoriesResolved

History

#1 Updated by Partha Aji over 2 years ago

#2 Updated by Partha Aji over 2 years ago

Formatting corrections

hammer content-view version export --export-dir export_directory --name=cv-foo --version=1.0 --disconnected-server-name=disconnected.example.com
Make api call to pulp (create exporter and repository versions in the cvv)
  • One call to create-exporter, include all repositories in the version
  • One call to initiate the export, including specific repository-versions if/as desired
  • Pulp exports each repository version to a file. Grab the filenames and checksums from the output of the export task.
CLI also generates a metadata json file containing the following information
  • CV Name,
  • Version
  • Repositories belonging to this version
  • Names and Checksums of the exported files
  • Rpms and errata_ids in those repositories.

Make an entry in the ContentViewExportHistory along the lines of

ID  |   server name  |  content view  | version |   Date | Description
========================================================
1   |  disconnected.example.com || foo  | 1.0   | 01/01/2020  |    None

  • Verify the full export
  • Verify filtered non composite
  • Verify composite

#3 Updated by Jonathon Turel over 2 years ago

  • Target version set to Katello 4.0.0

#4 Updated by Jonathon Turel over 2 years ago

  • Triaged changed from No to Yes

#5 Updated by Chris Roberts over 2 years ago

  • Target version changed from Katello 4.0.0 to Katello 3.17.0

#6 Updated by Chris Roberts about 2 years ago

  • Target version changed from Katello 3.17.0 to Katello 3.18.0

#7 Updated by Jonathon Turel almost 2 years ago

  • Target version changed from Katello 3.18.0 to Katello Recycle Bin
  • Status changed from New to Rejected

Partha let me know if I closed this incorrectly!

Also available in: Atom PDF