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 1644593 - Content View Version export breaks while exporting to relative path
Summary: Content View Version export breaks while exporting to relative path
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Inter Satellite Sync
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.5.0
Assignee: satellite6-bugs
QA Contact: Jitendra Yejare
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks: 1644596
TreeView+ depends on / blocked
 
Reported: 2018-10-31 08:32 UTC by Jitendra Yejare
Modified: 2020-07-10 15:16 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_katello-0.16.0.4-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-14 12:38:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25857 0 Normal Closed Content View Version export breaks while exporting to relative path 2020-09-14 18:18:50 UTC
Github Katello hammer-cli-katello pull 616 0 None closed Fixes #25857 - Make export dir always absolute 2020-09-14 18:18:50 UTC
Red Hat Product Errata RHSA-2019:1222 0 None None None 2019-05-14 12:38:34 UTC

Description Jitendra Yejare 2018-10-31 08:32:08 UTC
Description of problem:
Content View Version export breaks while exporting the CVV contents to relative path folder. But works when we provide the absolute path.

Version-Release number of selected component (if applicable):
Satellite 6.5.0 snap 1

How reproducible:
Always

Steps to Reproduce:
1. Publish the CV with contents.
2. Export the CVv contents to a relative path folder.

Actual results:
The CVv export to relative path fails with the error below:
# hammer content-view version export --export-dir ExportedCV --id 2
tar: ExportedCV/export-2/export-2-repos.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Expected results:
The CVv export to relative path should work or should ask the user to provide the absolute path

Additional info:
The CVv export to absolute path works.

Comment 4 Jitendra Yejare 2019-01-21 09:22:18 UTC
Verified!

@Satellite 6.5 snap 12


Steps:
1. A published CV with contents.
2. Created a new directory.
3. Exported the CVv contents to above directory with its relative path.

Logs and Behavior(as expected):

# hammer content-view version list --organization-id 301
----|-------------------------------|---------|-----------------------
ID  | NAME                          | VERSION | LIFECYCLE ENVIRONMENTS
----|-------------------------------|---------|-----------------------
401 | cvexpo_cv 1.0                 | 1.0     | Library               
399 | Default Organization View 1.0 | 1.0     | Library               
----|-------------------------------|---------|-----------------------
# mkdir abc
# hammer content-view version export --export-dir abc --id 401
# ll abc/
total 180K
-rw-r--r--. 1 root root 180K Jan 21 04:10 export-cvexpo_cv-401.tar
# tar -tvf abc/export-cvexpo_cv-401.tar 
drwxr-xr-x root/root         0 2019-01-21 04:10 export-cvexpo_cv-401/
-rw-r--r-- root/root    174080 2019-01-21 04:10 export-cvexpo_cv-401/export-cvexpo_cv-401-repos.tar
-rw-r--r-- root/root      1802 2019-01-21 04:10 export-cvexpo_cv-401/export-cvexpo_cv-401.json

Comment 6 errata-xmlrpc 2019-05-14 12:38:26 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

Comment 7 Jitendra Yejare 2020-07-10 15:16:22 UTC
qe-test-coverage - : Minor bug, adds less value on automation, the export to absolute path is already been covered.


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