[Openstack] [nova] [policy] hypervisor list

Abbass MAROUNI abbass.marouni at virtualscale.fr
Mon Sep 15 09:02:14 UTC 2014


Thanks Jay,

Does it require any admin rights to do a custom query on the Nova 
database ? And if so do you know where to look for such a query ? Which 
part of the nova code to include in the filter ?

Best Regards,


On 09/13/2014 02:00 PM, openstack-request at lists.openstack.org wrote:
> OK, so not a normal user, but instead a service user (service being
> cinder itself).
>
> If this is a custom filter, I'd just go ahead and have the Cinder filter
> to a custom query on the Nova database instead of using the
> os-hypervisors API extension. I know that sounds like it's just adding
> technical debt to your solution, but honestly, the os-hypervisors API
> extension uses some questionable "queries" to construct its output.
> Specifically, it queries all the Service objects, and then outputs the
> first compute node matching the service_id in the compute_nodes table.
> If there's >1 compute node on the host, the behaviour is entirely
> undefined in the API extension.
>
> Best,
> -jay

-- 
--
Abbass MAROUNI
VirtualScale





More information about the Openstack mailing list