This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2065862 - hammer erratum list output is wrong when using content-view filter
Summary: hammer erratum list output is wrong when using content-view filter
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Errata Management
Version: 6.9.8
Hardware: All
OS: Linux
high
medium with 1 vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-18 22:21 UTC by Steffen Froemer
Modified: 2024-06-06 12:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-06 12:20:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   SAT-20361 0 None Migrated None 2024-06-06 12:20:31 UTC

Description Steffen Froemer 2022-03-18 22:21:27 UTC
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

Comment 1 Steffen Froemer 2022-10-25 18:44:27 UTC
I've made some additional tests and it shows, it works when using the 'id', but not when using the 'name'

[root@satellite-2 ~]# CV=CV-RHEL-8-E4S
[root@satellite-2 ~]# hammer --csv --no-headers content-view info --name $CV --fields=Id --organization-id 1
13
[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --content-view $CV
------|----------------|----------|-----------------------------------------------|------------|-----------
ID    | ERRATA ID      | TYPE     | TITLE                                         | ISSUED     | UPDATED   
------|----------------|----------|-----------------------------------------------|------------|-----------
11558 | RHSA-2022:0853 | security | Important: thunderbird security update        | 2022-03-14 | 2022-03-14
11061 | RHSA-2022:0850 | security | Important: thunderbird security update        | 2022-03-14 | 2022-03-14
1605  | RHSA-2022:0845 | security | Important: thunderbird security update        | 2022-03-14 | 2022-03-14
11448 | RHSA-2022:0817 | security | Critical: firefox security update             | 2022-03-10 | 2022-03-10
5598  | RHSA-2022:0824 | security | Critical: firefox security and bug fix update | 2022-03-10 | 2022-03-10
1795  | RHSA-2022:0818 | security | Critical: firefox security update             | 2022-03-10 | 2022-03-10
------|----------------|----------|-----------------------------------------------|------------|-----------

[root@satellite-2 ~]# hammer erratum list --cve CVE-2022-26486 --content-view-id $(hammer --csv --no-headers content-view info --name $CV --fields=Id --organization-id 1)
------|----------------|----------|----------------------------------------|------------|-----------
ID    | ERRATA ID      | TYPE     | TITLE                                  | ISSUED     | UPDATED   
------|----------------|----------|----------------------------------------|------------|-----------
11558 | RHSA-2022:0853 | security | Important: thunderbird security update | 2022-03-14 | 2022-03-14
11448 | RHSA-2022:0817 | security | Critical: firefox security update      | 2022-03-10 | 2022-03-10
------|----------------|----------|----------------------------------------|------------|-----------

Comment 4 Brad Buckingham 2024-03-21 21:07:37 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 5 Ian Ballou 2024-04-19 18:00:33 UTC
Content view should be provided along with lifecycle environment so that the underlying content view version can be found.

This aside, I noticed that content-view is not working while content-view-id is along with lifecycle-environment-id. I believe that is something that hammer-cli-katello takes care of since content view and lifecycle environment are not parameters available in the API.

So, we should either remove the content-view argument, or make it work.

Comment 7 Brad Buckingham 2024-05-13 09:43:37 UTC
Based upon comment 5 during auto-closure, leaving this bugzilla open a while longer; however, it may be closed in a future iteration.

Comment 8 Eric Helms 2024-06-06 12:20:33 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


Note You need to log in before you can comment on or make changes to this bug.