On 12/27/18 8:22 PM, Thành Nguyễn Bá wrote:
Dear all,
I have a problem when use 'notification listener' oslo-message for HA Openstack.
It raise 'oslo_messaging.exceptions.MessageDeliveryFailure: Unable to connect to AMQP server on 172.16.4.125:5672 <http://172.16.4.125:5672/> after inf tries: Exchange.declare: (406) PRECONDITION_FAILED - inequivalent arg 'durable' for exchange 'nova' in vhost '/': received 'false' but current is 'true''.
How can i fix this?. I think settings default in my program set 'durable' is False so it can't listen RabbitMQ Openstack?
It probably depends on which rabbit client library you're using to listen for notifications. Presumably there should be some way to configure it to set durable to True. I guess the other option is to disable durable queues in the Nova config, but then you lose the contents of any queues when Rabbit gets restarted. It would be better to figure out how to make the consuming application configure durable queues instead.
This is my nova.conf
http://paste.openstack.org/show/738813/
And section [oslo_messaging_rabbit]
[oslo_messaging_rabbit] rabbit_ha_queues = true rabbit_retry_interval = 1 rabbit_retry_backoff = 2 amqp_durable_queues= true
*Nguyễn Bá Thành*
*Mobile*: 0128 748 0391
*Email*: bathanhtlu@gmail.com <mailto:bathanhtlu@gmail.com>