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 1471801 - No information displayed on creation of scap content from CLI
Summary: No information displayed on creation of scap content from CLI
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-07-17 13:14 UTC by Sanket Jagtap
Modified: 2021-07-21 14:53 UTC (History)
6 users (show)

Fixed In Version: foreman-openscap-0.7.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:12:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20606 0 None None None 2017-08-15 11:17:41 UTC

Description Sanket Jagtap 2017-07-17 13:14:24 UTC
Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
1.Create scap-content from cli
2.No information displayed regarding the created scap-content
3.

Actual results:
hammer -u admin -p pass --output=csv scap-content create --title="apple" --scap-file="/tmp/ssg-rhel6-ds.xml"
Message,Id,Name
Scap content successfully created,id,name


Expected results:
Actual ID and name should be printed of created scap-content

Additional info:
scap-content is created successfully

Comment 2 Brad Buckingham 2017-07-18 17:17:41 UTC
Sanket, is this a regression from 6.2?

Comment 3 Sanket Jagtap 2017-08-04 06:38:24 UTC
No, This is new feature for 6.3 , OSCAP CLI support

Comment 4 Ondřej Pražák 2017-08-15 11:17:39 UTC
Created redmine issue http://projects.theforeman.org/issues/20606 from this bug

Comment 5 Satellite Program 2017-08-15 14:05:44 UTC
Upstream bug assigned to oprazak

Comment 6 Satellite Program 2017-08-15 14:05:47 UTC
Upstream bug assigned to oprazak

Comment 7 Satellite Program 2017-08-25 16:05:12 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20606 has been resolved.

Comment 8 Nikhil Kathole 2017-09-10 09:39:53 UTC
Hi,

While verifying, I found Message and ID info. Whether "Name" is expected?

#  hammer -u admin -p changeme --output=csv scap-content create --title="apple" --scap-file="ssg-rhel6-ds.xml"
Message,Id
Scap content successfully created,5

Comment 9 Ondřej Pražák 2017-09-11 06:18:35 UTC
Hi,
scap content does not have a name, it has a title instead. The output formatter checks for id and name attributes and displays them automatically. As soon as we make output formatter for csv look for title attribute, this will display title as well

Comment 10 Nikhil Kathole 2017-09-11 06:41:50 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 15

steps:

# hammer --output=csv -u admin -p changeme scap-content create --title="test" --scap-file="ssg-rhel6-ds.xml"
Message,Id
Scap content successfully created,18

Verifying this bug as notification and ID successfully displayed in output and will file another bug for addition of title in success notification.

Comment 11 Sanket Jagtap 2017-09-28 13:05:42 UTC
Tracking the Title for scap-content issue Separately https://bugzilla.redhat.com/show_bug.cgi?id=1496810

Comment 12 Bryan Kearney 2018-02-21 17:12:01 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.