Bug 1386267 - hammer content-host --erratum functionality lost in 6.2
Summary: hammer content-host --erratum functionality lost in 6.2
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-18 13:58 UTC by Stefan Nemeth
Modified: 2017-04-25 16:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-20 16:41:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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