Bug 2177858 - OCP repositories duplicated in the manifest
Summary: OCP repositories duplicated in the manifest
Keywords:
Status: CLOSED COMPLETED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.10.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Barnaby Court
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-13 17:20 UTC by mithun kalyat
Modified: 2023-07-11 16:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-11 16:25:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLOUDDST-19515 0 None None None 2023-07-11 16:24:16 UTC

Description mithun kalyat 2023-03-13 17:20:46 UTC
Description of problem:


It looks like the following RHEL 8 OCP 4.11 and 4.12 repositories are duplicated in the manifest.

============
[root@rhsat ~]# hammer repository-set list --product "Red Hat OpenShift Container Platform" --organization "RedHat" |grep 'Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)'
12405 | yum | Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)
12307 | yum | Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)

[root@rhsat ~]# hammer repository-set list --product "Red Hat OpenShift Container Platform" --organization "RedHat" |grep 'Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)'
13419 | yum | Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)
12753 | yum | Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)
=============

Due to this, enabling reposiory using Ansible script fails with the following error:

- name: "Enable RHEL8 repositories"
   include_role:
     name: redhat.satellite.repositories
   vars:
    satellite_organization: "{{ organization }}"
    satellite_products:
      - name: Red Hat OpenShift Container Platform
        repository_sets:
          - name: Red Hat OpenShift Container Platform 4.9 (RPMs)
            basearch: x86_64
          - name: Red Hat OpenShift Container Platform 4.8 (RPMs)
            basearch: x86_64
          - name: Red Hat OpenShift Container Platform 3.11 (RPMs)
            basearch: x86_64
          - name: Red Hat OpenShift Container Platform 4.9 for RHEL 8 x86_64 (RPMs)
          - name: Red Hat OpenShift Container Platform 4.10 for RHEL 8 x86_64 (RPMs)
          - name: Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)
          - name: Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)


After adding  Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)" and "Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)" getting the following error:

failed: [localhost] (item=[{'name': 'Red Hat OpenShift Container Platform'}, {'name': 'Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)'}]) => {"ansible_loop_var": "item", "changed": false, "item": [{"name": "Red Hat OpenShift Container Platform"}, {"name": "Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)"}], "msg": "Found too many (2) results while searching for repository_sets with name=\"Red Hat OpenShift Container Platform 4.11 for RHEL 8 x86_64 (RPMs)\""}
failed: [localhost] (item=[{'name': 'Red Hat OpenShift Container Platform'}, {'name': 'Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)'}]) => {"ansible_loop_var": "item", "changed": false, "item": [{"name": "Red Hat OpenShift Container Platform"}, {"name": "Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)"}], "msg": "Found too many (2) results while searching for repository_sets with name=\"Red Hat OpenShift Container Platform 4.12 for RHEL 8 x86_64 (RPMs)\""}

Comment 1 Brad Buckingham 2023-03-16 14:20:27 UTC
Has it been confirmed that these are indeed duplicates in the Manifest or is it duplication within Satellite?

Would it be possible to attach the manifest to the bugzilla?
Is there a reproducer environment?


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