Project

General

Profile

Bug #12764

API hosts criteria

Added by Brian Shaw over 6 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Hosts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

What is the criteria for which hosts are returned in an /api/hosts query? The man page (http://theforeman.org/api/1.9/index.html) says it is all hosts.

When I make the request, it returns 8 hosts, 7 unique; the Katello server itself is returned twice. On my Content Hosts page in the Foreman GUI, I have 12 hosts listed and the Katello server only shows up once.

Also, if I run "hammer host list", it returns the same 8 hosts as the API call.

All test are done as the admin user.

Thank you for your help with this.

History

#1 Updated by Dominic Cleal over 6 years ago

  • Project changed from Foreman to Katello
  • Triaged set to No

Katello has its own notion of hosts/systems, it probably has a separate API call to retrieve them.

Please note that support questions might get a better response on the mailing list, this is primarily a bug tracker.

#2 Updated by Justin Sherrill almost 6 years ago

  • Tracker changed from Support to Bug
  • Category set to Hosts
  • Status changed from New to Rejected
  • Legacy Backlogs Release (now unused) set to 166

This is likely solved by host unification in katello 3.0. Please reopen if you don't think it does. Thanks!

Also available in: Atom PDF