-
Bug
-
Resolution: Done
-
Normal
-
None
Description of problem: The redhat.satellite.content_view_filter or content_view_filter_rule component incorrectly handles duplicate package names when the second entry lists a different architecture
Version-Release number of selected component (if applicable):
How reproducible:
Verified with this playbook:
- hosts: satellite
gather_facts: no
become: no
vars: - rules:
- { name: "cairo", version: "1.15.12-6", arch: "x86_64" }
- { name: "cairo", version: "1.15.12-6", arch: "i686" }
tasks:
- name: Create Content Views
redhat.satellite.content_view:
server_url: "{{ server_url }}"
username: '{{ satellite_username }}'
password: '{{ satellite_password }}'
organization: "Default Organization"
name: RHEL8_Demo
auto_publish: false
state: present
- name: Create Content View Filters
redhat.satellite.content_view_filter:
server_url: "{{ server_url }}"
username: '{{ satellite_username }}'
password: '{{ satellite_password }}'
organization: "Default Organization"
name: "{{ item.name }}"
content_view: RHEL8_Demo
name: "Packages"
filter_state: present
filter_type: "rpm"
original_packages: True
inclusion: True
rule_name: "{{ item.name }}"
version: "{{ item.version }}"
architecture: "{{ item.arch }}"
loop: "{{ rules }}"
Steps to Reproduce:
1. Set up Satellite and sync the RHEL 8 BaseOS and AppStream repositories
2. Run the provided playbook, providing the necessary variables for the target Satellite server
3. Check the created content view filter. Instead of two entries for cairo showing different architectures and a specific package release, it shows a single entry where the architecture is the last item submitted to Satellite, and the package release is "All versions."
Actual results:
See screenshot
Expected results:
Two entries for the cario package, each with the specified package release and the specified package architecture.