Ask Your Question
0

ovs-vsctl add-port causes external interface failure

asked 2014-08-13 02:31:26 -0600

Dr.Bruce gravatar image

Following OpenStack Installation Guide for Red Hat Enterprise Linux, CentOS, and Fedora - ICEHOUSE. At stage Configure Networking, and configuring network node. When execute ovs-vsctl add-port br-ex p7p1, the external interface breaks in that it will not accept inbound traffic. When the port is deleted, the interface works again.

When the port is added, ifup fails to bring interface up, but if interface is up when port is added, outbound trafic works but not inbound.

Following instructions at http://docs.openstack.org/icehouse/install-guide/install/yum/content/neutron-ml2-network-node.html (http://docs.openstack.org/icehouse/in...)

Started with Fedora 20 minimal install, using network (instead of NetworkManager), running virtual machines under VirtualBox. The external interface is using a virtualBox bridged network adapter, using DHCP.

edit retag flag offensive close merge delete

Comments

Please, post ifcfg-br-ex, ifcfg-p7p1 locating under /etc/sysconfig/network-scripts.

dbaxps gravatar imagedbaxps ( 2014-08-13 03:34:14 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-13 11:26:46 -0600

dbaxps gravatar image

updated 2014-08-14 00:46:37 -0600

Disable NetworkManager and enable service network. Create files under /etc/sysconfig/network-scripts

[root@openstack network-scripts(keystone_admin)]# cat ifcfg-br-ex
DEVICE="br-ex"
BOOTPROTO="static"
IPADDR="192.168.1.135"
NETMASK="255.255.255.0"
DNS1="83.221.202.254"
BROADCAST="192.168.1.255"
GATEWAY="192.168.1.1"
NM_CONTROLLED="no"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT=no
ONBOOT="yes"
TYPE="OVSBridge"
DEVICETYPE="ovs"

In my particular case ifcfg-p7p1 was responsible for active ethernet interface p7p1.

[root@openstack network-scripts(keystone_admin)]# cat ifcfg-p7p1
DEVICE="p7p1"
# HWADDR=90:E6:BA:2D:11:EB
ONBOOT="yes"
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE=br-ex
NM_CONTROLLED=no
IPV6INIT=no

# service network restart

Verify ovs-vsctl show. Snapshot is done on CentOS 7.

[root@icehouse1 ~(keystone_admin)]# ovs-vsctl show
2742fa6e-78bf-440e-a2c1-cb48242ea565
    Bridge br-tun
        Port "vxlan-c0a80089"
            Interface "vxlan-c0a80089"
                type: vxlan
                options: {in_key=flow, local_ip="192.168.0.127", out_key=flow, remote_ip="192.168.0.137"}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
Bridge br-ex <= OVS BRIDGE
    Port br-ex  
        Interface br-ex
            type: internal
    Port "enp2s0" <= OVS PORT
        Interface "enp2s0"
 Port "qg-76f29fee-9c"
        Interface "qg-76f29fee-9c"
            type: internal
    Port phy-br-ex
        Interface phy-br-ex
    Port "qg-a2977315-9e"
        Interface "qg-a2977315-9e"
            type: internal
Bridge br-int
    Port patch-tun
        Interface patch-tun
            type: patch
            options: {peer=patch-int}
    Port br-int
        Interface br-int
            type: internal
    Port "qr-8cad61e3-ce"
        tag: 1
        Interface "qr-8cad61e3-ce"
            type: internal
    Port "tap4978023a-43"
        tag: 2
        Interface "tap4978023a-43"
            type: internal
    Port int-br-ex
        Interface int-br-ex
    Port "tapff8659ee-8d"
        tag: 1
        Interface "tapff8659ee-8d"
            type: internal
    Port "qr-585b2180-b1"
        tag: 2
        Interface "qr-585b2180-b1"
            type: internal
ovs_version: "2.0.0"

On F20, CentOS ifcfg-br-int should be already created by packstack installation:-

[root@icehouse network-scripts]# ls
ifcfg-br-ex   ifdown       ifdown-post      ifup          ifup-ovs     ifup-Team
ifcfg-br-int  ifdown-bnep  ifdown-ppp       ifup-aliases  ifup-plip    ifup-TeamPort
ifcfg-br-tun  ifdown-eth   ifdown-routes    ifup-bnep     ifup-plusb   ifup-tunnel
ifcfg-enp2s0  ifdown-ippp  ifdown-sit       ifup-eth      ifup-post    ifup-wireless
ifcfg-enp5s1  ifdown-ipv6  ifdown-Team      ifup-ippp     ifup-ppp     init.ipv6-global
ifcfg-enp5s2  ifdown-isdn  ifdown-TeamPort  ifup-ipv6     ifup-routes  network-functions
ifcfg-lo      ifdown-ovs   ifdown-tunnel    ifup-isdn     ifup-sit     network-functions-ipv6
[root@icehouse network-scripts]# cat ifcfg-br-int
DEVICE=br-int
DEVICETYPE=ovs
TYPE=OVSBridge
ONBOOT=yes
OVSBOOTPROTO=none
edit flag offensive delete link more

Comments

Thanks, that seemed to fix it. (but stops working when fire up compute node - need to look further)

Now ovs-csctl show gives

df71f717-2a15-42c4-bec1-b13612156862
    Bridge br-ex
        Port "p7p1"
            Interface "p7p1"
        Port br-ex
            Interface br-ex
                type: internal
    Bridge br-int
        Port br-int
            Interface br-int
                type: internal
    ovs_version: "2.1.2"

Do I need a ifcfg-br-int to define the internal bridge?

Dr.Bruce gravatar imageDr.Bruce ( 2014-08-13 18:30:33 -0600 )edit

On F20, CentOS ifcfg-br-int should already created by packstack installation:-

[root@icehouse network-scripts]# ls
ifcfg-br-ex   ifdown       ifdown-post      ifup          ifup-ovs     ifup-Team
ifcfg-br-int  ifdown-bnep  ifdown-ppp       ifup-aliases  ifup-plip    ifup-TeamPort
ifcfg-br-tun  ifdown-eth   ifdown-routes    ifup-bnep     ifup-plusb   ifup-tunnel
ifcfg-enp2s0  ifdown-ippp  ifdown-sit       ifup-eth      ifup-post    ifup-wireless
ifcfg-enp5s1  ifdown-ipv6  ifdown-Team      ifup-ippp     ifup-ppp     init.ipv6-global
ifcfg-enp5s2  ifdown-isdn  ifdown-TeamPort  ifup-ipv6     ifup-routes  network-functions
ifcfg-lo      ifdown-ovs   ifdown-tunnel    ifup-isdn     ifup-sit     network-functions-ipv6
[root@icehouse network-scripts]# cat ifcfg-br-int
DEVICE=br-int
DEVICETYPE=ovs
TYPE=OVSBridge
ONBOOT=yes
OVSBOOTPROTO=none
dbaxps gravatar imagedbaxps ( 2014-08-14 00:25:03 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-13 02:31:26 -0600

Seen: 2,552 times

Last updated: Aug 14 '14