Bug 1632628

Summary: "Manage Repository Sets" option for content hosts list all available repos and search is broken on this page
Product: Red Hat Satellite Reporter: Ashish Humbe <ahumbe>
Component: Hosts - ContentAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: mmccune, pcreech, sghai
Target Milestone: 6.4.0Keywords: PrioBumpGSS, Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.7.0.40-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 18:53:59 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
only enabled repos are visible under "Manager repository set" none

Description Ashish Humbe 2018-09-25 09:25:19 UTC
Description of problem:

When we navigate to Hosts -> Content Hosts -> Select few content hosts -> Select Action -> "Manage Repository Sets", this page list all available repositories based on the imported manifest which we see on Red Hat Repositories page. Ideally, it should list only enabled repositories on the satellite. 

When we search for the required repository name then search does not work properly, ie: the search is limited to the first 20 entries listed on the page. 

In Satellite 6.3 it lists only enabled and synced repositories on this page. 

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

How reproducible:
Always

Steps to Reproduce:
1. Navigate to Hosts -> Content Hosts -> Select few content hosts -> Select Action -> "Manage Repository Sets".
2. Here we see all available repositories 
3. In the search box try to search for "tools" or any other repository name. 
4. Search is limited to first 20 entries listed on the page. 

Actual results:
- "Repository Sets Management" page lists all available repos instead of listing only enabled repositories on the satellite.
- The search option is limited to entries listed on the first page.

Expected results:
- "Repository Sets Management" page should list only enabled repositories on the satellite.
- The search should consider entries on all pages and it should not be limited to the content listed on the first page.

Comment 5 John Mitsch 2018-09-25 14:40:38 UTC
Created redmine issue https://projects.theforeman.org/issues/25033 from this bug

Comment 7 Satellite Program 2018-09-25 20:04:58 UTC
Upstream bug assigned to jomitsch

Comment 8 Satellite Program 2018-09-25 20:05:01 UTC
Upstream bug assigned to jomitsch

Comment 9 Brad Buckingham 2018-09-25 20:41:26 UTC
The upstream PR has been merged; therefore, moving the BZ to POST.

Comment 11 Mike McCune 2018-09-27 18:04:30 UTC
This worked perfectly for me on SNAP 24. Could search and view subsets of repos and override properly.

Comment 12 Ashish Humbe 2018-09-28 04:41:02 UTC
Thank you Mike and John for fixing this on priority.

Comment 13 Sachin Ghai 2018-09-28 08:47:38 UTC
Verified with sat6.4 snap24.

With the fix I can see only enabled repos under "Hosts -> Content Hosts -> Select few content hosts -> Select Action -> "Manage Repository Sets". Earlier, I was able to see all available repositories based on imported manifest.

Also, I can filter the repos based on selected search criteria.

Comment 14 Sachin Ghai 2018-09-28 10:27:33 UTC
Created attachment 1488035 [details]
only enabled repos are visible under "Manager repository set"

Comment 15 Bryan Kearney 2018-10-16 18:53:59 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, 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-2018:2927