Initial Setup of DevStack Networking - Cannot ping/ssh

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

dz gravatar image

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

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 172.24.10.0/24 ipv6-public-subnet 2001:db8::/64 No Yes Active UP nova shared shared-subnet 192.168.233.0/24 Yes No Active UP nova No router add as I'm not sure what to do now... My dashboard is 10.10.24.100 (10.10.24.0/24 is my lan network) and I able to launch dashboard. New instance created have IP 172.24.10.80. 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 172.24.10.80, 2001:db8::315 shared 192.168.233.7 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 172.24.10.1 netmask 255.255.255.0 broadcast 0.0.0.0 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 10.10.24.100 netmask 255.255.255.0 broadcast 10.10.24.255 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 127.0.0.1 netmask 255.0.0.0 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

Comments

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 -0500 )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 -0500 )edit

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

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

Your public-subnet is 172.24.10.0/24, and the floating IP is 172.16.10.4? How is that possible?

You ping from where?

Note that 172.16.0.0/16 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 -0500 )edit

My local.conf HOST_IP=10.10.24.100 - my lan subnet FLAT_INTERFACE=eth0 FIXED_RANGE=10.4.128.0/20 FIXED_NETWORK_SIZE=4096 FLOATING_RANGE=172.24.10.0/24 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 -0500 )edit