Enable HA proxy to work with fedora

Fixes bug 1142133

Change-Id: I0dc02c96efa8d5f8ab693480e510dbbefcc6a674
This commit is contained in:
Gary Kotton 2013-03-03 13:39:12 +00:00
parent efe86e7759
commit 039c609c95
3 changed files with 12 additions and 2 deletions

View File

@ -22,3 +22,6 @@ device_driver = quantum.plugins.services.agent_loadbalancer.drivers.haproxy.name
# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and
# iproute2 package that supports namespaces).
# use_namespaces = True
# The user group
# user_group = nogroup

View File

@ -44,7 +44,12 @@ OPTS = [
cfg.StrOpt(
'interface_driver',
help=_('The driver used to manage the virtual interface')
)
),
cfg.StrOpt(
'user_group',
default='nogroup',
help=_('The user group'),
),
]

View File

@ -18,6 +18,8 @@
import itertools
from oslo.config import cfg
from quantum.agent.linux import utils
from quantum.plugins.common import constants as qconstants
from quantum.plugins.services.agent_loadbalancer import constants
@ -64,7 +66,7 @@ def _build_global(config, socket_path=None):
opts = [
'daemon',
'user nobody',
'group nogroup',
'group %s' % cfg.CONF.user_group,
'log /dev/log local0',
'log /dev/log local1 notice'
]