Bug 2064434

Summary: Repository set not showing repos after importing library and creating an ak in a disconnected satellite
Product: Red Hat Satellite Reporter: Lai <ltran>
Component: Inter Satellite SyncAssignee: Lucy Fu <lufu>
Status: CLOSED ERRATA QA Contact: Radek Mynar <rmynar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ehelms, lufu, pcreech
Target Milestone: 6.11.0Keywords: Triaged, WorkAround
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:34:27 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 Lai 2022-03-15 19:39:34 UTC
Description of problem:
Repo set does not show any available repos when a user creates an ak after importing a cv into a disconnected satellite.  Even when a user clicks "show all", there's no list of repos to enable or disable on the UI.

Version-Release number of selected component (if applicable):
7.0 snap 14 rhel8

How reproducible:
100%

Steps to Reproduce:
1. Spin up 2 satellites.  One for export and another for disconnected satellite to import.

On Export Satellite:
2. Upload manifest
3. Change settings to use "immediate" for rhel repos download
4. Enabled a few RHEL repos (I used ansible, tools, and collection)
5. Sync the repos
6. Create a cv, add repos, and publish
7. Run export command: hammer content-export complete library --organization="Default Organization"

On Import Satellite:
8. Upload same manifest as step 2
9. Change settings to use "immediate" for rhel download policy
10. Enable air-gapped by going to subscriptions -> manage manifest -> CDN configuration tab -> air-gapped -> clicking Update
11. scp exported file from step 7 to /var/lib/pulp/import
12. chown -R pulp:pulp on the exported folder
13. Run the import command: hammer content-import library --organization="Default_Organization" --path=’/var/lib/pulp/imports/dump_dir
14. Create an ak and add all the subscriptions using the cv that was imported
15. Go to "repository tab" and click "show all" checkbox


Actual results:
List/table is empty

Expected results:
There should be a list of repos to enabled/disable

Work around is you can enabled the repos after registering a client to the satellite and running "subscription-manager repos --enable <repo-id>".  Though it does work and pull in content, the UI will STILL NOT SHOW the enabled repos in repository set for ak or for the chost.

Additional info:
I have not retested this in 6.10.z

Comment 3 Lucy Fu 2022-04-05 19:30:00 UTC
Created redmine issue https://projects.theforeman.org/issues/34733 from this bug

Comment 4 Bryan Kearney 2022-04-13 00:05:00 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34733 has been resolved.

Comment 7 Radek Mynar 2022-05-04 11:50:01 UTC
Repositories are visible in Airgapped mode (Export Sync) and with "Subscription connection enabled" set to "No", when following steps to reproduce.

VERIFIED with Satellite 6.11 SNAP 18.5 @ RHEL8.5

Comment 10 errata-xmlrpc 2022-07-05 14:34:27 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.11 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-2022:5498