Support in vmware datastore clusters?

Hi,
Does anyone implemented before support in Vmware datastorecluster?
Is it possible at all to do that?

Hi,

First of all I don't know if anyone has implemented this, maybe the more
veteran members can say :slight_smile:

My question is, what kind of support are you looking for? I imagine that at
least to make Foreman aware of the datastore clusters and be able to place
the VMs in them?

BTW the capability to manage Datastore clusters is exposed in vSphere API.

Cheers,

··· --- Juan Manuel Rey

On Tue, Mar 11, 2014 at 9:17 AM, eliran shlomo eliranshlomo@gmail.comwrote:

Hi,
Does anyone implemented before support in Vmware datastorecluster?
Is it possible at all to do that?


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi,
Well in our environment we have more then 30 datastore and we don't want
to choose manually on which datastore the VM will be placed.
we would like to use the datastore cluster that the vSphere will make the
balance between the datastores.

··· On Tuesday, March 11, 2014 1:55:26 PM UTC+2, Juan Manuel Rey wrote: > > Hi, > > First of all I don't know if anyone has implemented this, maybe the more > veteran members can say :) > > My question is, what kind of support are you looking for? I imagine that > at least to make Foreman aware of the datastore clusters and be able to > place the VMs in them? > > BTW the capability to manage Datastore clusters is exposed in vSphere API. > > Cheers, > --- > Juan Manuel Rey > > > On Tue, Mar 11, 2014 at 9:17 AM, eliran shlomo <eliran...@gmail.com > > wrote: > >> Hi, >> Does anyone implemented before support in Vmware datastorecluster? >> Is it possible at all to do that? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "foreman-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-dev...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

AFAIK it's not implemented. A little background as far as I understand
it:

vSphere has a concept of datastores, which I assume are familiar. Since
5.something these can be bundled in clusters, which the API calls
StoragePod1. Internally nothing has changed and an image still lives
on a single datastore, but you can ask vmware to recommend a datastore
inside a cluster and it can do some other fancy things.

Given the following setup:

  • Datastore1
  • DatastoreCluster1
    • DatastoreMember1
    • DatastoreMember2

Presently that's shown as follows:

  • Datastore1
  • DatastoreMember1
  • DatastoreMember2

I'd expect it to show as follows in the dropdown to select the storage:

  • Datastore1
  • DatastoreCluster1
    • DatastoreMember1
    • DatastoreMember2

A user can select any option. If DatastoreCluster1 is chosen,
recommendDatastores2 is called. This returns a
StoragePlacementResult3 which hash a ClusterRecommendation
property4.

Now I haven't actually used any of this in the API so how to translate
the ClusterRecommendation into the actual CreateVM_Task parameters is
still unknown to me.

Even if DatastoreCluster1 can't be selected at first, just showing the
clusters would be an improvement.

··· On Tue, Mar 11, 2014 at 05:12:10AM -0700, eliran shlomo wrote: > Hi, > Well in our environment we have more then 30 datastore and we don't want > to choose manually on which datastore the VM will be placed. > we would like to use the datastore cluster that the vSphere will make the > balance between the datastores. > > > > On Tuesday, March 11, 2014 1:55:26 PM UTC+2, Juan Manuel Rey wrote: > > > > Hi, > > > > First of all I don't know if anyone has implemented this, maybe the more > > veteran members can say :) > > > > My question is, what kind of support are you looking for? I imagine that > > at least to make Foreman aware of the datastore clusters and be able to > > place the VMs in them? > > > > BTW the capability to manage Datastore clusters is exposed in vSphere API. > > > > Cheers, > > --- > > Juan Manuel Rey > > > > > > On Tue, Mar 11, 2014 at 9:17 AM, eliran shlomo <eliran...@gmail.com > > > wrote: > > > >> Hi, > >> Does anyone implemented before support in Vmware datastorecluster? > >> Is it possible at all to do that? > >> > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "foreman-dev" group. > >> To unsubscribe from this group and stop receiving emails from it, send an > >> email to foreman-dev...@googlegroups.com . > >> For more options, visit https://groups.google.com/d/optout. > >> > > > > > > -- > You received this message because you are subscribed to the Google Groups "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.

I'm not sure if this would help, but here is an article I found when trying
to tackle this problem at my own shop. It explains why the old API calls
(and probably FOG) don't support the new StorageDRS recommendations APIs.
It also does come with a perl implementation that shows how to use the API
calls.

