r/openstack • u/firestorm_v1 • Jun 19 '24
Openstack internal network router doesn't route, what am I missing?
Newly setup Openstack Yoga test environment using Juju, MAAS, and a NetApp controller for volumes. Instance networking is the only thing I'm having a problem with.
I've got a non-admin project called "test" with an internal network called "test_internal" and subnet called "internal_subnet" which is a 192.168.1.x/24 network. I've created a test_router attached to external_network (10.0.200.x/24) and attached to internal_subnet as 192.168.0.1 acting as the default gateway for that subnet.
Instances attached to the internal_subnet get an IP address and can communicate amongst each other as expected but they have no Internet access. They can ping the gateway address. Instances attached to external_network get a 10.0.200.x IP address and can get to the Internet as expected.
I set up a minimal installation of Debian 10 in an instance and attached both internal and external subnets to the instance and configured it to be a simple iptables router. Once iptables loaded, the internal instances had external network and Internet access.
Since this is a test environment for me only, there's only one security group and it's completely wide open. I've reviewed the networking setup part of the Openstack Yoga guide and can't figure out what's going on with the router.
Any ideas or suggestions??
View all comments
Show parent comment
1
u/firestorm_v1 Jun 20 '24
I think you're on to something. I checked the (not ovs-chassis but ovn-chassis) bridge interface mapping and it is indeed correct. It matches the doc and matches MAAS config.
I started mapping the network flow but I think I found where the problem lies. From the instance's eth0 interface, it comes out to a tap interface (specified in the instance's virsh xml) tap03e8612f-4c which I confirmed via tcpdump. It's on the LAN side network of the router and is attached to (br-int).
On the br-int bridge, I see there's a patch to the br0 (external OVN bridge) and it looks like the WAN side of the router is attached to an nonexistent interface:
Therein lies the problem, it looks like openvswitch isn't creating the interface necessary for WAN for the router. I'm not sure why it only affects routers and not instances, but I guess that's the next nut to crack.
For the purposes of troubleshooting, I've marked the other three hypervisors as "down" so thankfully watching the networking is fairly easy as I'm only monitoring one hypervisor. Still though, why is openvswitch trying to reference interfaces that don't exist?