Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-17543

Ansible Satellite Collection Content View Filters incorrectly handles packages with different architectures

XMLWordPrintable

    • None
    • None
    • None
    • 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.

              egolov@redhat.com Evgeni Golov
              jira-bugzilla-migration RH Bugzilla Integration
              Griffin Sullivan Griffin Sullivan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: