<div dir="ltr">Does "nova hypervisor-show" help? It already include the host ip address.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-29 21:26 GMT+08:00 Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/29/2014 06:51 AM, Lingxian Kong wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Stackers:<br>
<br>
As for now, we can get the 'host name', 'service' and 'availability<br>
zone' of a host through the CLI command 'nova host-list'. But as a<br>
programmer who communicates with OpenStack using its API, I want to<br>
get the host ip address, in order to perform some other actions in my<br>
program.<br>
<br>
And what I know is, the ip address of a host is populated in the<br>
'compute_nodes' table of the database, during the 'update available<br>
resource' periodic task.<br>
<br>
So, is it possible of the community to support it in the future?<br>
<br>
I apologize if the topic was once covered and I missed it.<br>
</blockquote>
<br></span>
Hi!<br>
<br>
I see no real technical reason this could not be done. It would require waiting until all of the API microversioning bits are done, and a micro-increment of the API, along with minimal changes of code in the hosts extension to return the host_ip field from the nova.objects.ComputeNode objects returned to the HostController object.<br>
<br>
Are you interested in working on such a feature? I would be happy to guide you through the process of making a blueprint and submitting code if you'd like. Just find me on IRC #openstack-nova. My IRC nick is jaypipes.<br>
<br>
Best,<br>
-jay<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks,<br><br></div>Jay<br></div></div>
</div>