Bug 1482543

Summary: Scap CLI policy info missing day-of-month parameter
Product: Red Hat Satellite Reporter: Sanket Jagtap <sjagtap>
Component: SCAP PluginAssignee: Ondřej Pražák <oprazak>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3.0CC: bbuckingham, ehelms, mhulan, nkathole, oprazak
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hammer_cli_foreman_openscap 0.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:51:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sanket Jagtap 2017-08-17 13:53:25 UTC
Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
 policy update --id 5 --period monthly --day-of-month 22
Policy updated
hammer> policy info --id 5
Id:                        5
Name:                      test1
Created at:                2017-08-17 13:26:59 UTC
Period:                    monthly
Weekday:                   
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:
You can see only monthly

Expected results:
You can see monthly in the info , but not the day-of-month when the policy will execute

Additional info:

Comment 2 Ondřej Pražák 2017-08-21 09:23:05 UTC
Created redmine issue http://projects.theforeman.org/issues/20663 from this bug

Comment 3 Satellite Program 2017-08-22 10:05:58 UTC
Upstream bug assigned to oprazak

Comment 4 Satellite Program 2017-08-22 10:06:00 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20663 has been resolved.

Comment 5 Nikhil Kathole 2017-09-17 11:00:01 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 16

steps:

# hammer policy update --id 1 --period monthly --day-of-month 5
Policy updated

# hammer policy info --id=1
Id:                        1
Name:                      policy1
Created at:                2017-08-16 12:34:37 UTC
Period:                    monthly
Weekday:
Day of month:              5
Cron line:
SCAP content Id:           4
SCAP Content profile Id:   22
Tailoring file Id:         1
Tailoring file profile Id: 30
Locations:
    Default Location
Organizations:
    Default Organization
Hostgroups:
    RHEL 7 Server 64-bit HG

# hammer policy update --id 1 --period monthly --day-of-month 22
Policy updated

# hammer policy info --id=1
Id:                        1
Name:                      policy1
Created at:                2017-08-16 12:34:37 UTC
Period:                    monthly
Weekday:
Day of month:              22
Cron line:
SCAP content Id:           4
SCAP Content profile Id:   22
Tailoring file Id:         1
Tailoring file profile Id: 30
Locations:
    Default Location
Organizations:
    Default Organization
Hostgroups:
    RHEL 7 Server 64-bit HG

Policy info displayed Day of month parameter successfully.

Comment 6 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