[Openstack] [openstack-dev] [Nova][API] Programmatic access to hypervisor servers
Anne Gentle
anne at openstack.org
Thu Jul 17 14:57:41 UTC 2014
Hi Abbass,
Odd as it seems, the -dev list is for making OpenStack, not consuming it as
a developer. So I'm copying you and writing back to the openstack list,
openstack at lists.openstack.org.
For your question, use the --debug parameter on the nova command to get all
the API calls.
nova --debug hypervisor-servers computeHost1
On Thu, Jul 17, 2014 at 9:17 AM, Abbass MAROUNI <
abbass.marouni at virtualscale.fr> wrote:
> 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
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140717/0a4808d0/attachment.html>
More information about the Openstack
mailing list