Bug 1650468

Summary: [RFE] Allow to export Docker images from content views or as repository as part ISS
Product: Red Hat Satellite Reporter: Avijit Roy <avroy>
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: avnkumar, bkearney, bshahu, ehelms, ggainey, iballou, jcallaha, jlenz, mfadaly, nikhjain, pcreech, saydas, vcojot, vsedmik, wpinheir
Target Milestone: 6.13.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: rubygem-katello-4.7.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2227851 (view as bug list) Environment:
Last Closed: 2023-05-03 13:20:29 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:
Attachments:
Description Flags
RHEL 8 Hotfix RPM for Satellite 6.12.4 none

Description Avijit Roy 2018-11-16 09:23:06 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 5 Eric Helms 2018-11-28 20:55:14 UTC
*** Bug 1467876 has been marked as a duplicate of this bug. ***

Comment 13 Partha Aji 2022-07-14 19:00:26 UTC
*** Bug 1953128 has been marked as a duplicate of this bug. ***

Comment 14 Partha Aji 2022-07-20 02:57:00 UTC
Connecting redmine issue https://projects.theforeman.org/issues/35247 from this bug

Comment 15 Bryan Kearney 2022-07-20 08:01:02 UTC
Upstream bug assigned to paji

Comment 16 Bryan Kearney 2022-07-20 08:01:05 UTC
Upstream bug assigned to paji

Comment 17 Bryan Kearney 2022-08-20 08:01:05 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35247 has been resolved.

Comment 19 Mahmoud Fadaly 2022-09-05 17:40:56 UTC
Hi 

I faced this issue during importing and exporting between two satellites 
Unfortunately I stuck in moving container images for OSP deployment.

What's the work around for this issue 

Any idea!


Regards
Mahmoud Fadaly

Comment 27 errata-xmlrpc 2023-05-03 13:20:29 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 (Important: Satellite 6.13 Release), 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-2023:2097

Comment 28 Ian Ballou 2023-06-07 21:19:09 UTC
Created attachment 1969608 [details]
RHEL 8 Hotfix RPM for Satellite 6.12.4

A Hotfix RPM is available for this BZ for Satellite 6.12.4 on RHEL8


INSTALL INSTRUCTIONS (Satellite 6.12.4 on RHEL8):

1. Take a complete backup or snapshot of Satellite 6.12.4 server

2. Dowload the Hotfix RPM from the attachment: rubygem-katello-4.5.0.33-1.HOTFIXRHBZ1650468.el8sat.noarch.rpm

3. # dnf localinstall ./rubygem-katello-4.5.0.33-1.HOTFIXRHBZ1650468.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart