Merge "Remove deprecated aliases of notification options"

This commit is contained in:
Zuul 2025-01-08 11:47:23 +00:00 committed by Gerrit Code Review
commit f3aec8e756
3 changed files with 14 additions and 12 deletions

View File

@ -26,8 +26,6 @@ from oslo_messaging.notify import notifier
LOG = logging.getLogger(__name__)
router_config = cfg.StrOpt('routing_config', default='',
deprecated_group='DEFAULT',
deprecated_name='routing_notifier_config',
help='RoutingNotifier configuration file location.')
CONF = cfg.CONF

View File

@ -30,26 +30,16 @@ from oslo_messaging import transport as msg_transport
_notifier_opts = [
cfg.MultiStrOpt('driver',
default=[],
deprecated_name='notification_driver',
deprecated_group='DEFAULT',
help='The Drivers(s) to handle sending notifications. '
'Possible values are messaging, messagingv2, '
'routing, log, test, noop'),
cfg.StrOpt('transport_url',
deprecated_name='notification_transport_url',
deprecated_group='DEFAULT',
secret=True,
help='A URL representing the messaging driver to use for '
'notifications. If not set, we fall back to the same '
'configuration used for RPC.'),
cfg.ListOpt('topics',
default=['notifications', ],
deprecated_opts=[
cfg.DeprecatedOpt('topics',
group='rpc_notifier2'),
cfg.DeprecatedOpt('notification_topics',
group='DEFAULT')
],
help='AMQP topic used for OpenStack notifications.'),
cfg.IntOpt('retry', default=-1,
help='The maximum number of attempts to re-send a notification '

View File

@ -0,0 +1,14 @@
---
upgrade:
- |
The following deprecated options have been removed. Use the equivalent
options in the ``[oslo_messaging_notifications]`` secion instead.
- ``[DEFAULT] notification_driver``
- ``[DEFAULT] notification_transport_url``
- ``[DEFAULT] notification_topics``
- ``[DEFAULT] routing_config``
- |
The deprecated ``[rpc_notifier2] topics`` option has been removed. Use
the ``[oslo_messaging_notifications] topics`` option instead.