Project

General

Profile

Actions

Bug #9911

closed

Api for available_clusters on vmware does not return expected value.

Added by Mike McCune about 9 years ago. Updated about 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1206243
Description of problem:

I have a VMware cluster with the following setup

Datacentername = nyc
Clustername = nyccluster

I have 2 hosts in the cluster and I am able to provision to it via sat6.

When I try to query the vmware cluster information via api

https://sat6.local.domb.com/api/v2/compute_resources/4/available_clusters

I get back

{
"total": 4,
"subtotal": 4,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [{}]
}

This only happens with vmware. If I choose rhev it works
https://sat6.local.domb.com/api/v2/compute_resources/3/available_clusters

{
"total": 4,
"subtotal": 4,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [{"name":"Default","id":"00000001-0001-0001-0001-00000000034c"}]
}

Version-Release number of selected component (if applicable): 6.0.8

How reproducible:

Steps to Reproduce:
1. You need to have a vmware cluster :-)
2. Query the api of sat6
https://SAT6SERVER/api/v2/compute_resources/3/available_clusters

Actual results:
results hash is empty

Expected results:
results hash should contain vmware cluster

Additional info:


Files

vmwarecluster.png View vmwarecluster.png 47.8 KB Laurent Domb, 03/26/2015 12:43 PM
Actions #1

Updated by Dominic Cleal about 9 years ago

  • Category set to Compute resources - VMware
  • Status changed from New to Need more information

Does the UI list available clusters when creating a host?

Please re-test on a newer release (1.8 or 1.9), this is very old code (1.5).

Actions #2

Updated by Laurent Domb about 9 years ago

Yes it does. Provisioning is not affected in any way. Its just the api call which somehow does not return the expected results hash

Actions #3

Updated by Tomer Brisker about 8 years ago

  • Status changed from Need more information to Duplicate

This was already fixed in #11345.

Actions

Also available in: Atom PDF