Bug 1482538 - Scap CLI policy info doesn't show associated hostgroups
Summary: Scap CLI policy info doesn't show associated hostgroups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: SCAP Plugin
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Ondřej Pražák
QA Contact: Nikhil Kathole
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-17 13:40 UTC by Sanket Jagtap
Modified: 2019-08-12 16:07 UTC (History)
5 users (show)

Fixed In Version: foreman_openscap 0.7.5, hammer_cli_foreman_openscap 0.1.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20671 0 None None None 2017-08-21 11:27:54 UTC

Description Sanket Jagtap 2017-08-17 13:40:42 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
policy info --name test1
Id:                        5
Name:                      test1
Created at:                2017-08-17 13:26:59 UTC
Period:                    weekly
Weekday:                   friday
Cron line:                 
Scap content Id:           4
Scap Content profile Id:   23
Tailoring file Id:         1
Tailoring file profile Id: 52
Locations:                 
    Default Location
Organizations:             
    Default Organization


Actual results:
No Associated hostgroup info

Expected results:
Associated Hostgroup name/id info should be shown

Additional info:

Comment 2 Ondřej Pražák 2017-08-21 11:27:52 UTC
Created redmine issue http://projects.theforeman.org/issues/20671 from this bug

Comment 3 Satellite Program 2017-08-21 14:10:55 UTC
Upstream bug assigned to oprazak

Comment 4 Satellite Program 2017-08-21 14:10:58 UTC
Upstream bug assigned to oprazak

Comment 5 Satellite Program 2017-08-22 12:11:04 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20671 has been resolved.

Comment 6 Nikhil Kathole 2017-09-10 09:18:17 UTC
FailedQA

Version Tested:
Satellite-6.3 Snap 15

# rpm -qa | grep foreman_openscap
tfm-rubygem-foreman_openscap-0.7.5-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_openscap-0.1.4-1.fm1_15.el7sat.noarch


steps:

1. # hammer policy list
---|---------|------------------------
ID | NAME    | CREATED AT
---|---------|------------------------
1  | policy1 | 2017-09-10 09:01:19 UTC
---|---------|------------------------

2. # hammer policy info --name policy1
Id:                        1
Name:                      policy1
Created at:                2017-09-10 09:01:19 UTC
Period:                    weekly
Weekday:                   monday
Cron line:
Scap content Id:           4
Scap Content profile Id:   23
Tailoring file Id:
Tailoring file profile Id:
Locations:
    Default Location
Organizations:
    Default Organization

No associated Hostgroup name/id info found.

Comment 8 Marek Hulan 2017-09-11 06:59:11 UTC
Only the API was extended so far, hammer plugin was not released yet, I hope to get it into next snap.

Comment 9 Marek Hulan 2017-09-19 07:17:57 UTC
It's available for testing in Snap 16

Comment 10 Nikhil Kathole 2017-09-19 07:23:30 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 16

# rpm -qa | grep foreman_openscap
tfm-rubygem-hammer_cli_foreman_openscap-0.1.5-1.fm1_15.el7sat.noarch
tfm-rubygem-foreman_openscap-0.7.6-1.fm1_15.el7sat.noarch

# hammer policy list
---|---------|------------------------
ID | NAME    | CREATED AT
---|---------|------------------------
1  | policy1 | 2017-09-17 12:49:25 UTC
2  | policy2 | 2017-09-18 10:52:22 UTC
---|---------|------------------------

# hammer policy info --name policy1
Id:                        1
Name:                      policy1
Created at:                2017-09-17 12:49:25 UTC
Period:                    monthly
Weekday:
Day of month:              5
Cron line:
SCAP content Id:           4
SCAP Content profile Id:   27
Tailoring file Id:
Tailoring file profile Id:
Locations:
    Default Location
Organizations:
    Default Organization
Hostgroups:
    RHEL 6 Server 64-bit HG

# hammer policy info --name policy2
Id:                        2
Name:                      policy2
Created at:                2017-09-18 10:52:22 UTC
Period:                    weekly
Weekday:                   tuesday
Day of month:
Cron line:
SCAP content Id:           4
SCAP Content profile Id:   22
Tailoring file Id:
Tailoring file profile Id:
Locations:
    Default Location
Organizations:
    Default Organization
Hostgroups:
    RHEL7 Hostgrp

Hostgroups info displayed in SCAP CLI policy info.

Comment 11 Satellite Program 2018-02-21 16:51:07 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, 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-2018:0336


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