How to ping instance's internal network from Host on Devstack

asked 2020-03-09 04:41:20 -0500

timgr gravatar image

I am running Devstack on my machine and i would like to know if it is possible to ping an instance from Host. The default external network of Devstack is 172.24.4.0/24 and br-ex on Host has the IP 172.24.4.1. I launch an instance using the internal network of Devstack (192.168.233.0/24) and the instance gets the IP 192.168.233.100. My Host's IP is 192.168.1.10. Is there a way to ping 192.168.233.100 from my Host? Another thing i thought is to boot up a VM directly to the external network (172.24.4.0/24) but the VM does not boot up correctly. I can only use that network for associating floating IP's.

I have edited the security group and i have allowed ICMP and SSH, so this is not a problem.

edit retag flag offensive close merge delete

Comments

If your goal is to ping the instance, research the floating ip concept. You need to get a floating IP and associated it with the VM. The commands are openstack floating ip create and openstack server add floating ip. The floating IP address will be from the 172.24.4.0/24 range.

Bernd Bausch gravatar imageBernd Bausch ( 2020-03-09 05:18:38 -0500 )edit

If your goal is to ping an address from a tenant network, I think you can create a route to 192.168.233.0/24 on the host, though I am not sure via which interface. However this totally defeats the concept of tenant networks and would only work on an all-in-one server I believe.

Bernd Bausch gravatar imageBernd Bausch ( 2020-03-09 05:21:11 -0500 )edit

My goal is not just a ping. The best for me would be to SSH into this machine using the IP of Devstack's internal network (192.168.233.100). I only use ping to test the connectivity. But with floating IP, ping works. That is reasonable.

timgr gravatar imagetimgr ( 2020-03-09 06:22:03 -0500 )edit

Replying to your 2nd comment, i cannot add such a route because i do not have an interface on the Host that belong to the network 192.268.233.0/24 and i cannot create one because this network cannot be seen outside Devstack. I just want to find a way to expose this network so it can be seen by Host.

timgr gravatar imagetimgr ( 2020-03-09 06:23:44 -0500 )edit

You are not supposed to have connectivity to Neutron networks (a.k.a. tenant networks). This is part of the design. Floating IPs are the mechanism to provide access to such instances.

Bernd Bausch gravatar imageBernd Bausch ( 2020-03-09 06:24:55 -0500 )edit