]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Enable HA proxy to work with fedora
authorGary Kotton <gkotton@redhat.com>
Sun, 3 Mar 2013 13:39:12 +0000 (13:39 +0000)
committerGary Kotton <gkotton@redhat.com>
Sun, 3 Mar 2013 16:34:47 +0000 (16:34 +0000)
Fixes bug 1142133

Change-Id: I0dc02c96efa8d5f8ab693480e510dbbefcc6a674

etc/lbaas_agent.ini
quantum/plugins/services/agent_loadbalancer/agent/manager.py
quantum/plugins/services/agent_loadbalancer/drivers/haproxy/cfg.py

index e3ea75c3d3146dd10b972185451dbf6890a581aa..2242cdc459e519eda33a5bc29c3fd995bce32426 100644 (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
index 9dd2a70d36726249684041ca0c176f7b38001410..f8c002c847fae12f839dc83b23cb231dbb218df3 100644 (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'),
+    ),
 ]
 
 
index 9ea59756ed468f0c5ecdfa92102ba66970d9eb6d..6f22a4d4eab33376db0514b68cf18448efd4e42b 100644 (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'
     ]