Hi
I am deploying ansible using kolla-ansible.
I am trying to add multiple VLAN-s as separate provider networks, so each team gets their own provider network. I am stuck at the point, that nothing works really. I am getting generic openstack errors. I am posting my setup just somebody could help verify that I understand things correctly.
1. Compute Host setup
My compute host is also hosting neutron.
#/etc/netplan/compute-conf.yaml
network:
bonds:
bond0:
dhcp4: true
dhcp6: false
interfaces:
- enp65s0f0np0
- enp65s0f1np1
macaddress: redacted
nameservers:
addresses:
- redacted
- redacted
parameters:
down-delay: 200
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer3+4
up-delay: 4000
bond1:
interfaces:
- enp129s0f0np0
- enp129s0f1np1
parameters:
down-delay: 200
lacp-rate: fast
mii-monitor-interval: 100
mode: 802.3ad
transmit-hash-policy: layer3+4
up-delay: 4000
ethernets:
enp129s0f0np0: {}
enp129s0f1np1: {}
enp65s0f0np0: {}
enp65s0f1np1: {}
renderer: networkd
version: 2
vlans:
bond1.100:
id: 100
link: bond1
bond1.101:
id: 101
link: bond1
bond1.102:
id: 102
link: bond1
bond1.18:
id: 18
link: bond1
bond1.4:
id: 4
link: bond1
bond1.51:
id: 51
link: bond1
bond1.8:
id: 8
link: bond1
bond1.96:
id: 96
link: bond1
bond1.97:
id: 97
link: bond1
bond1.98:
id: 98
link: bond1
bond1.99:
id: 99
link: bond1
As you can see I have 2 different bonds on the compute.
bond0 - mgmt/backend - Access port to specifiy vlan bond1 - tenant/provider network for VM-s - Trunk port with all the VLAN-s specified allowed
2. OpenStack Neutron config
Using kolla-ansible I have added the networks as so.
#globals.yml
neutron_plugin_agent: "ovn"
neutron_external_interface: "bond1.100,bond1.101,bond1.102,bond1.15,bond1.18,bond1.4,bond1.51,bond1.8,bond1.96,bond1.97,bond1.98,bond1.99"
neutron_bridge_name: "br-ex100,br-ex101,br-ex102,br-ex15,br-ex18,br-ex4,br-ex51,br-ex8,br-ex96,br-ex97,br-ex98,br-ex99"
# ml2_conf.ini
ml2_type_flat]
flat_networks = physnet100,physnet101,physnet102,physnet15,physnet18,physnet4,physnet51,physnet8,physnet96,physnet97,physnet98,physnet99
[ovs]
bridge_mappings = physnet100:br-ex100,physnet101:br-ex101,physnet102:br-ex102,physnet15:br-ex15,physnet18:br-ex18,physnet4:br-ex4,physnet51:br-ex51,physnet8:br-ex8,physnet96:br-ex96,physnet97:br-ex97,physnet98:br-ex98,physnet99:br-ex99
# In the compute-host where neutron resides
# docker exec openvswitch_vswitchd ovs-vsctl show
# I have now removed most of the VLAN-s for testing purposes.
Bridge br-ex1
fail_mode: standalone
Port br-ex1
Interface br-ex1
type: internal
Port bond1
Interface bond1
Bridge br-ex2
fail_mode: standalone
Port br-ex2
Interface br-ex2
type: internal
Port bond1.102
Interface bond1.102
Bridge br-int
fail_mode: secure
datapath_type: system
Port br-int
Interface br-int
type: internal
Port ovn-tln-in-0
Interface ovn-tln-in-0
type: geneve
options: {csum="true", key=flow, remote_ip="192.168.18.19"}
Port ovn-tln-in-1
Interface ovn-tln-in-1
type: geneve
options: {csum="true", key=flow, remote_ip="192.168.18.18"}
For testing I changed the bond1 default to not be VLAN1. I changed it to VLAN15 so if traffic without vlan tag comes through it is added by the physical switch ot vlan15, that is why it is now just bond1 for br-ex1.
My question is. Do I need to do VLAN tagging some other way or is this correct?
Docs Used
https://docs.openstack.org/kolla-ansible/latest/reference/networking/neutron.html
https://www.reddit.com/r/openstack/comments/11rq3j6/kolla_ansible_host_networking_setup/
https://moonpiedumplings.github.io/projects/build-server-2/#neutron
https://docs.openstack.org/mitaka/networking-guide/deploy-ovs-provider.html
EDIT:
Got it working. Thanks OverjoyedBanana for the suggestion! Add the VLAN-s via OVN is the way to go.