Ask Your Question
0

OVS bridge br-ex to Ethernet loses network connectivity

asked 2016-12-20 14:25:20 -0500

segaps gravatar image

updated 2016-12-21 04:00:43 -0500

Hey all,

So trying to follow a http://www.tecmint.com/openstack-networking-guide (guide) in regards to setting up an Openstack instance. But I keep running into issues when trying to bridge the NIC to the OVS br-ex.

So my ifcfg-enp1s0f0 looks like this

TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="no"
IPV6_AUTOCONF="no"
IPV6_DEFROUTE="no"
IPV6_FAILURE_FATAL="no"
NAME="enp1s0f0"
DEVICE="enp1s0f0"
ONBOOT="yes"
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE="br-ex"
NM_CONTROLLED="no"

the ifcfg-br-ex

TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="no"
IPV6_AUTOCONF="no"
IPV6_DEFROUTE="no"
IPV6_FAILURE_FATAL="no"
NAME="br-ex"
UUID="not-sure-if-this-is-supposed-to-be-secret"
DEVICE="br-ex"
ONBOOT="yes"
IPADDR="172.16.2.99"
PREFIX="24"
GATEWAY="172.16.2.1"
DNS1="127.0.0.1"
DNS2="172.16.2.1"
DNS3="8.8.8.8"
IPV6_PEERDNS="no"
IPV6_PEERROUTES="no"
IPV6_PRIVACY="no"

Once I run

systemctl restart network.service

We lose connection to the box and only have terminal access..

If anyone could help it'd be much appreciated given the server room is freezing cold and I hate having to sit in there debugging :'(

From some cold debugging... Running ip a from the terminal results in

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    inet6 fe80::ec4:7aff:fed2:9c36/64 scope link
        valid_lft forever preferred_lft forever
3: enp1s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
4: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 96:bb:b2:19:41:8f brd ff:ff:ff:ff:ff:ff
5: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN qlen 1000
    link/ether 32:ee:d8:83:97:44 brd ff:ff:ff:ff:ff:ff
    inet 172.16.2.99/24 brd 172.16.2.255 scope global br-ex
       valid_lft forever preferred_lft forever
    inet6 fe80::30ee:d8ff:fe83:9744/64 scope link
       valid_lft forever preferred_lft forever
6: qg-88f6b26c-e9: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether fe:0b:01:99:6a:d0 brd ff:ff:ff:ff:ff:ff
7: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 66:4a:48:84:6e:46 brd ff:ff:ff:ff:ff:ff
8: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 2a:78:f1:24:b2:4b brd ff:ff:ff:ff:ff:ff

I've also tried adding

NM_CONTROLLED=no

to both files and also added

defroute=no

to the enp1s0f0 interface . Still no joy each time I lose ... (more)

edit retag flag offensive close merge delete

Comments

If 172.16.2.99 is correct, https://www.rdoproject.org/networking... and http://blog.scottlowe.org/2013/02/07/... might help with your troubleshooting. I would have a closer look at the br-ex configuration (ovs-vsctl show etc)

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-20 17:53:30 -0500 )edit

Cheers for the reply , I edited the post to show ovs-vsctl output ... Does that look normal/expected ?

segaps gravatar imagesegaps ( 2016-12-21 03:31:40 -0500 )edit

The only interface with an IP address is br-ex. And I don't see any physical interface (enp*) plugged into that bridge. That explains why you have no connectivity. I suppose ifcfg-enp1s0f0 should connect enp1s0f0 to br-ex, but it doesn't seem to work. As to why - I can't tell.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-21 04:29:24 -0500 )edit

Oh well , no worries I'll keep hammering away at it. Really appreciate you giving up your time to try and debug . Thank you

segaps gravatar imagesegaps ( 2016-12-21 04:46:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-12-21 08:29:53 -0500

dbaxps gravatar image

updated 2016-12-21 08:41:26 -0500

I am not willing to fix every your typo . Working sample here:-

Up on packstack completion on Network Node create following files , designed to match created by installer external network


[root@ip-192-169-142-147 network-scripts]# cat ifcfg-br-ex
DEVICE="br-ex"
BOOTPROTO="static"
IPADDR="172.24.4.229"
NETMASK="255.255.255.240"
DNS1="83.221.202.254"
BROADCAST="172.24.4.239"
GATEWAY="172.24.4.225"
NM_CONTROLLED="no"
TYPE="OVSIntPort"
OVS_BRIDGE=br-ex
DEVICETYPE="ovs"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT=no

[root@ip-192-169-142-147 network-scripts]# cat ifcfg-eth2
DEVICE="eth2"
ONBOOT="yes"
TYPE="OVSPort"
DEVICETYPE="ovs"
OVS_BRIDGE=br-ex
NM_CONTROLLED=no
IPV6INIT=no

Next step to be performed on Network Node :-


# chkconfig network on
# systemctl stop NetworkManager
# systemctl disable NetworkManager
# service network restart
edit flag offensive delete link more

Comments

Cheers, Also found an issue that there was an odd route in route -n which when removed helped

segaps gravatar imagesegaps ( 2016-12-21 10:33:23 -0500 )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: 2016-12-20 14:25:20 -0500

Seen: 898 times

Last updated: Dec 21 '16