Project

General

Profile

Feature #12446

Add ability to export yum repositories to disk

Added by Chris Duryee over 3 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

As a user, I would like Katello to export yum reposoties to disk. This includes both full and incremental date-based exports.

For this feature, the export will just be a dump to disk. Wrapping in tgz or ISO can be added later.

Deliverables for this feature are:

  • /export API for kicking off exports of yum repos which includes an optional "since" field for the incremental. If no date is given, perform a full export.
  • API wiring to kick off Pulp yum repo exports using the export distributor
  • any needed migrations to create export distributors for existing yum repos
  • a configurable on-disk export destination, set in the Katello tab under /settings.

The output of this task is to be able to hit the katello API and create an on-disk yum export.


Related issues

Blocks Katello - Tracker #12107: ISS (Inter-Satellite Sync) TrackerNew2015-10-08

Associated revisions

Revision b25847d1 (diff)
Added by Chris Duryee over 3 years ago

Fixes #12446 - Enable exports of yum repo data

The pulp export distributor was previously not enabled by Katello. This patch
does the following:

  • enable the export distributor when creating new yum repos
  • creates a new export_products role for the export API call
  • add a rake task to add the export distributor to existing yum repos
  • create a new katello/api/v2/repositories/:repo_id/export API endpoint that
    kicks off a pulp export task, with optional "since" paramerter.
  • adds a few dynflow tasks related to exports and adding new distributors. The
    dynflow task also allows for setting a suffix on the export, so multiple repos
    can be exported to the same location.

This patch assumes you have a `/tmp/katello-repo-exports` dir. To set it up:

  • `sudo mkdir /tmp/katello-repo-exports`
  • `sudo chown apache.apache /tmp/katello-repo-exports`
  • `sudo chcon -v --type=httpd_sys_rw_content_t /tmp/katello-repo-exports`

Note that the pulp repo creation call was altered to include the export
distributor, thus requiring VCR tests to be re-recorded.

Revision c848636a
Added by Eric D Helms over 3 years ago

Merge pull request #5583 from beav/export

Fixes #12446 - Enable exports of yum repo data

History

#1 Updated by Thomas McKay over 3 years ago

#2 Updated by Chris Duryee over 3 years ago

  • Status changed from New to Assigned

#3 Updated by The Foreman Bot over 3 years ago

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

#4 Updated by Chris Duryee over 3 years ago

  • Status changed from Ready For Testing to Assigned

#5 Updated by The Foreman Bot over 3 years ago

  • Status changed from Assigned to Ready For Testing

#6 Updated by Chris Duryee over 3 years ago

  • Status changed from Ready For Testing to Assigned

#7 Updated by The Foreman Bot over 3 years ago

  • Status changed from Assigned to Ready For Testing

#8 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 86
  • Triaged changed from No to Yes

#9 Updated by Chris Duryee over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF