]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix deprecated opt in haproxy driver
authorJakub Libosvar <libosvar@redhat.com>
Tue, 29 Jul 2014 10:18:33 +0000 (12:18 +0200)
committerJakub Libosvar <libosvar@redhat.com>
Tue, 29 Jul 2014 11:42:11 +0000 (13:42 +0200)
If Neutron was updated from Havana, lbaas config file defines user_group
and loadbalancer_state_path in default section but since Icehouse these
settings were moved to haproxy section.
This patch adds DEFAULT group to DeprecatedOpt.

Change-Id: Ic92d4bc81ff6a3b16799414d17ac52e7a4801796
Closes-bug: #1349767

neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py

index 967c65e7fbb41913e0ae5a3dea1580cff63da8df..e259dbf7fa5626151108b2c15072953a138a3c10 100644 (file)
@@ -44,13 +44,14 @@ OPTS = [
         'loadbalancer_state_path',
         default=STATE_PATH_DEFAULT,
         help=_('Location to store config and state files'),
-        deprecated_opts=[cfg.DeprecatedOpt('loadbalancer_state_path')],
+        deprecated_opts=[cfg.DeprecatedOpt('loadbalancer_state_path',
+                                           group='DEFAULT')],
     ),
     cfg.StrOpt(
         'user_group',
         default=USER_GROUP_DEFAULT,
         help=_('The user group'),
-        deprecated_opts=[cfg.DeprecatedOpt('user_group')],
+        deprecated_opts=[cfg.DeprecatedOpt('user_group', group='DEFAULT')],
     ),
     cfg.IntOpt(
         'send_gratuitous_arp',