Skip to content

Commit

Permalink
Merge "Deprecate support for Neutron LBaaS"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Nov 15, 2021
2 parents 872ce50 + 8917c73 commit e00943f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ceilometer/network/services/lbaas.py
Expand Up @@ -15,6 +15,7 @@

import abc
import collections
import warnings

from oslo_log import log

Expand Down Expand Up @@ -47,6 +48,10 @@ def __init__(self, conf):
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)
Expand Down
2 changes: 2 additions & 0 deletions ceilometer/neutron_client.py
Expand Up @@ -27,6 +27,8 @@
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.')
]
Expand Down
@@ -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.

0 comments on commit e00943f

Please sign in to comment.