Bug #9911
closedApi for available_clusters on vmware does not return expected value.
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