r/openstack • u/G3EK22 • Dec 02 '22
Connect VM’s to one of the computes/network node network VLAN (bridge)
Hello everyone,
I am currently working with Kolla-ansible to install Openstack (master branch) using all-in-one. I successfully installed openstack with main components. Neutron is using openvswitch with DVR, it seems to be working very well (vm’s can reach public internet, floatingip on vm’s are accessible from outside, vm’s can reach each other on the same network). I now need to connect some specific VM’s to a specific VLAN.
My server have 2 network card with two ports each (eth2/eth3 (bond0) and eth0/eth1 (bond1).
I have created multiples vlans on bond1 to correctly separate the traffic for openstack services and bond0 is completely dedicated to provider network. In those vlans, I have one vlan (vlan10, 10.0.10.0/24) that I would like to connect to some vm’s in openstack.
How can I do that?
I tried multiple things:
removing eth1 from bond1, to create a second network provider but this time not for public, but private ip’s, it didnt worked.
creating one veth pair. One side on the snat of the network that the vms is connected on (using the namespace created by openstack) and the other side the the bridge used on my compute/network node where the vlan is tagged and enabling masquerade, but it also didnt worked.
countless desperate way of connecting them…
Maybe I miss implemented one of the solution I tried if it should have worked, please help me!
2
u/fydrah Dec 02 '22
To understand, your vlan 10 in only configured for eth2/3 (bond1), and you want to both use this vlan from your host and from your VM?
If it is, I think you could use an ovs bridge over your bond1 (e.g. br-vlan), manage your several vlans interfaces from ovs --> https://docs.openvswitch.org/en/latest/faq/vlan/ (warning when configuring it, you will break network access to your host if your ssh network access is on one of those vlan), declare the br-vlan in ml2 bridge mapping and use an openstack vlan provider network over it to make the vlan 10 available to your VMs (not sure I explain it well..)
Also if you have a schema of what you want to achieve it could help!
1
1
u/G3EK22 Dec 07 '22
Here is an example : Network Diagram
Like I said I have a br-mgmt that I want to share with one of the VMs. The Diagram might not be perfect, but it is giving an idea of what I want to do.
br-ex1 is on br-vxlan
br-ex2 is on br-mgmt
3
u/dasbierclaw Dec 02 '22
If your VMs can successfully connect to the Internet right now, that implies that you've got an interface connected to the provider bridge (ie. br-ex) and have created at least 1 working (external) provider network. Was that a VLAN or FLAT based network? Normally in this case I would just say: create a new neutron network using segmentation ID 10 and VLAN type, and ensure the allocation pool doesn't step on anything that's already in that VLAN/subnet. If you're creating multiple flat networks things get a little trickier, but it's hard to say without knowing the details of the environment.
Can you share details of the existing networks you've created (OpenStack network show) and maybe the output of 'ovs-vsctl show' from the compute node(s)?