Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1719960 - hammer content view version export fails.
Summary: hammer content view version export fails.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.5.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: 6.6.0
Assignee: Suraj Patil
QA Contact: Peter Dragun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-12 19:59 UTC by Suraj Patil
Modified: 2019-10-22 19:50 UTC (History)
2 users (show)

Fixed In Version: rubygem-hammer_cli_katello-0.18.0.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:50:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27039 0 Normal Closed hammer content view version export fails. 2020-06-01 13:11:29 UTC
Github https://github.com/Katello hammer-cli-katello pull 651 0 None None None 2020-06-01 13:11:29 UTC

Description Suraj Patil 2019-06-12 19:59:21 UTC
Description of problem:
Hammer content view version export fails with the below error. 

[root@satellite]# hammer content-view version export --export-dir /var/export --id 2
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.

Version-Release number of selected component (if applicable):
Satellite 6.5

It fails when there is no repository added in the content-view, One of the customer has published the content without any repository and was trying to export it. 

Actual results:
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.

Expected results:
Should report that there is no repository added in the content view

Comment 3 Bryan Kearney 2019-06-24 22:08:09 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27039 has been resolved.

Comment 5 Peter Dragun 2019-07-16 11:58:22 UTC
Checked on Satellite 6.6 snap 11. Using code from comment#0 with no repository added in the content-view, ended with report:
Could not export the content view:
  Error: Ensure the content view version 'example' has at least one repository.

Comment 6 Bryan Kearney 2019-10-22 19:50:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3172


Note You need to log in before you can comment on or make changes to this bug.