Bug #21435
closedhammer host-collection list requires organization parameter with host-id provided
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1503704
Description of problem:
[root@cisco-b420m3-01 ~]# hammer host-collection list --host-id 2
Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.
[root@cisco-b420m3-01 ~]# hammer host-collection list --host-id 3 --organization-id 1
Couldn't find Host::Managed with 'id'=3 [WHERE "hosts"."type" IN ('Host::Managed')]
This should not happen, since host-id is unique, so satellite should be able to figure out the appt organization.
Also, this is a regression since last snap (6.3.0-19)
Version-Release number of selected component (if applicable):
6.3.0-20
How reproducible:
Steps to Reproduce:
1. create a host collection and create & add a host into it
2. try to list host collection by specifying its member id (host-id)
Actual results:
organization parameter required
Expected results:
should be able to list the HC
Additional info:
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Andrew Kofink
- Pull request https://github.com/Katello/katello/pull/7024 added
Updated by Justin Sherrill about 7 years ago
- Subject changed from hammer host-collection list requires organization parameter with host-id provided to hammer host-collection list requires organization parameter with host-id provided
- Category set to Host Collections
- Translation missing: en.field_release set to 295
Updated by Andrew Kofink about 7 years ago
- Related to Bug #20574: API call of GET /katello/api/host_collections says organization_id optional, but doesn't accept without organization id added
Updated by Andrew Kofink about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|911988479c42aa049e007e793147a757ccf5ba77.
Updated by Andrew Kofink almost 7 years ago
- Related to Bug #22503: hammer host-collection list doesn't require organization options added