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.
Bug 1324848 - hammer host-collection update with host-collection name failed
Summary: hammer host-collection update with host-collection name failed
Keywords:
Status: CLOSED DUPLICATE of bug 1328925
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Andrew Kofink
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-07 12:46 UTC by sthirugn@redhat.com
Modified: 2019-11-14 07:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 15:25:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
production.log error (19.84 KB, text/plain)
2016-04-07 12:46 UTC, sthirugn@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1317674 0 unspecified CLOSED hammer host-collection create fails with undefined local variable or method `option_host_ids' 2021-02-22 00:41:40 UTC

Internal Links: 1317674

Description sthirugn@redhat.com 2016-04-07 12:46:57 UTC
Created attachment 1144697 [details]
production.log error

Description of problem:
hammer host-collection create with host-collection name failed

Version-Release number of selected component (if applicable):
satellite-6.2.0-6.2.beta.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
hammer> host-collection update --help
Usage:
     host-collection update [OPTIONS]

Options:
 --description DESCRIPTION          
 --host-ids HOST_IDS               List of host ids to replace the hosts in host collection
                                   Comma separated list of values.
 --hosts HOST_NAMES                Comma separated list of values.
 --id ID                           Id of the host collection
 --max-hosts MAX_HOSTS             Maximum number of hosts in the host collection
 --name NAME                       Host collection name to search by
 --new-name NEW_NAME               Host Collection name
 --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=1 --name=newhostcollection 
Host collection created

hammer> host-collection update --name=newhostcollection --new-name=sathc
Could not update the the host collection:
  undefined method `id' for nil:NilClass

hammer> host-collection update --id=1 --new-name=sathc
Host collection updated


Actual results:
host-collection update with name errored

Expected results:
I think organization-id is required to update with host-collection name but update command doesnt take organization-id as input.

Additional info:

Comment 2 Andrew Kofink 2016-05-12 15:25:23 UTC
Fixed with BZ #1328925

*** This bug has been marked as a duplicate of bug 1328925 ***


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