devstack defaults to VXLAN even though ENABLE_TENANT_TUNNELS is False in local.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Invalid
|
Undecided
|
Margaret Frances |
Bug Description
Branch info:
slogan@
* master
slogan@
commit 062e8f14874ab25
Merge: 7f80280 7bb9a73
Author: Jenkins <email address hidden>
Date: Tue Dec 16 22:02:41 2014 +0000
Merge "Adds missing rabbit_userid to trove configs"
commit 7f8028069883b82
Merge: affcf87 dc31f76
Author: Jenkins <email address hidden>
local.conf:
[[local|localrc]]
disable_service n-net
enable_service q-l3
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
enable_service neutron
ADMIN_PASSWORD=
DATABASE_
RABBIT_
SERVICE_
SERVICE_
FIXED_RANGE=
#FLOATING_
#HOST_IP=localhost
HOST_IP=
PUBLIC_
FLAT_INTERFACE=
FLAT_NETWORK_
NETWORK_
FIXED_NETWORK_
SCHEDULER=
Q_PLUGIN=ml2
OFFLINE=True
ACTIVE_TIMEOUT=120
ASSOCIATE_
BOOT_TIMEOUT=120
SERVICE_TIMEOUT=120
EXTRA_OPTS=
# Allow tenants to create vlans
ENABLE_
ENABLE_
ML2_VLAN_
# these are needed fo VLANs for tenants to connect to physical switch
PHYSICAL_
OVS_PHYSICAL_
Q_DHCP_
Notice I don't have Q_ML2_TENANT_
When I run ./stack.sh with the above, I noticed that br-tun is created:
slogan@
2d7ac7cc-
Bridge br-ex
Port br-ex
Port "qg-db338515-8c"
Bridge br-tun
Port br-tun
Port patch-int
Bridge br-int
...
Also, in ml2_conf.ini:
[ml2]
tenant_
type_drivers = local,flat,
mechanism_drivers = openvswitch,
...
The code in question is in devstack/
Q_ML2_TENANT_
# This has to be set here since the agent will set this in the config file
if [[ "$Q_ML2_
Q_TUNNEL_
elif [[ "$ENABLE_
Q_TUNNEL_
fi
The above code sets the tenant network type to vxlan if not specified (as a default). I think the code should account for the ENABLE_
Notice that the wiki has a devstack sample that led me down this path, I'd like to see the code match this wiki by fixing this bug (I think the wiki is fine, it's the script that needs fixing).
Configure devstack for ML2 with VLANs
An example control and compute node localrc file is shown here for configuring ML2 to run with VLANs with devstack. This is equivalent to running the OVS or LinuxBridge plugins in VLAN mode.
Add the following to your control node localrc:
Q_PLUGIN=ml2
ENABLE_
ML2_VLAN_
To set special VLAN parameters for the VLAN TypeDriver, the following variable in localrc can be used. This is a space separate list of assignment values:
Q_ML2_PLUGIN_
(the above is from https:/
Changed in neutron: | |
assignee: | nobody → slogan621 (slogan621) |
affects: | neutron → devstack |
Changed in devstack: | |
assignee: | slogan621 (slogan621) → nobody |
tags: | added: linuxbridge |
tags: | added: neutron |
Changed in devstack: | |
assignee: | Sean M. Collins (scollins) → Margaret Frances (margaret-frances) |
Just ran into this myself. Thanks bug reporter.