Vsphere clusters inside folders not displaying in Foreman

Hi all,

We are installing Foreman into a client that uses the following tree
structure within the VMWare Datacentre:
dc -> Folder -> Cluster -> folder, etc

which is a little different form the usual:
dc -> cluster -> folder -> folder, etc

We have set up a compute reosurce for this vcenter but the problem is that
when we go to create a new host, the Cluster drop down list is empty.

Looking through the FOG library code, it looks like the get_cluster
function does no form of traversing of the vcenter tree, just looks in the
"root" folder, which is the DC.

Does anybody know if this is being worked on at all or if there is a
workaround to get clusters that have been defined inside folders visible to
Foreman?

Thanks

Warren Powell

Nobody's working on it to my knowledge, so if you're able to send a fix
along to Fog, it'd be much appreciated.

Bug #5855: Cannot select vSphere clusters in folders (foreman-vmware) - Foreman is the ticket we're tracking
the issue under.

··· On 03/11/14 03:16, Warren Powell wrote: > Hi all, > > We are installing Foreman into a client that uses the following tree > structure within the VMWare Datacentre: > dc -> Folder -> Cluster -> folder, etc > > which is a little different form the usual: > dc -> cluster -> folder -> folder, etc > > We have set up a compute reosurce for this vcenter but the problem is > that when we go to create a new host, the Cluster drop down list is empty. > > Looking through the FOG library code, it looks like the get_cluster > function does no form of traversing of the vcenter tree, just looks in > the "root" folder, which is the DC. > > Does anybody know if this is being worked on at all or if there is a > workaround to get clusters that have been defined inside folders visible > to Foreman?


Dominic Cleal
Red Hat Engineering