network-ovn with devstack deployed failed because of no bridge br-int/br-tun/br-ex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Deploying devstack with networking-ovn following with the doc http://
Traceback below here:
2016-03-14 09:40:16.002 | cd datapath/linux && make modules_install
2016-03-14 09:40:16.007 | make[1]: Entering directory `/opt/stack/
2016-03-14 09:40:16.008 | make -C /lib/modules/
2016-03-14 09:40:16.343 | make[2]: Entering directory `/usr/src/
2016-03-14 09:40:16.362 | INSTALL /opt/stack/
2016-03-14 09:40:16.470 | Can't read private key
2016-03-14 09:40:16.472 | INSTALL /opt/stack/
2016-03-14 09:40:16.500 | Can't read private key
2016-03-14 09:40:16.502 | INSTALL /opt/stack/
2016-03-14 09:40:16.529 | Can't read private key
2016-03-14 09:40:16.531 | INSTALL /opt/stack/
2016-03-14 09:40:16.560 | Can't read private key
2016-03-14 09:40:16.562 | INSTALL /opt/stack/
2016-03-14 09:40:16.592 | Can't read private key
2016-03-14 09:40:16.594 | INSTALL /opt/stack/
2016-03-14 09:40:16.621 | Can't read private key
2016-03-14 09:40:16.635 | DEPMOD 3.10.0-
2016-03-14 09:40:20.978 | make[2]: Leaving directory `/usr/src/
2016-03-14 09:40:20.978 | depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' /lib/modules/
2016-03-14 09:40:21.313 | make[1]: Leaving directory `/opt/stack/
2016-03-14 09:40:21.333 | modprobe: FATAL: Module openvswitch is in use.
2016-03-14 09:40:21.335 | Error on exit
2016-03-14 09:40:21.831 | ovs-vsctl: unix:/usr/
2016-03-14 09:40:21.842 | ovs-ofctl: br-int is not a bridge or a socket
2016-03-14 09:40:21.852 | ovs-ofctl: br-tun is not a bridge or a socket
2016-03-14 09:40:21.862 | ovs-ofctl: br-ex is not a bridge or a socket
2016-03-14 09:40:21.873 | ovs-ofctl: br-int is not a bridge or a socket
2016-03-14 09:40:21.884 | ovs-ofctl: br-tun is not a bridge or a socket
2016-03-14 09:40:21.894 | ovs-ofctl: br-ex is not a bridge or a socket
In this process , stack.sh will install openvswitch when processing neutron, then it will uninstall openvswitch and make && make install openvswitch from ovs code source again.
Because of uninstalling of openvswitch, br-int and other brigeds loss from ovs, so the following networking-ovn process come accross the error that no bridges br-int/
Environment:
CentOs 7.1 & kernel version 3.10.0-
local.conf of devstack is just a copy of networking-
#
# Sample DevStack local.conf.
#
# This sample file is intended to be used for your typical DevStack environment
# that's running all of OpenStack on a single host. This can also be used as
# the first host of a multi-host test environment.
#
# No changes to this sample configuration are required for this to work.
#
[[local|localrc]]
HOST_IP=127.0.0.1
# OFFLINE=True
LOGFILE=
LOG_COLOR=True
SCREEN_
DATABASE_
RABBIT_
SERVICE_
SERVICE_
ADMIN_PASSWORD=
disable_service tempest
enable_service horizon
# The DevStack plugin defaults to using the ovn branch from the official ovs
# repo. You can optionally use a different one. For example, you may want to
# use the latest patches in blp's ovn branch:
#OVN_REPO=http://
#OVN_BRANCH=
enable_plugin networking-ovn https:/
enable_service ovn-northd
enable_service ovn-controller
# Use Neutron instead of nova-network
disable_service n-net
enable_service q-svc
# OVN currently uses the conventional DHCP and metadata agents. For
# single-node deployments, enable them on the controller node. For
# multi-node deployments, consider disabling them on the controller
# node and enabling them on the compute node(s) to provide a more
# realistic environment. For more information, see
# computenode-
enable_service q-dhcp
enable_service q-meta
# We have to disable the neutron L2 agent. OVN does not use the L2 agent.
disable_service q-agt
# How to connect to ovsdb-server hosting the OVN databases.
#OVN_REMOTE=
# A UUID to uniquely identify this system. If one is not specified, a random
# one will be generated and saved in the file 'ovn-uuid' for re-use in future
# DevStack runs.
#OVN_UUID=
# Whether to enable using OVN's L3 functionality. If this value is disabled,
# OpenStack will use the q-l3 functionality. If you set OVN_L3_MODE to False,
# you must also enable the q-l3 service.
# By default OVN_L3_MODE is True
#OVN_L3_MODE=False
#enable_service q-l3
disable_service q-l3
# Whether or not to build custom openvswitch kernel modules from the ovs git
# tree. This is enabled by default. This is required unless your distro kernel
# includes ovs+conntrack support. This support was first released in Linux 4.3,
# and will likely be backported by some distros.
#OVN_BUILD_
# If you enable the DHCP agent, configure it to provide a route for
# metadata to instances.
ENABLE_
# Enable two DHCP agents per neutron subnet with support for availability
# zones. Requires a multi-node deployment.
#[[post-
#[DEFAULT]
#network_
#dhcp_load_type = networks
#dhcp_agents_
# If you enable the DHCP agent, you can configure the availability
# zone name (default is nova).
#[[post-
#[AGENT]
#availability_zone = nova
probable fix solutions:
1. provent install openvswitch and leave it installed when processing network-ovn
2. start openvswitch
3. create bridges br-int/be-tun/br-ex
4. ovs-ofctl ***
description: | updated |
description: | updated |
Changed in networking-ovn: | |
status: | New → Confirmed |
Changed in networking-ovn: | |
status: | Confirmed → Invalid |
Thanks for the report!
I know this is working successfully on Fedora 23 and Ubuntu 14.04, but it has been a whlie since I've tried it on CentOS. This could be CentOS specific. I'll try to reproduce. Was anything running on this system before you ran devstack, or is this a fresh environment?
In any case, preventing the ovs package from being installed and then immediately uninstalled again would be an improvement.