Project

General

Profile

Actions

Bug #37721

closed

Hammer erratum list output is wrong when using content-view filter

Added by Samir Jha 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Hammer erratum list output is wrong when using content-view filter

Description of problem:
Filter output to content-view shows wrong output for hammer erratum list command

Version-Release number of selected component (if applicable):
tfm-rubygem-hammer_cli-2.3.0-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. # hammer erratum list --cve CVE-2022-26486 --content-view CV-RHEL-8-E4S
2.
3.

Actual results:
-----|--------------|--------|---------------------------------------------|----------|----------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
-----|--------------|--------|---------------------------------------------|----------|----------
21156 | RHSA-2022:0850 | security | Important: thunderbird security update | 2022-03-14 | 2022-03-14
21058 | RHSA-2022:0853 | security | Important: thunderbird security update | 2022-03-14 | 2022-03-14
21025 | RHSA-2022:0845 | security | Important: thunderbird security update | 2022-03-14 | 2022-03-14
20801 | RHSA-2022:0843 | security | Important: thunderbird security update | 2022-03-14 | 2022-03-14
21137 | RHSA-2022:0824 | security | Critical: firefox security and bug fix update | 2022-03-10 | 2022-03-10
21066 | RHSA-2022:0817 | security | Critical: firefox security update | 2022-03-10 | 2022-03-10
21018 | RHSA-2022:0818 | security | Critical: firefox security update | 2022-03-10 | 2022-03-10
20793 | RHSA-2022:0816 | security | Critical: firefox security update | 2022-03-10 | 2022-03-10
-----|--------------|--------|---------------------------------------------|----------|----------

Expected results:
-----|--------------|--------|--------------------------------------|----------|----------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
-----|--------------|--------|--------------------------------------|----------|----------
20801 | RHSA-2022:0843 | security | Important: thunderbird security update | 2022-03-14 | 2022-03-14
20793 | RHSA-2022:0816 | security | Critical: firefox security update | 2022-03-10 | 2022-03-10
-----|--------------|--------|--------------------------------------|----------|----------

Additional info:

[root@satellite-2 ~]# hammer content-view info --name CV-RHEL-8-E4S
ID: 35
Name: CV-RHEL-8-E4S
Label: CV-RHEL-8-E4S
Composite: false
Description:
Content Host Count: 0
Force Puppet: false
Solve Dependencies: false
Organization: CRAZY.LAB
Yum Repositories:
1) ID: 2323
Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream - Update Services for SAP Solutions RPMs 8.2
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_AppStream_Update_Services_for_SAP_Solutions_RPMs_8_2
2) ID: 2322
Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS - Update Services for SAP Solutions RPMs 8.2
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_BaseOS_Update_Services_for_SAP_Solutions_RPMs_8_2
3) ID: 2321
Name: Red Hat Enterprise Linux 8 for x86_64 - High Availability - Update Services for SAP Solutions RPMs 8.2
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_High_Availability_Update_Services_for_SAP_Solutions_RPMs_8_2
4) ID: 2325
Name: Red Hat Enterprise Linux 8 for x86_64 - SAP NetWeaver - Update Services for SAP Solutions RPMs 8.2
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_SAP_NetWeaver_Update_Services_for_SAP_Solutions_RPMs_8_2
5) ID: 2326
Name: Red Hat Enterprise Linux 8 for x86_64 - SAP Solutions - Update Services for SAP Solutions RPMs 8.2
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_SAP_Solutions_Update_Services_for_SAP_Solutions_RPMs_8_2
6) ID: 2327
Name: Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 - Update Services SAP Solutions RPMs 8.2
Label: Red_Hat_Satellite_Tools_6_8_for_RHEL_8_x86_64_-_Update_Services_SAP_Solutions_RPMs_8_2

[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --repository-id 2323
-----|--------------|--------|--------------------------------------|----------|----------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
-----|--------------|--------|--------------------------------------|----------|----------
20801 | RHSA-2022:0843 | security | Important: thunderbird security update | 2022-03-14 | 2022-03-14
20793 | RHSA-2022:0816 | security | Critical: firefox security update | 2022-03-10 | 2022-03-10
-----|--------------|--------|--------------------------------------|----------|----------
[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --repository-id 2322
--|---------|----|-----|------|-------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
--|---------|----|-----|------|-------
[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --repository-id 2321
--|---------|----|-----|------|-------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
--|---------|----|-----|------|-------
[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --repository-id 2325
--|---------|----|-----|------|-------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
--|---------|----|-----|------|-------
[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --repository-id 2326
--|---------|----|-----|------|-------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED
--|---------|----|-----|------|-------
[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --repository-id 2327
--|---------|----|-----|------|-------
ID | ERRATA ID | TYPE | TITLE | ISSUED | UPDATED

Actions #1

Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/945 added
Actions #2

Updated by Samir Jha 5 months ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Chris Roberts 4 months ago

  • Target version changed from Katello 4.15.0 to Katello 4.14.0
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF