Bug 1671318

Summary: [RFE] The CV exported tar should have minor version of Content View.
Product: Red Hat Satellite Reporter: vijsingh
Component: Inter Satellite SyncAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: vijsingh
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: bkearney, chrobert, ehelms, jturel, zhunting
Target Milestone: 6.6.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/26326
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 12:47:06 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 vijsingh 2019-01-31 11:21:16 UTC
Description of problem:

Currently, the exported tar is written with the name in format export-cvname-cvvid.tar, 
but the exported tar should have minor version of Content View too:

export-<cv_name>-<cvv MinorMajor>.tar

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

Satellite 6.5.0 Snap 13.0

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 does not have minor version of Content View in name:

 i.e. export-cvname-cvvid.tar

Expected results:

The exported tar should have minor version of Content View in name:
Expected: export-<cv_name>-<cvv MinorMajor>.tar

Comment 6 vijsingh 2019-06-04 07:34:33 UTC
ON_QA Verified

@Satellite 6.6.0 snap 5.0

Steps/Observation:

~~~~~~~~
[root@qe-sat6-bm1 ~]# hammer content-view version list
---|-------------------------------|---------|-----------------------
ID | NAME                          | VERSION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|-----------------------
3  | DevCV 2.0                     | 2.0     | Library               
2  | DevCV 1.0                     | 1.0     |                       
1  | Default Organization View 1.0 | 1.0     | Library               
---|-------------------------------|---------|-----------------------

[root@qe-sat6-bm1 ~]# hammer content-view version export --export-dir /tmp --id 2

[root@qe-sat6-bm1 ~]# hammer content-view version export --export-dir /tmp --id 3

[root@qe-sat6-bm1 ~]# ls -ltr /tmp|grep export
-rw-r--r--. 1 root    root    174080 Jun  4 03:15 export-DevCV-1.0.tar
-rw-r--r--. 1 root    root    174080 Jun  4 03:16 export-DevCV-2.0.tar
[root@qe-sat6-bm1 ~]#
~~~~~~~~

 - The exported tar does have minor version of Content View in it name:

Comment 8 errata-xmlrpc 2019-10-22 12:47:06 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