[openstack-dev] [Nova][API] Programmatic access to hypervisor servers
Abbass MAROUNI
abbass.marouni at virtualscale.fr
Thu Jul 17 14:17:57 UTC 2014
Hi all,
I'm trying to get the equivalent of the following nova client command
programmatically :
root at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140717/6d5ff3ae/attachment.html>
More information about the OpenStack-dev
mailing list