Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1206243 - Api for available_clusters on vmware does not return expected value.
Api for available_clusters on vmware does not return expected value.
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Compute Resources (Show other bugs)
6.0.8
Unspecified Unspecified
unspecified Severity high (vote)
: Beta
: Unused
Assigned To: Ohad Levy
Sanket Jagtap
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-26 11:52 EDT by ldomb
Modified: 2016-07-27 05:14 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-27 05:14:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 11345 None None None 2016-04-22 11:53 EDT
Red Hat Product Errata RHBA-2016:1501 normal SHIPPED_LIVE Red Hat Satellite 6.2 Capsule and Server 2016-07-27 08:28:58 EDT

  None (edit)
Description ldomb 2015-03-26 11:52:03 EDT
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:
Comment 1 RHEL Product and Program Management 2015-03-26 12:03:36 EDT
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Comment 3 Mike McCune 2015-03-26 12:25:08 EDT
Created redmine issue http://projects.theforeman.org/issues/9911 from this bug
Comment 5 Bryan Kearney 2015-08-25 14:34:40 EDT
Upstream bug component is Provisioning
Comment 6 Bryan Kearney 2015-08-26 15:20:29 EDT
Upstream bug component is Compute Resources
Comment 7 Tomer Brisker 2016-02-29 08:26:46 EST
Fixed upstream for 1.10 under a different issue number, moving to post and updating the related issue.
Comment 9 Sanket Jagtap 2016-04-22 04:46:37 EDT
Works for vmware cluster

/api/v2/compute_resources/1/available_clusters

Build: snap9.0

Output:

{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [{"name":"CFME-ESX55-Cluster","id":"domain-c241","full_path":"CFME-ESX55-Cluster"}]
}
Comment 11 errata-xmlrpc 2016-07-27 05:14:52 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501

Note You need to log in before you can comment on or make changes to this bug.