From dc5dd89152a1b2167e60a2c14c9df1b9cf027d87 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 8 Nov 2021 23:55:00 +0900 Subject: [PATCH] Deprecate support for Neutron FWaaS ... because the Neutron FWaaS project was already retired. Change-Id: I678fa793ed1c325e7f1f4df25cd6ad9fd384f2a9 --- ceilometer/network/services/fwaas.py | 16 ++++++++++++++++ ...deprecate-neutron-fwaas-e985afe956240c08.yaml | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 releasenotes/notes/deprecate-neutron-fwaas-e985afe956240c08.yaml diff --git a/ceilometer/network/services/fwaas.py b/ceilometer/network/services/fwaas.py index 7b82761359..7b80a91929 100644 --- a/ceilometer/network/services/fwaas.py +++ b/ceilometer/network/services/fwaas.py @@ -13,6 +13,8 @@ # License for the specific language governing permissions and limitations # under the License. +import warnings + from oslo_log import log from ceilometer.i18n import _ @@ -32,6 +34,13 @@ class FirewallPollster(base.BaseServicesPollster): 'firewall_policy_id', ] + def __init__(self, conf): + super(FirewallPollster, self).__init__(conf) + + warnings.warn('Support for Neutron FWaaS has been deprecated ' + 'and will be removed in a future release.', + category=DeprecationWarning, stacklevel=3) + @property def default_discovery(self): return 'fw_services' @@ -72,6 +81,13 @@ class FirewallPolicyPollster(base.BaseServicesPollster): 'audited', ] + def __init__(self, conf): + super(FirewallPolicyPollster, self).__init__(conf) + + warnings.warn('Support for Neutron FWaaS has been deprecated ' + 'and will be removed in a future release.', + category=DeprecationWarning, stacklevel=3) + @property def default_discovery(self): return 'fw_policy' diff --git a/releasenotes/notes/deprecate-neutron-fwaas-e985afe956240c08.yaml b/releasenotes/notes/deprecate-neutron-fwaas-e985afe956240c08.yaml new file mode 100644 index 0000000000..7c7945839f --- /dev/null +++ b/releasenotes/notes/deprecate-neutron-fwaas-e985afe956240c08.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + Support for Neutron FWaaS has been officially deprecated. The feature has + been useless since the Neutron FWaaS project was retired.