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 1995827 - [RFE] Enable export and import of file repositories in Satellite
Summary: [RFE] Enable export and import of file repositories in Satellite
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Inter Satellite Sync
Version: 6.9.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.10.0
Assignee: Partha Aji
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-19 20:15 UTC by Sam Wachira
Modified: 2024-12-20 20:47 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-katello-4.1.1.31-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:13:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
cv import (22.93 KB, image/png)
2021-08-31 14:04 UTC, Lai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33394 0 None None None 2021-09-02 00:11:53 UTC
Red Hat Issue Tracker SAT-4677 0 None None None 2021-08-23 14:10:10 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:13:30 UTC

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


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