Merge "Enable HA proxy to work with fedora"

This commit is contained in:
Jenkins 2013-03-04 02:26:01 +00:00 committed by Gerrit Code Review
commit ed665dc9ba
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'
]