Hi all,

I'm trying to get the equivalent of the following nova client command programmatically :

root@cloudController1:~# nova hypervisor-servers computeHost1
+--------------------------------------+-------------------+---------------+---------------------+
| ID | Name | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+---------------+---------------------+
| b22fa835-4118-434d-a536-a8q95720a21a | instance-00000030 | 1 | compute1 | | c1778664-e31d-455e-81f2-8776c8a8fa0e | instance-00000031 | 1 | compute1 | | 318d61db-f67c-475c-84a7-a9580bkh53cc | instance-00000035 | 1 | compute1 | | 5f5baaed-f8ca-4161-95eb-cbpopc41b70b | instance-00000039 | 1 | compute1 |
+--------------------------------------+-------------------+---------------+---------------------+

I'm in the process of writing a filter and I need to get the hypervisor that's running a given VM. I have access to the novaclient api and a context object but cannot figure out how get the above result.

Thanks,

--
--
Abbass MAROUNI
VirtualScale

_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to