Bug 1471801

Summary: No information displayed on creation of scap content from CLI
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, sjagtap
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-openscap-0.7.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:12:01 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-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