Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1386267

Summary: hammer content-host --erratum functionality lost in 6.2
Product: Red Hat Satellite Reporter: Stefan Nemeth <snemeth>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.2CC: bbuckingham, dhlavacd, inecas, jsherril, mhulan, tstrachota
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-20 16:41:48 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 Stefan Nemeth 2016-10-18 13:58:32 UTC
Description of problem:

Between 6.1.9 and 6.2 there is loss of hammer sub command for content-host to list installable errata. 


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


How reproducible:
100%

Steps to Reproduce:
1.
At satellite 6.2.2
hammer content-host list --organization-id 1 --help
Usage:
    hammer content-host list [OPTIONS]

Options:
 --by BY                                             Field to sort the results on
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   content view numeric identifier
 --full-results FULL_RESULTS                         Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME  Name to search by
 --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID  
 --name NAME                                         Filter content host by name
 --order ORDER                                       Sort field and order, eg. 'name DESC'
 --organization ORGANIZATION_NAME                    Organization name to search by
 --organization-id ORGANIZATION_ID                   organization ID
 --organization-label ORGANIZATION_LABEL             Organization label to search by
 --page PAGE                                         Page number, starting at 1
 --per-page PER_PAGE                                 Number of results per page to return
 --pool-id POOL_ID                                   Filter content host by subscribed pool
 --search SEARCH                                     Search string
 --uuid UUID                                         Filter content host by uuid
 -h, --help                                          print help



2. At satellite 6.1
hammer content-host list --organization-id 1 --help
Usage:
    hammer content-host list [OPTIONS]

Options:
 --by BY                                                               Field to sort the results on
 --content-view CONTENT_VIEW_NAME                                      Content view name
 --content-view-id CONTENT_VIEW_ID                                     content view numeric identifier
 --errata-ids ERRATA_IDS                                               Filter by systems that need any one of multiple Errata by uuid
                                                                       Comma separated list of values.
 --erratum-id ERRATUM_ID                                               Filter by systems that need an Erratum by uuid
 --erratum-restrict-installable ERRATUM_RESTRICT_INSTALLABLE           Return only systems where the Erratum specified by erratum_id or errata_ids
                                                                       is available to systems (default False)
 --erratum-restrict-non-installable ERRATUM_RESTRICT_NON_INSTALLABLE   Return only systems where the Erratum specified by erratum_id or errata_ids
                                                                       is unavailable to systems (default False)
 --full-results FULL_RESULTS                                           Whether or not to show all results
                                                                       One of true/false, yes/no, 1/0.
 --host-collection HOST_COLLECTION_NAME                                Host collection name to search by
 --host-collection-id HOST_COLLECTION_ID                               Id of the host collection
 --lifecycle-environment, --environment LIFECYCLE_ENVIRONMENT_NAME     Name to search by
 --lifecycle-environment-id, --environment-id LIFECYCLE_ENVIRONMENT_ID  
 --name NAME                                                           Filter content host by name
 --order ORDER                                                         Sort field and order, eg. 'name DESC'
 --organization ORGANIZATION_NAME                                      Organization name to search by
 --organization-id ORGANIZATION_ID                                     organization ID
 --organization-label ORGANIZATION_LABEL                               Organization label to search by
 --page PAGE                                                           Page number, starting at 1
 --per-page PER_PAGE                                                   Number of results per page to return
 --pool-id POOL_ID                                                     Filter content host by subscribed pool
 --search SEARCH                                                       Search string
 --uuid UUID                                                           Filter content host by uuid
 -h, --help                                                            print help

3.

Actual results:
functionality lost with new version

Expected results:
Get the options from 6.1.9 back

Additional info:

Comment 2 Justin Sherrill 2016-10-20 16:41:48 UTC
Yes, this was moved to the host command:

hammer host errata list --host=myclient.example.com

The content-host command will be completely removed in 6.3.