Bug 1995827

Summary: [RFE] Enable export and import of file repositories in Satellite
Product: Red Hat Satellite Reporter: Sam Wachira <swachira>
Component: Inter Satellite SyncAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: jturel, paji, zhunting
Target Milestone: 6.10.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.1.1.31-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:13:24 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
cv import none

Comment 3 Lai 2021-08-31 14:02:15 UTC
Steps to test:

1. Get two 6.10 satellite
2. On one satellite, use for export, set the "Default Custom Repo Download Policy" to immediate
3. Create a customer file repo and sync it
4. Create a cv and add the repo in step 3 and publish it
5. Export the cv
6. On the 2nd satellite, use for import, set the Default Custom Repo Download Policy to immediate
7. Set the disconnected mode to yes
8. Scp the files from /var/lib/pulp/export/<exported dir> from exported sat to /var/lib/pulp/imported/ in imported sat.
9. Run: chown -R pulp:pulp /var/lib/pulp/import/
10. Run import command on import satellite: hammer content-import version --organization-id <org_id> --path /var/lib/pulp/import/<export_dir>
11. Check webUI if files are present in imported cv

Expected:
CV should contain the file repos


Actual:
CV does not contain the file repos.

Failed on 6.10 snap 15

Comment 4 Lai 2021-08-31 14:04:05 UTC
Created attachment 1819421 [details]
cv import

This is the imported cv.  There's no tab that has the file repo so no file repos are displayed on webUI.

Comment 5 Partha Aji 2021-09-02 00:11:52 UTC
Connecting redmine issue https://projects.theforeman.org/issues/33394 from this bug

Comment 6 Bryan Kearney 2021-09-02 04:05:31 UTC
Upstream bug assigned to paji

Comment 7 Bryan Kearney 2021-09-02 04:05:33 UTC
Upstream bug assigned to paji

Comment 8 Brad Buckingham 2021-09-10 17:37:36 UTC
Moving to POST as PR is merged upstream.

Comment 12 Lai 2021-10-11 14:42:45 UTC
Steps to test:

1. Get two 6.10 satellite
2. On one satellite, use for export, set the "Default Custom Repo Download Policy" to immediate
3. Create a customer file repo and sync it
4. Create a cv and add the repo in step 3 and publish it
5. Export the cv
6. On the 2nd satellite, use for import, set the Default Custom Repo Download Policy to immediate
7. Set the disconnected mode to yes
8. Scp the files from /var/lib/pulp/exports/<exported dir> from exported sat to /var/lib/pulp/imports/ in imported sat.
9. Run: chown -R pulp:pulp /var/lib/pulp/imports/
10. Run import command on import satellite: hammer content-import version --organization-id <org_id> --path /var/lib/pulp/imports/<export_dir>
11. Check webUI if files are present in imported cv

Expected result:
WebUI on disconnected sat (imported cv sat) should show the cv with the file repos added

Actual result:
WebUI on disconnected sat (imported cv sat) does show the dv with the file repos added

Verified on 6.10_022 with tfm-rubygem-katello-4.1.1.33-1.el7sat.noarch

Comment 16 errata-xmlrpc 2021-11-16 14:13:24 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 (Moderate: Satellite 6.10 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-2021:4702