<div dir="ltr">Hi Abbass,<div>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, <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>.</div>

<div><br></div><div>For your question, use the --debug parameter on the nova command to get all the API calls. </div><div><span style="font-family:monospace;font-size:14.545454025268555px">nova --debug hypervisor-servers computeHost1</span><br>

</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 9:17 AM, Abbass MAROUNI <span dir="ltr"><<a href="mailto:abbass.marouni@virtualscale.fr" target="_blank">abbass.marouni@virtualscale.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    <br>
    I'm trying to get the equivalent of the following nova client
    command programmatically :<br>
    <br>
    <big><big><font face="monospace">root@cloudController1:~# nova
          hypervisor-servers computeHost1<br>
+--------------------------------------+-------------------+---------------+---------------------+<br>
          | ID                                   | Name              |
          Hypervisor ID | Hypervisor Hostname |<br>
+--------------------------------------+-------------------+---------------+---------------------+<br>
          | b22fa835-4118-434d-a536-a8q95720a21a | instance-00000030 |
          1             | compute1            |<br>
          | c1778664-e31d-455e-81f2-8776c8a8fa0e | instance-00000031 |
          1             | compute1            |<br>
          | 318d61db-f67c-475c-84a7-a9580bkh53cc | instance-00000035 |
          1             | compute1            |<br>
          | 5f5baaed-f8ca-4161-95eb-cbpopc41b70b | instance-00000039 |
          1             | compute1            |<br>
+--------------------------------------+-------------------+---------------+---------------------+</font></big></big><br>
    <br>
    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.<br>
    <br>
    Thanks,<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <pre cols="72">-- 
--
Abbass MAROUNI
VirtualScale
</pre>
  </font></span></div>

<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>