Merge "Deprecate support for Neutron LBaaS"

This commit is contained in:
Zuul 2021-11-15 13:24:10 +00:00 committed by Gerrit Code Review
commit e00943f94e
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.