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 edited Jun 20 '24
That's a good point about taking them out of service, I've got nova and cinder entries marked as "down" (openstack compute service set --disable nodeXX; openstack volume service set --disable nodeXX) and I've paused the ovn-chassis units in Juju (juju run-action ovn-chassis/X pause).
To answer your questions:
1:
2: br0 exists in /etc/netplan/50-cloud-init.yaml and has the IP address for this host assigned. It is also set to use ens160 as dictated in MAAS. The instructions I followed (under Create OVS Bridge section) said to create a br-ex bridge, to more closely match the real production cluster, I named it "br0".
3: juju config ovn-chassis bridge-interface-mappings indicates "br0:ens160" (ens160 is the physical nic on the nodes, br0 is per the instructions linked in #2 above).
4: juju config ovn-chassis ovn-bridge-mappings shows "physnet1:br0" as per the instructions here (under Neutron Networking)
5: tcpdump is quiet on br0 and ens160, using icmp in the filter.
I also noticed something else that's worth mentioning in the process of collecting information, if I run "openstack port list" with the router and instance spun up, I see two ports are active and two ports that are down. The active ports are the LAN side interface of the router (192.168.0.1), the LAN side interface of the instance (192.168.0.182), and the down ports are 192.168.0.2 (not sure what this goes to) and the WAN side of the router (10.0.100.x). I have a feeling this is why the router can't route, it's WAN is down.
The down WAN port baffles me, instances attached to the same WAN network come up perfectly, but it looks like routers are a no-go.
Edited to add:
I tried to use hotsos, but it didn't seem to work. First it complained about being installed as a snap and can only run against a sosreport, so I generated a sosreport (which is now just 'sos report -a'), then all it wanted to do is complain that [DATA_ROOT] doesn't exist. Even when explicitly told that the directory exists (and confirmed with file, lsattr, and stat), it still just wanted to complain that it didn't.