Bug 1459874
Summary: | hammer package list missing options repository and repository-id | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Djebran Lezzoum <dlezzoum> |
Component: | Repositories | Assignee: | Brad Buckingham <bbuckingham> |
Status: | CLOSED ERRATA | QA Contact: | Adam Ruzicka <aruzicka> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.0 | CC: | aruzicka, bbuckingham, bkearney, dhlavacd, ehelms, jcallaha, rajgupta, tstrachota |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | tfm-rubygem-hammer_cli_katello-0.10.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 16:47:06 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
Djebran Lezzoum
2017-06-08 12:28:26 UTC
With the latest upstream katello 3.4 builds below, I do see the --repository and --repository-id parameters; therefore, going to move this to POST for verification with the next build. tfm-rubygem-katello-3.4.0.2-2.el7.noarch tfm-rubygem-hammer_cli_katello-0.10.0-1.el7.noarch hammer> package list --help Usage: package list [OPTIONS] Options: --by BY Field to sort the results on --content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by --content-view-filter-id CONTENT_VIEW_FILTER_ID filter 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-result FULL_RESULT Whether or not to show all results One of true/false, yes/no, 1/0. --host HOST_NAME Name to search by --host-id HOST_ID --ids IDS ids to filter content by Comma separated list of values. Values containing comma should be double quoted --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 --packages-restrict-applicable PACKAGES_RESTRICT_APPLICABLE Only show packages that are applicable to hosts (defaults to true if host_id is specified) One of true/false, yes/no, 1/0. --packages-restrict-upgradable PACKAGES_RESTRICT_UPGRADABLE Only show packages that are upgradable in the host(s) Content View. One of true/false, yes/no, 1/0. --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 Verified. Satellite-6.3 Snap 9 Hammer package list accepts the --repository or --repository-id options. Package versions: tfm-rubygem-hammer_cli_katello-0.10.0-1.el7sat.noarch tfm-rubygem-hammer_cli-0.10.2-1.el7sat.noarch tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.5-3.fm1_15.el7sat.noarch tfm-rubygem-hammer_cli_foreman_docker-0.0.4-4.el7sat.noarch tfm-rubygem-hammer_cli_csv-2.3.0-1.el7sat.noarch tfm-rubygem-hammer_cli_foreman_discovery-1.0.0-1.el7sat.noarch tfm-rubygem-hammer_cli_foreman_tasks-0.0.10-3.fm1_15.el7sat.noarch tfm-rubygem-hammer_cli_import-0.11.3-3.el7sat.noarch tfm-rubygem-hammer_cli_foreman_admin-0.0.6-1.el7sat.noarch tfm-rubygem-hammer_cli_foreman-0.10.2-1.el7sat.noarch tfm-rubygem-hammer_cli_foreman_virt_who_configure-0.0.3-1.el7sat.noarch tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-7.el7sat.noarch tfm-rubygem-hammer_cli_foreman_openscap-0.1.4-1.fm1_15.el7sat.noarch katello-3.4.2-1.el7sat.noarch satellite-6.3.0-16.0.beta.el7sat.noarch [root@snap9 ~]# hammer package list --help Usage: hammer package list [OPTIONS] Options: --by BY Field to sort the results on --content-view-filter CONTENT_VIEW_FILTER_NAME Name to search by --content-view-filter-id CONTENT_VIEW_FILTER_ID filter 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-result FULL_RESULT Whether or not to show all results One of true/false, yes/no, 1/0. --host HOST_NAME Name to search by --host-id HOST_ID --ids IDS ids to filter content by Comma separated list of values. Values containing comma should be double quoted --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 --packages-restrict-applicable PACKAGES_RESTRICT_APPLICABLE Only show packages that are applicable to hosts (defaults to true if host_id is specified) One of true/false, yes/no, 1/0. --packages-restrict-upgradable PACKAGES_RESTRICT_UPGRADABLE Only show packages that are upgradable in the host(s) Content View. One of true/false, yes/no, 1/0. --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 [root@snap9 ~]# hammer package list --organization-id 1 --product 'Product 1' --repository-id 2 ---|-------------------------------------|----------- ID | FILENAME | SOURCE RPM ---|-------------------------------------|----------- 1 | redhat-ddns-client-1.3-4.noarch.rpm | ---|-------------------------------------|----------- [root@snap9 ~]# hammer package list --organization-id 1 --product 'Product 1' --repository 'Repo 2' ---|-------------------------------------|----------- ID | FILENAME | SOURCE RPM ---|-------------------------------------|----------- 1 | redhat-ddns-client-1.3-4.noarch.rpm | ---|-------------------------------------|----------- Hello, One of the Cu is facing an issue while running the command as below. # hammer host package list --host-id 19 ---------------------------------------- NVRA ---------------------------------------- acl-2.2.51-12.el7.x86_64 adwaita-cursor-theme-3.14.1-1.el7.noarch adwaita-icon-theme-3.14.1-1.el7.noarch aic94xx-firmware-30-6.el7.noarch alsa-firmware-1.0.28-2.el7.noarch alsa-lib-1.1.1-1.el7.x86_64 alsa-tools-firmware-1.1.0-1.el7.x86_64 atk-2.14.0-1.el7.x86_64 at-spi2-atk-2.14.1-1.el7.x86_64 at-spi2-core-2.14.1-2.el7.x86_64 audit-2.6.5-3.el7_3.1.x86_64 audit-libs-2.6.5-3.el7_3.1.x86_64 audit-libs-python-2.6.5-3.el7_3.1.x86_64 authconfig-6.2.8-14.el7.x86_64 avahi-libs-0.6.31-17.el7.x86_64 basesystem-10.0-7.el7.noarch bash-4.2.46-21.el7_3.x86_64 bind-libs-lite-9.9.4-38.el7_3.3.x86_64 bind-license-9.9.4-38.el7_3.3.noarch binutils-2.25.1-22.base.el7.x86_64 ---------------------------------------- Page 1 of 26 (use --page and --per-page for navigation) # # hammer host package list --host-id 19 --per-page 50 Error: Unrecognised option '--per-page' See: 'hammer host package list --help' Is this bugzilla is relevant to the same issue? Please advice. Regards, Rajan 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 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 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 |