instance ip from compute node [closed]

asked 2019-04-29 07:05:53 -0500

sanjay khuntia gravatar image

Hi All, I was wondering if there is a way to get instance ip address from the compute host. I can run virsh commands like - virsh domifaddr instance_name on my compute host (ubuntu 16), but it is not showing any ip address for the VM which can be seen from horizon dashboard. fyi, I have a devstack setup with multiple compute hosts.

#virsh domifaddr instance-00000002
 Name       MAC address          Protocol     Address
-------------------------------------------------------------------------------

Also other ways of using virsh to find VM ip is not working like the above.

Please let me know if it possible to fetch VM ip address if I am using kvm/qemu as hypervisor in my setup.

thanks for your reply.

best regards,

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sanjay khuntia
close date 2019-04-29 11:52:43.228638

Comments

1

I use the python-openstackclient on the compute nodes, sourcing respective credentials (openrc) I can run nova list etc. You have at least the nova client on your compute node, so that should also work.

eblock gravatar imageeblock ( 2019-04-29 08:14:30 -0500 )edit

Thanks eblock for your reply. nova list --all-tenants solved my issue.

sanjay khuntia gravatar imagesanjay khuntia ( 2019-04-29 11:52:04 -0500 )edit