[Bug 1708008] Re: rabbitmq-server 3.5.7-1ubuntu0.16.04.2 security update dumped durable queues for autopkgtest.ubuntu.com

 Christian Ehrhardt  1708008 at bugs.launchpad.net
Fri Jun 15 10:03:27 UTC 2018


Wit hthe help of the upstream IRC I found that the durable queue only makes the queue durable.
As outlined in my former [1].

TL;DR I need to persist the messages on publish.
In my example that is

 channel.basic_publish(exchange='',
-                      routing_key='hello',
-                      body='Hello World!')
+                      routing_key='hellod',
+                      body='Hello World!',
+                      properties=pika.BasicProperties(
+                         delivery_mode = 2, # make message persistent
+                      ))
 print(" [x] Sent 'Hello World!'")
 connection.close()


With that it survives a restart

root at x:~# ./send.py 
 [x] Sent 'Hello World!'
root at x:~# ./send.py 
 [x] Sent 'Hello World!'
root at x:~# rabbitmqctl list_queues name durable messages
Listing queues ...
hellod  true    2
root at x:~# systemctl restart rabbitmq-server
root at x:~# rabbitmqctl list_queues name durable messages
Listing queues ...
hellod  true    2
root at x:~# ./receive.py 
 [x] Received 'Hello World!'
 [x] Received 'Hello World!'

@Iain have we lost messages that were in persistent deliver mode or
might that have been what happened?

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to rabbitmq-server in Ubuntu.
https://bugs.launchpad.net/bugs/1708008

Title:
  rabbitmq-server 3.5.7-1ubuntu0.16.04.2 security update dumped durable
  queues for autopkgtest.ubuntu.com

Status in rabbitmq-server package in Ubuntu:
  Invalid

Bug description:
  A rabbitmq-server security update was released today.  This was auto-
  applied to the rabbitmq server that serves autopkgtest.ubuntu.com, and
  as a result, it appears that all the messages that were in the queue
  at the time were dropped.

  According to Iain Lane, we are using durable queues in rabbitmq, so
  this should not have happened.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/1708008/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list