Deprecate support for Neutron LBaaS
This change deprecates the remaining support for Neutron LBaaS. The Neutron LBaaS project has been retired in favor of the independent Octavia project and the current implementation is no longer valid. Change-Id: If6456e8466013440c8d2340225ff56893f0ac37d
This commit is contained in:
parent
4d2ad5bc7a
commit
8917c73964
@ -15,6 +15,7 @@
|
||||
|
||||
import abc
|
||||
import collections
|
||||
import warnings
|
||||
|
||||
from oslo_log import log
|
||||
|
||||
@ -47,6 +48,10 @@ class BaseLBPollster(base.BaseServicesPollster):
|
||||
super(BaseLBPollster, self).__init__(conf)
|
||||
self.lb_version = self.conf.service_types.neutron_lbaas_version
|
||||
|
||||
warnings.warn('Support for Neutron LBaaS has been deprecated '
|
||||
'and will be removed in a future release.',
|
||||
category=DeprecationWarning, stacklevel=3)
|
||||
|
||||
def get_load_balancer_status_id(self, value):
|
||||
if self.lb_version == 'v1':
|
||||
resource_status = self.get_status_id(value)
|
||||
|
@ -27,6 +27,8 @@ SERVICE_OPTS = [
|
||||
help='Neutron service type.'),
|
||||
cfg.StrOpt('neutron_lbaas_version',
|
||||
default='v2',
|
||||
deprecated_for_removal=True,
|
||||
deprecated_reason='Neutron LBaaS has been retired',
|
||||
choices=('v1', 'v2'),
|
||||
help='Neutron load balancer version.')
|
||||
]
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
Support for Neutron LBaaS has been officially deprecated. The feature has
|
||||
been useless since the Neutron LBaaS project was retired.
|
Loading…
x
Reference in New Issue
Block a user