Bug 2227854

Summary: [RFE] Allow to export Docker images from content views or as repository as part ISS
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: Inter Satellite SyncAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: iballou, paji, vsedmik
Target Milestone: 6.12.5Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.5.0.34-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-24 18:24:35 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:

Description Odilon Sousa 2023-07-31 17:55:36 UTC
Description of problem:

Docker images can not be exported from satellite either as repository or as part of CV to be used in disconnected satellite.

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

How reproducible:

1. Create a custom product & create repository of docker type.
2. Sync the repository.
3. Export the docker images as repository gives below error. 

++++++++++++++++++++++++++++++++++++++++++++++++++++++
 [root@satellite ~]#  hammer repository export --id  2
Could not export the repository:
  Repository content type must be 'yum' to export.  
++++++++++++++++++++++++++++++++++++++++++++++++++++++

4. Export it as part of CV gives below error. 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@vm249-255 ~]# hammer content-view version export --id 2
[.........................................................................................................................................] [100%]
Error: No such file or directory @ rb_file_s_stat - /var/lib/pulp/published/yum/master/group_export_distributor/RedOrg-opencv-v1.0
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Steps to Reproduce:

1. Create a custom product & create repository of docker type.
2. Sync the repository.
3. Export the docker images as repository gives below error. 
4. Export it as part of CV gives below error. 

Actual results:

Export as repository or part of CV fails with error. 

++++++++++++++++++++++++++++++++++++++++++++++++++++++
 [root@satellite ~]#  hammer repository export --id  2
Could not export the repository:
  Repository content type must be 'yum' to export.  
++++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[root@vm249-255 ~]# hammer content-view version export --id 2
[.........................................................................................................................................] [100%]
Error: No such file or directory @ rb_file_s_stat - /var/lib/pulp/published/yum/master/group_export_distributor/RedOrg-opencv-v1.0
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 

Expected results:
Docker images should be exported either as repository or as Part of CV

Additional info:

Same behaviour has been observed in 

satellite 6.3
satellite 6.4

Comment 1 Bryan Kearney 2023-07-31 20:03:32 UTC
Upstream bug assigned to paji

Comment 2 Bryan Kearney 2023-07-31 20:03:34 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35247 has been resolved.

Comment 6 Vladimír Sedmík 2023-08-08 07:17:27 UTC
Verified in 6.12.5 snap 2 by automation - the tests passed locally and in PRT, cherry-picked to 6.12.z

Comment 11 errata-xmlrpc 2023-08-24 18:24:35 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 (Satellite 6.12.5 Async Update), 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/RHBA-2023:4749