Ask Your Question
0

Devstack virtual router can't ping any LAN ip addresses

asked 2020-04-17 08:56:20 -0500

eltaccabro gravatar image

I have difficult with accessing Openstack VM's on my LAN:

  1. I have setup single machine (192.168.1.240) opensatck using devstack on my LAN, so all VM's are running inside this machine

  2. i have another machine (windows laptop) connected to my home router (192.168.1.13)

  3. My machine(192.168.1.240) has one network wifi card (wls1) and I have configured neutron in the local.conf as:

PUBLIC_INTERFACE=wls1
Q_USE_SECGROUP=True
FLOATING_RANGE="192.168.1.0/24" 
Q_FLOATING_ALLOCATION_POOL=start=192.168.1.250,end=192.168.1.254
PUBLIC_NETWORK_GATEWAY="192.168.1.1"
# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

on project demo i have:

  • the public network with public-subnet 192.168.1.0/24 and Gateway IP 192.168.1.1 (as my home router gateway)

  • the virtual router (router1) has the IP (external gateway) 198.168.1.254

  • my VM instance have private ip 10.0.0.13

what i can do

  • Devstack machine(192.168.1.240) can ping VM(10.0.0.13).

  • VM can ping the gateway ip 192.168.1.1 and the virtual router 198.162.1.254

  • My windows laptop (192.168.1.13) can ping the virtual router 198.162.1.254

  • Virtual router can ping the gateway:

#

stack@devstack:~/devstack$ sudo ip netns exec qrouter-70eeb25a-1b49-49e3-b60d-a8ce48abb3f6 ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.789 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=0.098 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=0.139 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=64 time=0.096 ms
  • virtual router can ping the DHCP namespace at 10.0.0.2

what i can't do

  • I can't access internet from VM(10.0.0.13 which is auto assigned IP), can't ping 8.8.8.8

  • I can't ping LAN machine(192.168.1.13) from VM.

  • Virtual router can't access internet, can't ping 8.8.8.8

  • Virtual router can't ping LAN machine(192.168.1.13):

#

stack@openstack:~/devstack$ sudo ip netns exec qrouter-70eeb25a-1b49-49e3-b60d-a8ce48abb3f6 ping 192.168.1.13
PING 192.168.1.13 (192.168.1.13) 56(84) bytes of data.
From 192.168.1.254 icmp_seq=1 Destination Host Unreachable
From 192.168.1.254 icmp_seq=2 Destination Host Unreachable
From 192.168.1.254 icmp_seq=3 Destination Host Unreachable
From 192.168.1.254 icmp_seq=4 Destination Host Unreachable

what am i wrong? why the virtual router can't connect to my home router and therefore can't ping my windows laptop and the external internet network?

please help me, i'm going crazy :(

edit retag flag offensive close merge delete

Comments

Check if your external interface wls1 is plugged into br-ex, and if br-ex has IP address 198.168.1.254.

Did you restart the Devstack host by any chance? Devstack was never meant to support restart, and at least up to Stein, Devstack didn't make br-ex configuration persistent.

Bernd Bausch gravatar imageBernd Bausch ( 2020-04-17 20:06:14 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-04-21 14:41:46 -0500

eltaccabro gravatar image

after devstack installation i have on route -n this:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 br-ex
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-ex
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

andi if I add the route 198.168.1.254 on br-ex as:

sudo ip route replace 10.0.0.0/22 via 192.168.1.254

I lost the connectivity on the devstack machine

edit flag offensive delete link more

Comments

Did you check the things I recommended?

The routing to your tenant network 10.0.0.0/22 is done in a network namespace, not on br-ex.

Bernd Bausch gravatar imageBernd Bausch ( 2020-04-22 00:05:45 -0500 )edit

thank you for your answer but i resolved with this thread https://ask.openstack.org/en/question/103749/devstack-auto-reconfigure-br-ex-bridge/ (https://ask.openstack.org/en/question...)

eltaccabro gravatar imageeltaccabro ( 2020-05-08 09:58:38 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-04-17 08:56:20 -0500

Seen: 44 times

Last updated: Apr 17