Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1652526

Summary: [RFE] The CV exported tar should have name respective to Content View name
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: Inter Satellite SyncAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Akhil Jha <akjha>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: chrobert, egolov, ehelms, ltran, vijsingh, zhunting
Target Milestone: 6.5.0Keywords: FutureFeature, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_katello-0.16.0.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 12:39:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1644596    

Description Jitendra Yejare 2018-11-22 10:10:39 UTC
Description of problem:
Currently, the exported tar is written with the name in format export-<cvv_id>.tar, 
but the exported tar should have some good pointer name to Content View and version something like export-<cv_name>-<cvv MinorMajor>.tar
(e.g export-myView-21.tar).

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

How reproducible:
Always

Steps to Reproduce:
1. Export content view version to some directory
2. Look at the tar name in the exported directory.

Actual results:
The exported tar name doesn't better relate to Content View and Version name.
Currently: export-<CVV_id>.tar

Expected results:
The exported tar should have a better pointer to Content View and version
Expected: export-<cv_name>-<cvv MinorMajor>.tar

Additional info:

Comment 2 vijsingh 2018-12-26 10:31:47 UTC
Failed QA:

@Satellite 6.5.0 Snap 9.0

Steps:
-------------------------
# hammer -u admin content-view version list --organization-id 1
[Foreman] Password for admin: 
----|-------------------------------|---------|-----------------------
ID  | NAME                          | VERSION | LIFECYCLE ENVIRONMENTS
----|-------------------------------|---------|-----------------------
399 | my_cv 2.0                     | 2.0     | Library               
398 | my_cv 1.0                     | 1.0     |                       
1   | Default Organization View 1.0 | 1.0     | Library               
----|-------------------------------|---------|-----------------------
# hammer -u admin content-view version export --id 399 --export-dir /root/
[Foreman] Password for admin: 

# ls /root
anaconda-ks.cfg       export-399.tar  foreman-debug.tar.xz  setup_configured  template_file_empty.txt
example_template.erb  foreman-debug   original-ks.cfg       ssl-build         template_file.txt

# ls -l /root/export-399.tar 
-rw-r--r--. 1 root root 184320 Dec 26 05:17 /root/export-399.tar

------------------------------

Observation/result:
 - Unable to see the exported file format as expected: export-<cv_name>-<cvv MinorMajor>.tar

Comment 4 Satellite Program 2018-12-26 11:01:40 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25682 has been resolved.

Comment 5 Chris Roberts 2019-01-15 17:04:40 UTC
Fixed upstream:

https://github.com/Katello/hammer-cli-katello/pull/607

Moving back to POST

Comment 10 vijsingh 2019-01-31 11:34:00 UTC
Verified:
Satellite 6.5.0 Snap 13.0

Steps/Observation:

 - Able to export C.V. with file name format : export-cvname-cvvid.tar

Opened another Bug for minor version add in name: https://bugzilla.redhat.com/show_bug.cgi?id=1671318

Comment 12 errata-xmlrpc 2019-05-14 12:39:03 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:1222