Introduce environment variable to disable neutron agents

Currently, when tacker is enabled, some neutron agents are
automatically enabled.

In some case, those are not needed in the same node that tacker is
running.

Change-Id: Iff4daa862a596cdef4ed569c805a2c1e9657ea9a
Closes-Bug: #1548141
This commit is contained in:
Yuuichi Fujioka 2016-01-25 10:43:23 +09:00
parent 7ac2ac1ea2
commit 39b152d02b
2 changed files with 18 additions and 4 deletions

View File

@ -2,14 +2,18 @@
disable_service n-net
VIRT_DRIVER=libvirt
enable_service q-l3
#enable_service q-lbaas
#enable_service q-fwaas
# TACKER_NEUTRON_AGENTS can be disabled by adding
# TACKER_NEUTRON_AGENTS='' in local.conf if neutron agents are running on a separate node
TACKER_NEUTRON_AGENTS=${TACKER_NEUTRON_AGENTS:-q-agt,q-dhcp,q-meta,q-l3}
for i in $(echo $TACKER_NEUTRON_AGENTS | sed 's/,/ /g')
do
enable_service $i
done
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
enable_service neutron
# Heat

View File

@ -56,3 +56,13 @@ Install from Liberty
$ stack.sh
Multi Node Environment
~~~~~~~~~~~~~~~~~~~~~~
In a multi-node devstack environment where controller, network and compute nodes are separate, some
neutron agents should not be installed in the controller node. In such cases, use the following
local.conf setting to disable neutron agents in the controller node. ::
[[local|localrc]]
TACKER_NEUTRON_AGENTS=''