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

hammer erratum list --content-view-version does not filter as intended.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 6.13.0, 6.14.0, 6.15.1.1
    • Errata Management, Hammer
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Phoenix - Content
    • Sprint 138
    • Low
    • Yes

      Description of problem:

      When using the hammer command to check for erratum being present in a content view version I found that the WebUI showed the erratum was NOT present but the command " hammer erratum list --content-view-version "03897330 Test 2.0" --search 'errata_id=RHBA-2024:423" returned with the errata in the list. Reviewing the updateinfo.xml from the repodata confirmed the errata was not present in the repository.

      How reproducible:

      Every time

      Is this issue a regression from an earlier version:

      Yes, discovered in 6.13. Still exists in 6.15

      Steps to Reproduce:

      1. Create a content view with a filter to filter out particular errata for a repo in the content view.

      2. Search for that errata using the options above and see the false positive

      3.

      Actual behavior:
      False positive is reported for the errata.

      Expected behavior:
      List should come back empty if the errata doesn't exist in the content view filter

      Business Impact / Additional info:

      A simple workaround for the issue is to use the "-content-view-version-id" option as opposed to the "-content-view-version" option. The id option will correctly filter the erratum search to the repositories in that CV version.

      Here is an example of the issue. The CV "03897330 Test 2.0" does not contain the errata RHBA-2024:4239 as there is an include filter on version 2's publish to limit all erratum to July 1, 2024 and prior:

      [root@bombsat615 ~]# hammer erratum list --content-view-version "03897330 Test 2.0" --search 'errata_id=RHBA-2024:4239'
      -------|----------------|--------|-----------------------------|------------|-----------
      ID     | ERRATA ID      | TYPE   | TITLE                       | ISSUED     | UPDATED   
      -------|----------------|--------|-----------------------------|------------|-----------
      371787 | RHBA-2024:4239 | bugfix | tigervnc enhancement update | 2024-07-02 | 2024-07-02
      -------|----------------|--------|-----------------------------|------------|-----------

       

      Specifying the ID filter option will correctly reflect that the errata doesn't exist in this content view version:

      [root@bombsat615 ~]# hammer erratum list --content-view-version-id 37 --search 'errata_id=RHBA-2024:4239'
      ---|-----------|------|-------|--------|--------
      ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
      ---|-----------|------|-------|--------|--------
      [root@bombsat615 ~]#

              Unassigned Unassigned
              rhn-support-tasander Taft Sanders
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: