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.
Description of problem:
The command hammer host-collection create is completely broken in latest 6.2.0 build:
hammer> host-collection create -h
Usage:
host-collection create [OPTIONS]
Options:
--description DESCRIPTION
--host-collection-ids HOST_COLLECTION_IDS Array of host ids to replace the hosts in host collection
Comma separated list of values.
--hosts HOST_NAMES Comma separated list of values.
--max-hosts MAX_HOSTS Maximum number of hosts in the host collection
--name NAME Host Collection name
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID organization ID
--organization-label ORGANIZATION_LABEL Organization label to search by
--unlimited-hosts UNLIMITED_HOSTS Whether or not the host collection may have unlimited hosts
One of true/false, yes/no, 1/0.
-h, --help print help
hammer> host-collection create --organization-id="1058" --name="dFJsRjkakviNeAv"
Could not create the host collection:
Error: undefined local variable or method `option_host_ids' for #<HammerCLIKatello::HostCollection::CreateCommand:0x00000002f10700>
Version-Release number of selected component (if applicable):
* Satellite 6.2.0 SNAP 3.1
How reproducible:
Steps to Reproduce:
1. Try to create a new host-collection via hammer
2.
3.
Actual results:
Expected results:
Additional info:
Talked to Brad Buckingham and though creation is working fine, we still see the same error showing up when we try to update a host-collection.
We then patched lib/hammer_cli_katello/host_collection.rb UpdateCommand with the same changes shown by https://github.com/Katello/hammer-cli-katello/pull/365/files and the problem was resolved. We decided that perhaps a thorough review of this specific module would be advisable, so I am keeping this issue as is and Brad will fix it.
Failed on Satellite 6.2.0 SNAP 5.1.
Comment 9sthirugn@redhat.com
2016-04-07 12:48:12 UTC
Verified in satellite-6.2.0-6.2.beta.el7sat.noarch
hammer> host-collection create --organization-id=1 --name=newhostcollection
Host collection created
But I did find an update error which I logged in https://bugzilla.redhat.com/show_bug.cgi?id=1324848
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/RHBA-2016:1501
Description of problem: The command hammer host-collection create is completely broken in latest 6.2.0 build: hammer> host-collection create -h Usage: host-collection create [OPTIONS] Options: --description DESCRIPTION --host-collection-ids HOST_COLLECTION_IDS Array of host ids to replace the hosts in host collection Comma separated list of values. --hosts HOST_NAMES Comma separated list of values. --max-hosts MAX_HOSTS Maximum number of hosts in the host collection --name NAME Host Collection name --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID organization ID --organization-label ORGANIZATION_LABEL Organization label to search by --unlimited-hosts UNLIMITED_HOSTS Whether or not the host collection may have unlimited hosts One of true/false, yes/no, 1/0. -h, --help print help hammer> host-collection create --organization-id="1058" --name="dFJsRjkakviNeAv" Could not create the host collection: Error: undefined local variable or method `option_host_ids' for #<HammerCLIKatello::HostCollection::CreateCommand:0x00000002f10700> Version-Release number of selected component (if applicable): * Satellite 6.2.0 SNAP 3.1 How reproducible: Steps to Reproduce: 1. Try to create a new host-collection via hammer 2. 3. Actual results: Expected results: Additional info: