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 1480590 - No option to download scap content in CLI
Summary: No option to download scap content in 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
unspecified
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-11 12:38 UTC by Sanket Jagtap
Modified: 2019-08-12 14:05 UTC (History)
6 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 20602 0 None None None 2017-08-15 07:23:44 UTC

Description Sanket Jagtap 2017-08-11 12:38:35 UTC
Description of problem:


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

How reproducible:


Steps to Reproduce:
1.No option to download scap-content via CLI
2.
3.

Actual results:
hammer> scap-content --help
Usage:
     scap-content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 create                        Create SCAP content
 delete                        Deletes an SCAP content
 info                          Show an SCAP content
 list                          List SCAP contents
 update                        Update an SCAP content

Options:
 -h, --help                    print help


Expected results:
There should a option to download the scap-content , as UI supports it

Additional info:

Comment 1 Ondřej Pražák 2017-08-15 07:23:41 UTC
Created redmine issue http://projects.theforeman.org/issues/20602 from this bug

Comment 6 Satellite Program 2017-08-18 14:18:01 UTC
Upstream bug assigned to oprazak

Comment 7 Nikhil Kathole 2017-09-17 09:46:06 UTC
VERIFIED

Version Tested:
Satellite-6.3 Snap 16

steps:
1. # hammer scap-content --help
Usage:
    hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 create                        Create SCAP content
 delete                        Deletes an SCAP content
 download                      Show an SCAP content as XML
 info                          Show an SCAP content
 list                          List SCAP contents
 update                        Update an SCAP content

Options:
 -h, --help                    print help

Verifying this as download option for scap-content is added in CLI.But while downloading scap-content it shows error as 
 # hammer scap-content download --id=4 --path=/var
Could not download the SCAP content file:
  Error: undefined method `[]' for nil:NilClass

So creating new BZ for this : https://bugzilla.redhat.com/show_bug.cgi?id=1492418

Comment 8 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.