On 09/15/2014 05:02 AM, Abbass MAROUNI wrote:
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 ?

I'm not talking about doing something via the public HTTP API... I'm talking about making a direct database query for our cinder information directly from your Nova scheduler filter class.

Best,
jay

Best Regards,


On 09/13/2014 02:00 PM, openstack-requ...@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



_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to