··· On Tuesday, March 11, 2014 8:41:57 AM UTC-4, Ewoud Kohl van Wijngaarden wrote: > > AFAIK it's not implemented. A little background as far as I understand > it: > > vSphere has a concept of datastores, which I assume are familiar. Since > 5.something these can be bundled in clusters, which the API calls > StoragePod[1]. Internally nothing has changed and an image still lives > on a single datastore, but you can ask vmware to recommend a datastore > inside a cluster and it can do some other fancy things. > > Given the following setup: > > - Datastore1 > - DatastoreCluster1 > - DatastoreMember1 > - DatastoreMember2 > > Presently that's shown as follows: > > - Datastore1 > - DatastoreMember1 > - DatastoreMember2 > > I'd expect it to show as follows in the dropdown to select the storage: > > - Datastore1 > - DatastoreCluster1 > - DatastoreMember1 > - DatastoreMember2 > > A user can select any option. If DatastoreCluster1 is chosen, > recommendDatastores[2] is called. This returns a > StoragePlacementResult[3] which hash a ClusterRecommendation > property[4]. > > Now I haven't actually used any of this in the API so how to translate > the ClusterRecommendation into the actual CreateVM_Task parameters is > still unknown to me. > > Even if DatastoreCluster1 can't be selected at first, just showing the > clusters would be an improvement. > > [1]: > http://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.wssdk.apiref.doc/vim.StoragePod.html > [2]: > http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/vim.StorageResourceManager.html#recommendDatastores > [3]: > http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/vim.storageDrs.StoragePlacementResult.html > [4]: > http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/vim.cluster.Recommendation.html > > On Tue, Mar 11, 2014 at 05:12:10AM -0700, eliran shlomo wrote: > > Hi, > > Well in our environment we have more then 30 datastore and we don't > want > > to choose manually on which datastore the VM will be placed. > > we would like to use the datastore cluster that the vSphere will make > the > > balance between the datastores. > > > > > > > > On Tuesday, March 11, 2014 1:55:26 PM UTC+2, Juan Manuel Rey wrote: > > > > > > Hi, > > > > > > First of all I don't know if anyone has implemented this, maybe the > more > > > veteran members can say :) > > > > > > My question is, what kind of support are you looking for? I imagine > that > > > at least to make Foreman aware of the datastore clusters and be able > to > > > place the VMs in them? > > > > > > BTW the capability to manage Datastore clusters is exposed in vSphere > API. > > > > > > Cheers, > > > --- > > > Juan Manuel Rey > > > > > > > > > On Tue, Mar 11, 2014 at 9:17 AM, eliran shlomo <eliran...@gmail.com > > > > > wrote: > > > > > >> Hi, > > >> Does anyone implemented before support in Vmware datastorecluster? > > >> Is it possible at all to do that? > > >> > > >> -- > > >> You received this message because you are subscribed to the Google > Groups > > >> "foreman-dev" group. > > >> To unsubscribe from this group and stop receiving emails from it, > send an > > >> email to foreman-dev...@googlegroups.com . > > >> For more options, visit https://groups.google.com/d/optout. > > >> > > > > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "foreman-dev" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-dev...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >

Fog uses rbvmomi to interface with vSphere API. Rbvmomi for any datastore
related operation it will use VIM::datastore but as far as I could see the
current version doesn't contemplate datastore cluster support.

BTW William's script was done in Perl just because the Perl SDK is
officially supported and its always up to date in terms of APIs.

Cheers,

··· --- Juan Manuel Rey

On Tue, Mar 11, 2014 at 5:12 PM, Michael Griffin mcgriffin@gmail.comwrote:

I’m not sure if this would help, but here is an article I found when
trying to tackle this problem at my own shop. It explains why the old API
calls (and probably FOG) don’t support the new StorageDRS recommendations
APIs. It also does come with a perl implementation that shows how to use
the API calls.

http://www.virtuallyghetto.com/2012/03/vm-provisioning-on-datastore-clusters.html

On Tuesday, March 11, 2014 8:41:57 AM UTC-4, Ewoud Kohl van Wijngaarden > wrote:

AFAIK it’s not implemented. A little background as far as I understand
it:

vSphere has a concept of datastores, which I assume are familiar. Since
5.something these can be bundled in clusters, which the API calls
StoragePod1. Internally nothing has changed and an image still lives
on a single datastore, but you can ask vmware to recommend a datastore
inside a cluster and it can do some other fancy things.

Given the following setup:

  • Datastore1
  • DatastoreCluster1
    • DatastoreMember1
    • DatastoreMember2

Presently that’s shown as follows:

  • Datastore1
  • DatastoreMember1
  • DatastoreMember2

I’d expect it to show as follows in the dropdown to select the storage:

  • Datastore1
  • DatastoreCluster1
    • DatastoreMember1
    • DatastoreMember2

A user can select any option. If DatastoreCluster1 is chosen,
recommendDatastores[2] is called. This returns a
StoragePlacementResult[3] which hash a ClusterRecommendation
property[4].

Now I haven’t actually used any of this in the API so how to translate
the ClusterRecommendation into the actual CreateVM_Task parameters is
still unknown to me.

Even if DatastoreCluster1 can’t be selected at first, just showing the
clusters would be an improvement.

vmware.wssdk.apiref.doc/vim.StoragePod.html
[2]: http://pubs.vmware.com/vsphere-55/topic/com.vmware.
wssdk.apiref.doc/vim.StorageResourceManager.html#recommendDatastores
[3]: http://pubs.vmware.com/vsphere-55/topic/com.vmware.
wssdk.apiref.doc/vim.storageDrs.StoragePlacementResult.html
[4]: http://pubs.vmware.com/vsphere-55/topic/com.vmware.
wssdk.apiref.doc/vim.cluster.Recommendation.html

On Tue, Mar 11, 2014 at 05:12:10AM -0700, eliran shlomo wrote:

Hi,
Well in our environment we have more then 30 datastore and we don’t
want
to choose manually on which datastore the VM will be placed.
we would like to use the datastore cluster that the vSphere will make
the
balance between the datastores.

On Tuesday, March 11, 2014 1:55:26 PM UTC+2, Juan Manuel Rey wrote:

Hi,

First of all I don’t know if anyone has implemented this, maybe the
more

veteran members can say :slight_smile:

My question is, what kind of support are you looking for? I imagine
that

at least to make Foreman aware of the datastore clusters and be able
to

place the VMs in them?

BTW the capability to manage Datastore clusters is exposed in vSphere
API.

Cheers,

Juan Manuel Rey

On Tue, Mar 11, 2014 at 9:17 AM, eliran shlomo <eliran...@gmail.com<javascript:> >> >> > > > wrote:

Hi,
Does anyone implemented before support in Vmware datastorecluster?
Is it possible at all to do that?


You received this message because you are subscribed to the Google
Groups

“foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it,
send an

email to foreman-dev...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “foreman-dev” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.