Bug 2188287

Summary: Repository sets tab need to load twice to see list of repositories
Product: Red Hat Satellite Reporter: visawant
Component: Hosts - ContentAssignee: visawant
Status: CLOSED ERRATA QA Contact: visawant
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: dsheets, jlenz, pdwyer, rlavi, tasander, vsedmik
Target Milestone: 6.15.0Keywords: Improvement, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-23 17:14:04 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 visawant 2023-04-20 11:23:43 UTC
Created attachment 1958540 [details]
No repository set to show

Description of problem: List of repositories are not showing under "Repository sets" tab which associated with Content host (and Content view), to see all list of repos either refresh page or go to any other tab and again come to "Repository sets" tab


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


How reproducible:


Steps to Reproduce:
1. Create CV > Add repositories > Create ak > Register host 
2. Navigate to Hosts - Content Host page, click Host name from the Name column.
3. Go to tab Content -> Repository sets

Actual results: 
Repositories won't show


Expected results: 
List of repositories should show under Content -> Repository sets tab


Additional info: Adding screencast

Comment 1 visawant 2023-04-20 11:26:45 UTC
Adding missing fields
---------------------

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

How reproducible:
Always

Comment 2 Jeremy Lenz 2023-05-17 12:12:54 UTC
Hi Visawant,

Thanks for adding the video. I don't seem to have the issue upstream; do you have a reproducer? Does this happen for all content hosts or just some?

Comment 4 visawant 2023-05-21 07:53:21 UTC
(In reply to visawant from comment #3)
> @

Please ignore the above comment

@jlenz Yes, I have a reproducer (6.13.0) you can check it for any content host. Please let me know how can I help you with the reproducer.

Comment 5 Jeremy Lenz 2023-06-01 14:40:25 UTC
The RepositorySetsTab decides whether to send the content_access_mode_all param based on whether the org is Simple Content Access.

I think the problem is that on the first page load, it makes this decision before the org details are loaded, and thus assumes SCA is off.

@visawant please let me know if this also occurs on Stream. thanks!

Comment 6 Jeremy Lenz 2023-06-01 14:43:48 UTC
I believe this is fixed upstream in https://projects.theforeman.org/issues/35604

hooking up the Redmine here and setting POST.

Comment 7 visawant 2023-06-01 14:54:11 UTC
@

Comment 8 visawant 2023-06-01 14:54:37 UTC
@

Comment 9 visawant 2023-06-01 15:00:29 UTC
@Jeremy Lenz, I have checked stream build, this issue doesn't occurs. On the first load of Repository sets, a parameter "content_access_mode_env=true" has been passed with the request.

Please ignore above 2 comments, I don't know why such broken comments were posted, something wrong happen.

Comment 10 Ron Lavi 2023-11-21 17:34:58 UTC
*** Bug 2247295 has been marked as a duplicate of this bug. ***

Comment 13 visawant 2023-11-29 10:24:53 UTC
Version tested:
---------------
Satellite 6.15.0 (stream) snap-39

Steps performed:
----------------
1. Create CV > Add repositories (rhel8 aps & bos) > Create ak > Register RHEL-8.7 host 
2. Navigate to Hosts - Content Host page, click Host name from the Name column.
3. Go to tab Content -> Repository sets

Observation:
------------
Request header contains below value for :path:

/katello/api/v2/repository_sets?content_access_mode_env=true&content_access_mode_all=true&host_id=3&sort_by=name&sort_order=asc&per_page=20&page=1&search=

Comment 16 errata-xmlrpc 2024-04-23 17:14:04 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.15.0 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-2024:2010