Ask Your Question

cannot ping instance in devstack

asked 2016-12-17 05:12:07 -0500

sgdgp gravatar image

I have installed openstack using devstack.

The horizon is at

I created an instance named 'vm1' directly connected to the public network(which I can ping). But unfortunately I am not able to ping into the ip associated with the vm1.

The ip created by public network is and the ip given to vm1 is

I can ping to but not into Please help me out.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-12-19 18:13:27 -0500

updated 2016-12-20 00:08:38 -0500

In devstack, the public network is created without DHCP. Neutron has assigned an IP address to the instance, but there is no DHCP server that tells the instance what its IP is.

You can double-check this by checking the instance's console log openstack console log show. If it's a Cirros instance, it should tell you its IP address. Most likely, however, you will see how it tries to acquire an IP address and gives up after a while. If it's not Cirros, and if the console log is not conclusive, open an interactive console using the URL in openstack console url show and check the IP settings. In the interactive console, you can also set the IP address manually and check if the instance is accessible this way.

Of course, you also need to open ICMP in the instance's security group(s), as mentioned above.

edit flag offensive delete link more


You could also try to enable DHCP with openstack subnet set --dhcp public-subnet. On my DevStack, DHCP works on public. On the other hand, the instance doesn't reach the metadata service. Generally I wouldn't connect an instance to public on DevStack.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-20 00:16:37 -0500 )edit

answered 2016-12-18 04:46:51 -0500

KeepTriin gravatar image

I'm not sure about devstack, but a couple of things to check.

Is IP forwarding enabled on your host ( I think it probably is because you can ping the 172. 24.4.1 address, but it might be worth checking.

Is ICMP included in any security groups associated with the instance?

OpenStack has allocated an IP address to the instance, but has the instance obtained/configured it? Can you check the port configuration for the instance? Is your image using cloud-init? Is your metadata service working correctly? Can you login to the console of the instance through horizon and check your interface?

No answers here directly I'm afraid, but that's where I'd start looking.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2016-12-17 05:12:07 -0500

Seen: 930 times

Last updated: Dec 20 '16