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 1482543 - Scap CLI policy info missing day-of-month parameter
Summary: Scap CLI policy info missing day-of-month parameter
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:53 UTC by Sanket Jagtap
Modified: 2019-08-12 16:08 UTC (History)
5 users (show)

Fixed In Version: 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 20663 0 None None None 2017-08-21 09:23:07 UTC

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


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