Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1361473 - [RFE] - Display the errata or packages that would applicable/installable for a given host using Hammer CLI
[RFE] - Display the errata or packages that would applicable/installable for ...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hammer - Content (Show other bugs)
6.2.0
All All
high Severity medium (vote)
: GA
: Unused
Assigned To: David Davis
Daniel Lobato Garcia
http://projects.theforeman.org/issues...
: FutureFeature, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-29 02:54 EDT by Nagoor Shaik
Modified: 2018-02-21 07:35 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-02-21 07:35:52 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2807001 None None None 2016-12-14 01:57 EST
Foreman Issue Tracker 16533 None None None 2016-09-13 09:33 EDT
Red Hat Product Errata RHSA-2018:0336 normal SHIPPED_LIVE Important: Satellite 6.3 security, bug fix, and enhancement update 2018-02-21 17:43:42 EST

  None (edit)
Comment 1 Bryan Kearney 2016-09-13 10:18:05 EDT
Upstream bug component is Hammer - Content
Comment 2 David Davis 2016-09-16 12:34:38 EDT
We've added the ability to view packages that are applicable or upgradable for a host (much like you can do now with errata). To view the upgradable packages for host with id 1, you'd do:

   hammer package list --host-id 1 --packages-restrict-upgradable true

It's not 100% clear to me if this solves the RFE but feel free to respond/reopen.
Comment 3 Nagoor Shaik 2016-09-21 10:02:02 EDT
Hi David,

There is no sub-option such as --host-id in Satellite 6.2.2 

 # hammer package list --help
Usage:
    hammer package list [OPTIONS]

Options:
 --by BY                                             Field to sort the results on
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-filter CONTENT_VIEW_FILTER_NAME      Name to search by
 --content-view-filter-id CONTENT_VIEW_FILTER_ID     filter identifier
 --content-view-id CONTENT_VIEW_ID                   content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --environment ENVIRONMENT_NAME                      Name to search by
 --environment-id ENVIRONMENT_ID                      
 --full-results FULL_RESULTS                         Whether or not to show all results
                                                     One of true/false, yes/no, 1/0.
 --ids IDS                                           ids to filter content by
                                                     Comma separated list of values.
 --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
 --product PRODUCT_NAME                              Product name to search by
 --product-id PRODUCT_ID                             product numeric identifier
 --repository REPOSITORY_NAME                        Repository name to search by
 --repository-id REPOSITORY_ID                       repository ID
 --search SEARCH                                     Search string
 -h, --help                                          print help

 rpm -qa | grep hammer
tfm-rubygem-hammer_cli_foreman_tasks-0.0.10.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_csv-2.1.0-1.el7sat.noarch
tfm-rubygem-hammer_cli-0.5.1.11-4.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.6-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.5.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_import-0.11.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-0.5.1.9-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_discovery-0.0.2.3-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_admin-0.0.5-1.el7sat.noarch
tfm-rubygem-hammer_cli_katello-0.0.22.26-1.el7sat.noarch
Comment 4 Bryan Kearney 2016-09-22 14:18:22 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16533 has been resolved.
Comment 6 Daniel Lobato Garcia 2017-08-23 05:40:33 EDT
Verified.

Version Tested: Satellite-6.3 Snap 12

Running `hammer host info --id 1` returns now the applicable/upgradable packages in Content Information:

Content Information:
    Content View:
    Lifecycle Environment:
    Applicable Packages:
    Upgradable Packages:
    Applicable Errata:
        Enhancement:
        Bug Fix:
        Security:
Comment 9 errata-xmlrpc 2018-02-21 07:35:52 EST
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.