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 2222446 - hammer content-view version info --include-applied-filters true should display rules
Summary: hammer content-view version info --include-applied-filters true should displa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.14.0
Assignee: Chris Roberts
QA Contact: Vladimír Sedmík
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-12 19:03 UTC by Samir Jha
Modified: 2024-02-08 19:27 UTC (History)
4 users (show)

Fixed In Version: rubygem-hammer_cli_katello-1.9.1.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:19:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36585 0 Normal New hammer content-view version info --include-applied-filters true should display rules 2023-07-12 19:03:27 UTC
Github Katello hammer-cli-katello pull 901 0 None open Fixes #36585 - Add cv rules to cvv info filters 2023-07-17 20:02:37 UTC
Red Hat Issue Tracker SAT-18911 0 None None None 2023-07-12 19:05:37 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:20:30 UTC

Description Samir Jha 2023-07-12 19:03:26 UTC
Today the --include-applied-filters flag only lists names of filters but doesn't list rules inside those filters. We should display rules as well when asked for the list.

Comment 1 Samir Jha 2023-07-12 19:03:30 UTC
Created from redmine issue https://projects.theforeman.org/issues/36585

Comment 2 Samir Jha 2023-07-12 19:03:31 UTC
Upstream bug assigned to chrobert

Comment 4 Bryan Kearney 2023-07-22 00:03:20 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36585 has been resolved.

Comment 6 Vladimír Sedmík 2023-08-03 15:09:10 UTC
Verified in 6.14.0 snap 9 for all filter types:

1. RPM filter with rules:
Applied Filters:        
 1) Id:                      4
    Name:                    Include RPM filter
    Type:                    rpm
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        Name:                   cat
        Architecture:           x86_64
        Content view filter Id: 4
     2) Id:                     2
        Name:                   dog
        Architecture:           noarch
        Content view filter Id: 4

2. Package group filter with rules:
Applied Filters:        
 2) Id:                      5
    Name:                    Package groups
    Type:                    package_group
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        UUID:                   /pulp/api/v3/content/rpm/packagegroups/ebf75f01-4ac3-4649-b818-055104a36f57/
        Content view filter Id: 5
     2) Id:                     2
        UUID:                   /pulp/api/v3/content/rpm/packagegroups/e1afd706-c213-4989-9bca-29ee6b1f9a6a/
        Content view filter Id: 5

3. Errata - by time range filter with rules:
 3) Id:                      6
    Name:                    Errata range filter
    Type:                    erratum
    Inclusion:               no
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        Types:
         1) : security
         2) : enhancement
         3) : bugfix
        Content view filter Id: 6
        Date type:              updated
        Start date:             2023-08-01T12:00:00.000Z
        End date:               2023-09-16T12:00:00.000Z

4. Errata filter with rules:
 4) Id:                      7
    Name:                    Errata filer
    Type:                    erratum
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     2
        Content view filter Id: 7
        Errata Id:              RHSA-2023:4419
        Date type:              updated
     2) Id:                     3
        Content view filter Id: 7
        Errata Id:              RHBA-2023:4279
        Date type:              updated
     3) Id:                     4
        Content view filter Id: 7
        Errata Id:              RHEA-2023:3843
        Date type:              updated

5. Container image tag filter with rules:
 5) Id:                      8
    Name:                    Container image tag filter
    Type:                    docker
    Inclusion:               yes
    Original packages:       no
    Original module streams: no
    Rules:                   
     1) Id:                     1
        Name:                   latest
        Content view filter Id: 8
     2) Id:                     2
        Name:                   0.1.0
        Content view filter Id: 8

6. Module stream filter with rules:
 6) Id:                      9
    Name:                    Module stream filter
    Type:                    modulemd
    Inclusion:               yes
    Original packages:       no
    Original module streams: yes
    Rules:                   
     1) Id:                     1
        Module stream Id:       678
        Content view filter Id: 9
     2) Id:                     2
        Module stream Id:       690
        Content view filter Id: 9
     3) Id:                     3
        Module stream Id:       445
        Content view filter Id: 9

Filed a new BZ for further improvements https://bugzilla.redhat.com/show_bug.cgi?id=2228909

Comment 9 errata-xmlrpc 2023-11-08 14:19:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:6818


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