summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHervé Beraud <hberaud@redhat.com>2021-01-18 14:14:21 +0100
committerHervé Beraud <hberaud@redhat.com>2021-03-15 13:17:12 +0100
commita0aa3a88a370c33baf733fff39de8722e4c7e3e3 (patch)
treea8d74ab5f31c193edc8bb3caa4d2f9244aa7931f
parent72ad2823b28a73eb1cd1285d29de20a645d81b00 (diff)
downloadoslo-messaging-a0aa3a88a370c33baf733fff39de8722e4c7e3e3.tar.gz
Deprecate the mandatory flag
It will not be possible to deactivate this functionality anymore. Change-Id: I1cbafff03349f7da9224de46285707fbf2a81a68 (cherry picked from commit 2b89d97888c9b6cd8b4f23e5ae7ce3103d5f9e5b) (cherry picked from commit 06ad070cc6dbe72d1f96c529f7bd193dbae383f5) (cherry picked from commit 5f2a4f21d0a9988e4a939f2092a523956b4d4583)
-rw-r--r--oslo_messaging/_drivers/impl_rabbit.py10
-rw-r--r--releasenotes/notes/disable-mandatory-flag-a6210a534f3853f0.yaml5
2 files changed, 12 insertions, 3 deletions
diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py
index 3504197..504fb71 100644
--- a/oslo_messaging/_drivers/impl_rabbit.py
+++ b/oslo_messaging/_drivers/impl_rabbit.py
@@ -170,10 +170,14 @@ rabbit_opts = [
'we check the heartbeat.'),
cfg.BoolOpt('direct_mandatory_flag',
default=True,
- help='Enable/Disable the RabbitMQ mandatory flag '
- 'for direct send. The direct send is used as reply, '
+ deprecated_for_removal=True,
+ deprecated_reason='Mandatory flag no longer deactivable.',
+ help='(DEPRECATED) Enable/Disable the RabbitMQ mandatory '
+ 'flag for direct send. The direct send is used as reply, '
'so the MessageUndeliverable exception is raised '
- 'in case the client queue does not exist.'),
+ 'in case the client queue does not exist.'
+ 'This flag is deprecated and it will not be possible to '
+ 'deactivate this functionality anymore'),
cfg.BoolOpt('enable_cancel_on_failover',
default=False,
help="Enable x-cancel-on-ha-failover flag so that "
diff --git a/releasenotes/notes/disable-mandatory-flag-a6210a534f3853f0.yaml b/releasenotes/notes/disable-mandatory-flag-a6210a534f3853f0.yaml
new file mode 100644
index 0000000..3c14aad
--- /dev/null
+++ b/releasenotes/notes/disable-mandatory-flag-a6210a534f3853f0.yaml
@@ -0,0 +1,5 @@
+---
+upgrade:
+ - |
+ Deprecating the ``direct_mandatory_flag``. It will not be possible to
+ deactivate this functionality anymore.