Project

General

Profile

Actions

Bug #9911

closed

Api for available_clusters on vmware does not return expected value.

Added by Mike McCune over 9 years ago. Updated almost 9 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

Also available in: Atom PDF