Bug 1361473
Summary: | [RFE] - Display the errata or packages that would applicable/installable for a given host using Hammer CLI | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Nagoor Shaik <nshaik> |
Component: | Hammer - Content | Assignee: | David Davis <daviddavis> |
Status: | CLOSED ERRATA | QA Contact: | Daniel Lobato Garcia <dlobatog> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.2.0 | CC: | bbuckingham, daviddavis, dlobatog, jcallaha |
Target Milestone: | Unspecified | Keywords: | FutureFeature, Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://projects.theforeman.org/issues/16533 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 12:35:52 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: |
Comment 1
Bryan Kearney
2016-09-13 14:18:05 UTC
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. 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 Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16533 has been resolved. 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: 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 |