Network issues when adding a new external network

asked 2019-03-28 00:09:42 -0500

amkgi gravatar image

I want to add new external network. But when I added new bridge to config openvswitch_agent.ini and restart l3-agent and openvswitch-agent one of the networks stops working. This network in openvswitch uses the same bond as the new network.

New bridge:

Bridge "br-ex2"
    Controller "tcp:127.0.0.1:6633"
    fail_mode: secure
    Port "bond1.83"
        Interface "bond1.83"
    Port "phy-br-ex2"
        Interface "phy-br-ex2"
            type: patch
            options: {peer="int-br-ex2"}
    Port "br-ex2"
        Interface "br-ex2"
            type: internal

Old bridge:

Bridge br-ex
    Controller "tcp:127.0.0.1:6633"
    fail_mode: secure
    Port br-ex
        Interface br-ex
            type: internal
    Port phy-br-ex
        Interface phy-br-ex
            type: patch
            options: {peer=int-br-ex}
    Port "bond1.550"
        Interface "bond1.550"

bond1:

NAME=bond1
BONDING_MASTER=yes
MTU=9000
BOOTPROTO=none
BONDING_OPTS="miimon=100 mode=active-backup"
DEVICE=bond1
TYPE=Bond
ONBOOT=yes
NM_CONTROLLED=no

bond1.550:

DEVICE=bond1.550
NAME=bond1.550
BOOTPROTO=none
ONPARENT=yes
VLAN=yes
NM_CONTROLLED=no

bond1.83:

DEVICE=bond1.83
NAME=bond1.83
BOOTPROTO=none
ONPARENT=yes
VLAN=yes
NM_CONTROLLED=no

openvswitch_agent.ini:

[agent]
tunnel_types = gre,vxlan
l2_population = True

[ovs]
bridge_mappings = external:br-ex,dmz:br-dmz,external2:br-ex2
local_ip = 10.10.21.3

[securitygroup]
firewall_driver = iptables_hybrid

l3_agent.ini:

[DEFAULT]
interface_driver = openvswitch
external_network_bridge =

ml2_conf.ini on controllers:

[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = gre,vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security

[ml2_type_flat]
flat_networks = external,external2,dmz

[ml2_type_gre]
tunnel_id_ranges = 1:1000

[ml2_type_vlan]
network_vlan_ranges = vlan:1000:2999

[ml2_type_vxlan]
vni_ranges = 1001:2999

[securitygroup]
enable_ipset = true

Afther adding extenral2 in openvswitch_agent.ini, "external" not work, but DMZ network works fine. If I delete external2:br-ex2 from openvswitch_agent.ini, "external" start work.

I can't add new network cards to the server and I can't disband bond, we need fault tolerance at the interface level. Maybe I missed something in l3-agent configurations or something else?

edit retag flag offensive close merge delete