Project

General

Profile

Bug #31406

As a user I 'd like to export library content

Added by Partha Aji about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

`hammer content-export library --organization-id=100`
  1. API
    • Investigate whether the proposed hammer workflow could be achieved via API (and to what extent) * Make destination server optional/nullable (model change) * If incremental the export action should fetch the correct export history (either choose the latest for a given destination server or if history-id is provided use that ) * if you cant find an export history error out * history-id & destination server are optional.
  1. Hammer endpoint should
    • Take in the organization id and optionally destination server
    • Create a content view if necessary with a name like `Export-Library-<destination-server-name>-view` or `Export-Library-view` if destination server is not provided.
    • Remove all the yum repositories this view
    • Add all the yum repositories in library to this view
    • Publish the content view
    • Call Export on the generated content view version, with the same destination server as provided

Associated revisions

Revision d81de1b9 (diff)
Added by Partha Aji about 2 months ago

Fixes #31406 - Can export library content + incrementals (#9051)

  • Fixes #31406 - Can export library content + incremental

This commit
1) Adds an API endpoint to export the Library content.
2) Adds an API endpoint for Incremental Export for both library and
version.
3) Makes destination server and history id optional
4) Improves the library import process.

Revision e7e3823a (diff)
Added by Partha Aji about 2 months ago

Refs #31406 - Hammer bindings for library export

hammer content-export library --organization-id=100

Goes wtih
https://github.com/Katello/katello/pull/9051

Revision bb207e6f (diff)
Added by Partha Aji about 2 months ago

Refs #31406 - Adding more test

History

#1 Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9051 added

#2 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/763 added

#3 Updated by Jonathon Turel about 2 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.18.0
  • Category set to Content Views

#4 Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases Katello 4.0.0 added

#5 Updated by Partha Aji about 2 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF