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:
Takashi Kajinami 2021-11-08 23:49:40 +09:00
parent 4d2ad5bc7a
commit 8917c73964
3 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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.')
]

View File

@ -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.