[openstack-dev] [cinder][nova] cinder querying nova-api
Duncan Thomas
duncan.thomas at gmail.com
Thu Jul 17 13:06:18 UTC 2014
On 17 July 2014 08:36, Abbass MAROUNI <abbass.marouni at virtualscale.fr> wrote:
> Thanks Thomas,
>
> What I'm trying to achieve is the following :
> To be able to create a VM on a host (that's a compute and volume host at the
> same time) then call cinder and let it find the host and create and attach
> volumes there.
>
> I guess the biggest problem is to be able to identify the host, as you said
> the host_id is of little use here. Unless I try to query the nova api as
> admin and get a list of hypervisors and their vms. But then I'll have to
> match the nova host name with the cinder host name.
>
> Any thoughts on this ? Is there any blueprint for attaching local volumes in
> cinder ?
You're far from the only person trying to achieve that result, there's
plenty of interest in it, and a few approaches being suggested.
I can't see a current cinder spec open for this, so it might be worth
you starting one, you're more likely to get detailed feedback about
the pitfalls there.
More information about the OpenStack-dev
mailing list