Bug 1877660 - duplicate Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (RPMs) repos shown on Red Hat Repositories page
Summary: duplicate Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-10 06:07 UTC by matt jia
Modified: 2021-06-10 14:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description matt jia 2020-09-10 06:07:09 UTC
Description of problem:

The Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (RPMs) repo is in two products as in:

pp Katello::Content.where(name: "Red Hat Ceph Storage Tools 3 for Red Hat Enterprise Linux 7 Server (RPMs)").first.products
[#<Katello::Product:0x000000001006a558
  id: 123,
  name: "Red Hat Enterprise Linux Server",
  description: nil,
  cp_id: "69",
  multiplier: nil,
  provider_id: 2,
  created_at: Sat, 02 Nov 2019 15:04:29 UTC +00:00,
  updated_at: Sat, 02 Nov 2019 15:04:29 UTC +00:00,
  gpg_key_id: nil,
  sync_plan_id: nil,
  label: "Red_Hat_Enterprise_Linux_Server",
  organization_id: 1,
  ssl_ca_cert_id: nil,
  ssl_client_cert_id: nil,
  ssl_client_key_id: nil>,
 #<Katello::Product:0x000000001006a418
  id: 112,
  name: "Red Hat Ceph Storage",
  description: nil,
  cp_id: "281",
  multiplier: nil,
  provider_id: 2,
  created_at: Sat, 02 Nov 2019 15:04:28 UTC +00:00,
  updated_at: Sat, 02 Nov 2019 15:04:28 UTC +00:00,
  gpg_key_id: nil,
  sync_plan_id: nil,
  label: "Red_Hat_Ceph_Storage",
  organization_id: 1,
  ssl_ca_cert_id: nil,
  ssl_client_cert_id: nil,
  ssl_client_key_id: nil>]

This is causing the UI to display duplicate repos. In some cases, though the repo is enabled, it is still shown not enabled on the UI. When enabling it, below error is hit:

06331:400 Bad Request: {"http_request_method": "POST", "exception": null, "error_message": "Relative URL [rhit/Library/content/dist/rhel/server/7/7Server/x86_64/rhceph-tools/3/os] for repository [c8e1d810-5c89-4526-9ec7-f19a92935de7] conflicts with existing relative URL [rhit/Library/content/dist/rhel/server/7/7Server/x86_64/rhceph-tools/3/os] for repository [ef1ceda3-d4d3-41d3-b5fc-0ff2da75e113]", "_href": "/pulp/api/v2/repositories/", "http_status": 400, "error": {"code": "PLP0000", "data": {}, "description": "Relative URL [rhit/Library/content/dist/rhel/server/7/7Server/x86_64/rhceph-tools/3/os] for repository [c8e1d810-5c89-4526-9ec7-f19a92935de7] conflicts with existing relative URL [rhit/Library/content/dist/rhel/server/7/7Server/x86_64/rhceph-tools/3/os] for repository [ef1ceda3-d4d3-41d3-b5fc-0ff2da75e113]", "sub_errors": []}, "args": ["Relative URL [rhit/Library/content/dist/rhel/server/7/7Server/x86_64/rhceph-tools/3/os] for repository [c8e1d810-5c89-4526-9ec7-f19a92935de7] conflicts with existing relative URL [rhit/Library/content/dist/rhel/server/7/7Server/x86_64/rhceph-tools/3/os] for repository [ef1ceda3-d4d3-41d3-b5fc-0ff2da75e113]"], "traceback": null}

This is causing a lot of concerns from the customers.


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

6.7

How reproducible:

Easy

Steps to Reproduce:
1. create a manifest with Red Hat Enterprise Linux Server and Red Hat Ceph Storage products 
2. search for rhel-7-server-rhceph-3-tools-rpms 
3.

Actual results:

duplicate repos on the Red Hat Repositories page

Expected results:

only one repo is shown

Additional info:

This might be an issue from our CDN. However, if Satellite can be smart enough to only display one repo or at least display the product name, it would increase a lot user experience on the UI.


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