r/openstack • u/stoebich • Sep 23 '24
Kolla-Ansible: External L2 Networks
I have somewhat successfully deployed a kolla-ansible single node openstack cluster. After some tinkering most of it seem to work perfectly fine with one exception: getting my vlans into openstack.
My network layout is quite simple, it consists of 2 VLANs: server and client. The server VLAN is on tag 20, client on 10. Both are routed through opnsense and work as expected outside of openstack. Now I'm trying to set openstack up to use them in a similar fashion as vmware does it.
I've configured external networks in the globals.yaml, followed a few tutorials and blogposts on how to get external vlans into openstack and messed with a few of the configs. But I can't wrap my head around on how this should be done properly. I've seen references to neutrons ml2_conf.ini and a few config changes here and there, but none have really solved my issue (or i didnt understand it properly)
Does anyone have a proer guide/blogpost/docs entry on hand on how to solve this? I seem to be unable to find all the right knobs an switches to turn.
3
u/tafkamax Sep 23 '24
You need to add them as provider networks.
This is pretty much - allowed list of vlans.
The vlan driver needs to be present.
We use only a single 'br-ex' bridge for outbound connections. I am not the person how ran kolla-ansible and I don't know so much about OVN.
If you create a provider network with a specific VLAN you need to provide the vlan ID for it.
The previous block is written here: https://docs.openstack.org/mitaka/networking-guide/deploy-ovs-provider.html
While doing
openstack network createyou need to specify the segmentation_id which needs to be 10 (Client VLAN)1
u/Mysterious-Lemon1603 Sep 30 '24
u/stoebich : Were you able to solve this issue ?
I was also looking at overriding ml2 and l3 plugins in kolla ansible, seems there not much documentations available online.
2
u/clx8989 Sep 24 '24
In globals.yml you need to specify: neutron_bridge_name: “br-ex1,br-ex2” and then you create the provider networks with network type vlan, physical network physnet[1,2] and segmentation id 10 respectively 20
Sorry for the formatting, but the ios client is “missing” the buttons for format