Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2094852

Summary: duplicate RH Ceph Tools 4 for RHEL 8 repos shown on Red Hat repositories
Product: Red Hat Satellite Reporter: bkaraore
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.6CC: iballou
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-01 21:00: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 bkaraore 2022-06-08 12:50:45 UTC
Description of problem:
During the upgrade of RHV Manager, we wanted to enable rhceph-4-tools-for-rhel-8-x86_64-rpms as a pre-requirement. As we enable repositories using Ansible Automation, we discovered an issue that Ansible reports there are more than one repository with the same name.

Version-Release number of selected component (if applicable):
rhceph-4-tools-for-rhel-8-x86_64-rpms
RH Satellite v6.9.6
Ansible 2.9

How reproducible:
Write an Ansible playbook and run it against to invetory.

Steps to Reproduce:
1. Add a task with loop like
```
  - name: Enable 8 repositories
    theforeman.foreman.repository_set:
      username: "{{ rhs_satellite_admin }}"
      password: "{{ rhs_satellite_admin_password }}"
      server_url: "{{ rhs_satellite_server_url }}"
      validate_certs: "{{ rhs_validate_certs }}"
      organization: "{{ rhs_org }}"
      label: "{{ item.label }}"
      repositories:
        - releasever: "{{ item.rel | default(omit) }}"
      state: "{{ item.state | default('enabled') }}"
    loop: "{{ rhs_repos_repolist }}"

```
2. Add inventory to the list like

```
rhs_repos_repolist:
  - label: "jb-eap-7.4-for-rhel-8-x86_64-rpms"
  - label: "ansible-2.9-for-rhel-8-x86_64-rpms"
  - label: "fast-datapath-for-rhel-8-x86_64-rpms"
  - label: "advanced-virt-for-rhel-8-x86_64-rpms"
  - label: "satellite-tools-6.9-for-rhel-8-x86_64-rpms"
  - label: "rhv-4-mgmt-agent-for-rhel-8-x86_64-rpms"
  - label: "rhvh-4-for-rhel-8-x86_64-rpms"
  - label: "rhv-4.4-manager-for-rhel-8-x86_64-rpms"
  - label: "rhceph-4-tools-for-rhel-8-x86_64-rpms"
```
3. Add credentials and variables to use from the task 1.

4. Run playbook to enable

```
Actual results:
TASK [satellite_enable_repos : Enable 8 repositories] *****************************************************************************************************************************************
Wednesday 08 June 2022  13:57:01 +0200 (0:00:05.151)       0:00:05.499 ********
ok: [satellite.example.com -> localhost] => (item={'label': 'jb-eap-7.4-for-rhel-8-x86_64-rpms'})
ok: [satellite.example.com -> localhost] => (item={'label': 'ansible-2.9-for-rhel-8-x86_64-rpms'})
ok: [satellite.example.com -> localhost] => (item={'label': 'fast-datapath-for-rhel-8-x86_64-rpms'})
ok: [satellite.example.com -> localhost] => (item={'label': 'advanced-virt-for-rhel-8-x86_64-rpms'})
ok: [satellite.example.com -> localhost] => (item={'label': 'satellite-tools-6.9-for-rhel-8-x86_64-rpms'})
ok: [satellite.example.com -> localhost] => (item={'label': 'rhv-4-mgmt-agent-for-rhel-8-x86_64-rpms'})
ok: [satellite.example.com -> localhost] => (item={'label': 'rhvh-4-for-rhel-8-x86_64-rpms'})
ok: [satellite.example.com -> localhost] => (item={'label': 'rhv-4.4-manager-for-rhel-8-x86_64-rpms'})
failed: [satellite.example.com -> localhost] (item={'label': 'rhceph-4-tools-for-rhel-8-x86_64-rpms'}) => {"ansible_loop_var": "item", "changed": false, "item": {"label": "rhceph-4-tools-for-rhel-8-x86_64-rpms"}, "msg": "Found too many (2) results while searching for repository_sets with label=\"rhceph-4-tools-for-rhel-8-x86_64-rpms\""}
ok: [satellite.example.com -> localhost] => (item={'label': 'openstack-16.2-cinderlib-for-rhel-8-x86_64-rpms'})
.....
```
Expected results:
Enablement of `rhceph-4-tools-for-rhel-8-x86_64-rpms` doesn't fail.

Additional info:

Comment 6 Brad Buckingham 2023-07-21 21:06:39 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 7 Brad Buckingham 2023-09-01 21:00:04 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.