OpenStack library for messaging
Go to file
Hervé Beraud 82281a0d4e Correctly handle missing RabbitMQ queues
Currently, setting the '[oslo_messaging] direct_mandatory_flag' config
option to 'True' (the default) will result in a 'MessageUndeliverable'
exception being raised when sending a reply if a RabbitMQ queue is
missing [1]. It was the responsibility of the application to handle
this exception, however, many applications are not doing so. This has
resulted in a number of bug reports.

Start handling this error condition, using a retry loop to attempt to
resend the message and work around any temporary glitches. Since
attempting to send a reply will will no longer raise an exception,
there is little benefit in retaining the '[oslo_messaging]
direct_mandatory_flag' config option: users setting this to False will
simply not benefit from the retry logic and improved logging added
here. This option is already deprecated though and will be fully
removed in a future release.

[1] https://www.rabbitmq.com/channels.html

Change-Id: Id5cddbefbe24ef100f1cc522f44430df77d217cb
Closes-Bug: #1905965
(cherry picked from commit 4937949dff)
(cherry picked from commit 391ce7fc69)
(cherry picked from commit 36b5e06c92)
2021-03-15 13:17:17 +01:00
doc Correctly handle missing RabbitMQ queues 2021-03-15 13:17:17 +01:00
etc Fix spelling typo in output 2015-09-24 18:11:22 +08:00
oslo_messaging Correctly handle missing RabbitMQ queues 2021-03-15 13:17:17 +01:00
playbooks OpenDev Migration Patch 2019-04-19 19:31:51 +00:00
releasenotes Correctly handle missing RabbitMQ queues 2021-03-15 13:17:17 +01:00
tools Simplify tools/test-setup.sh 2020-07-02 16:44:18 +02:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-18 17:20:09 +05:30
.gitignore Clean up .gitignore references to personal tools 2018-10-15 11:49:38 +08:00
.gitreview Update .gitreview for stable/train 2019-09-20 16:34:16 +00:00
.stestr.conf Switch to stestr 2018-07-04 08:33:49 +07:00
.zuul.yaml Dropping lower constraints testing 2021-02-17 14:42:25 +01:00
CONTRIBUTING.rst Optimize the link address 2017-04-08 22:39:02 +08:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 22:54:02 +08:00
LICENSE Add oslo.messaging project infrastructure 2013-06-15 08:43:50 +01:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-26 10:31:26 +08:00
babel.cfg Setup for translation 2014-06-05 22:48:44 +02:00
bindep.txt Simplify tools/test-setup.sh 2020-07-02 16:44:18 +02:00
requirements.txt Implement mandatory flag for RabbitMQ driver 2019-07-01 21:38:32 +02:00
setup-test-env-kafka.sh Download kafka from archive.apache.org 2019-06-10 15:35:43 +00:00
setup.cfg Add Python 3 Train unit tests 2019-07-05 14:47:53 -04:00
setup.py Updated from global requirements 2017-12-13 05:01:29 +00:00
test-requirements.txt Cap Bandit below 1.6.0 and update Sphinx requirement 2019-05-14 10:46:32 +02:00
tox.ini Dropping lower constraints testing 2021-02-17 14:42:25 +01:00

README.rst

Team and repository tags

image

Oslo Messaging Library

Latest Version

Downloads

The Oslo messaging API supports RPC and notifications over a number of different messaging transports.