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:
Created redmine issue http://projects.theforeman.org/issues/20671 from this bug
Upstream bug assigned to oprazak
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20671 has been resolved.
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.
Only the API was extended so far, hammer plugin was not released yet, I hope to get it into next snap.
It's available for testing in Snap 16
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.
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