Project

General

Profile

Actions

Bug #21435

closed

hammer host-collection list requires organization parameter with host-id provided

Added by Andrew Kofink over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host Collections
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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:


Related issues 2 (0 open2 closed)

Related to Katello - Bug #20574: API call of GET /katello/api/host_collections says organization_id optional, but doesn't accept without organization idClosed08/13/2017Actions
Related to Katello - Bug #22503: hammer host-collection list doesn't require organization optionsClosedAndrew Kofink02/02/2018Actions
Actions #1

Updated by The Foreman Bot over 6 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
Actions #2

Updated by Justin Sherrill over 6 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
Actions #3

Updated by Andrew Kofink over 6 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
Actions #4

Updated by Andrew Kofink over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Andrew Kofink about 6 years ago

  • Related to Bug #22503: hammer host-collection list doesn't require organization options added
Actions

Also available in: Atom PDF