Project

General

Profile

Actions

Bug #38699

closed

Debian repos are shown multiple times on the new host details page in repo sets for multi-cves

Added by Nadja Heitmann 3 months ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Found in Releases:

Description

Reproducer:

Add multiple Deb CVs with repositories to a host, e.g with hammer. Then look at the Host details → content → repo sets page.

E.g. hammer host update --id 20 --content-view-environments "development/Ubuntu_22_04_CV,test/Ubuntu_22_04_CV,test/CCV_Debian_11"

Problematic code: https://github.com/Katello/katello/blob/dac6836079633c0a546ac35d932e85ba6992ddd3/app/services/katello/product_content_finder.rb#L30

The query is searching for content views and lifecycle environments, independently, and giving a mixed combination of all available environments and content view ids instead of grouping the search by the corresponding content view/environment. In addition, the search result should be filtered by library instance id to really get rid of multiple repos.

Actions

Also available in: Atom PDF