Initial Setup of DevStack Networking - Cannot ping/ssh

asked 2020-02-21 03:09:50 -0600

dz gravatar image

updated 2020-02-21 21:50:03 -0600

Hi All..I have deployed devstack (all-in-one VM) to start dig more on openstack lab. Dashboard and CLI able to operate and I can create new instance but the problem here I cannot ping/ssh. I have added policy icmp to default group but no luck. This devstack is fresh installation and I haven't do anything/config on the openstack network, no router create or no new subnet created... everything is totally based on local.conf during deployment. Here is the networks:- public public-subnet ipv6-public-subnet 2001:db8::/64 No Yes Active UP nova shared shared-subnet Yes No Active UP nova No router add as I'm not sure what to do now... My dashboard is ( is my lan network) and I able to launch dashboard. New instance created have IP even from the host vm also I'm not able to ping the instance or ssh to instance.

Below is the instance details:- test1 Ubuntu1604 public, 2001:db8::315 shared ds1G - Active nova None Running Some more... I'm not able (got error) to associate the instance with floating IP which I think it related back to the network above that is not properly setup. Need help as I'm new to openstack and love to work with it. Thank you

Below is the ifconfig of host running the devstack VM.

[stack@devstack ~]$ ifconfig br-ex: flags=4163<up,broadcast,running,multicast> mtu 1500 inet netmask broadcast inet6 fe80::2cae:a2ff:fe93:1e4e prefixlen 64 scopeid 0x20<link> inet6 2001:db8::2 prefixlen 64 scopeid 0x0<global> ether 2e:ae:a2:93:1e:4e txqueuelen 1000 (Ethernet) RX packets 58 bytes 17440 (17.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 49 bytes 2838 (2.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth0: flags=4163<up,broadcast,running,multicast> mtu 1496 inet netmask broadcast inet6 fe80::f816:3eff:fe86:96f4 prefixlen 64 scopeid 0x20<link> ether fa:16:3e:86:96:f4 txqueuelen 1000 (Ethernet) RX packets 3160051 bytes 3658079471 (3.4 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1239616 bytes 95156721 (90.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<up,loopback,running> mtu 65536 inet netmask inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1 (Local Loopback) RX packets 1770077 bytes 5325653705 (4.9 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1770077 bytes 5325653705 (4.9 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

tap62f83b56-7e: flags=4163<up,broadcast,running,multicast ... (more)

edit retag flag offensive close merge delete


It seems to me that you launched your instance on the public network, which most probably doesn't have a dhcp server. Thus, the instance doesn't get an IP address.

You can check for dhcp with openstack network show public. You can also check the instance's console log if it received an address.

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-21 06:02:12 -0600 )edit

I suppose you can't associate a floating IP because the instance is connected to the public network. Remember that floating IPs are taken from public-subnet - and your instance has such an address already!

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-21 06:03:39 -0600 )edit

Hi.. I delete all instances, create router link public-private, add icmp policy, create new cirros instance with private ip( and than add floating ip ( Test ping is not available. No success so far... Pls need help. Thanks

dz gravatar imagedz ( 2020-02-21 21:55:41 -0600 )edit

Your public-subnet is, and the floating IP is How is that possible?

You ping from where?

Note that is a private address range that doesn't work on the internet. By default, Devstack uses it for a fake external network.

Bernd Bausch gravatar imageBernd Bausch ( 2020-02-21 23:29:12 -0600 )edit

My local.conf HOST_IP= - my lan subnet FLAT_INTERFACE=eth0 FIXED_RANGE= FIXED_NETWORK_SIZE=4096 FLOATING_RANGE= Anyway I just noticed 192.168.233.x is not in local.conf and this is subnet is set as shared(tenant). Ping from host VM. Thanks

dz gravatar imagedz ( 2020-02-22 02:02:53 -0600 )edit