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@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.maro...@virtualscale.fr> wrote: > 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 > openstack-...@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
_______________________________________________ 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