Bug 1099657 - qpid should be set to auto delete the queues
Summary: qpid should be set to auto delete the queues
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 4.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 4.0
Assignee: Ihar Hrachyshka
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On: 1147154
Blocks: 1081488
TreeView+ depends on / blocked
 
Reported: 2014-05-20 20:49 UTC by Mark Wagner
Modified: 2016-06-07 12:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1147154 (view as bug list)
Environment:
Last Closed: 2015-04-26 11:11:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1318742 0 None None None Never
Launchpad 1374519 0 None None None Never

Description Mark Wagner 2014-05-20 20:49:22 UTC
Description of problem:
By default in Havana, the qpid queues are not set to auto delete. This causes issues when timeouts occur and new queues are created. 

Version-Release number of selected component (if applicable):


How reproducible:
Everytime

Steps to Reproduce:
1. Start a compute node
2. use `qpid-stat -q` to examine queue properties (qpid-stat is in the qpid-tools package) 
3.

Actual results:
queue are not set to auto delete

Expected results:


Additional info:
easiest to change in /usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/impl_qpid.py

See upstream BZ 
https://bugs.launchpad.net/oslo.messaging/+bug/1318742

Comment 2 Mark Wagner 2014-05-29 20:31:26 UTC
Simple change, greatly improves performance, scalability and reliability of system under load

Comment 3 Ihar Hrachyshka 2014-09-29 12:40:20 UTC
As a workaround, we may set amqp_auto_delete = True in neutron-dist.conf until the fix is propagated to our RPC layer code.

Comment 4 Ihar Hrachyshka 2014-09-29 12:41:13 UTC
We do not depend on oslo.messaging team since we have a workaround that can be applied thru neutron-dist.conf

Comment 5 Ihar Hrachyshka 2014-09-29 13:09:29 UTC
I've talked to sileht@ from oslo.messaging cores, and he told me that forcing amqp_auto_delete like that will result in that being set for TopicConsumers too. That will mean that if consumer is dead for a short time, the queue will be dropped. This may result in notifications lost, and other nasty things.

Quoting:

[15:04]  <sileht> ihrachyshka, I think you can loose notifications if nobody consume them, and imagines you restart a nova-compute just when the scheduler ask something to the compute, you will lost the calls, and the caller (scheduler will retry until the compute is back) instead of having the scheduler waiting and the nova-compute restarting where it was stopped
[15:07]  <sileht> ihrachyshka, on small deployement that doesn't consume notification, I think it's doable, but I big one you will create many unuseful message each time you restart something
[15:08]  <sileht> ihrachyshka, for the notification part the rabbit driver have a workaround, that the qpid don't have

So we still need a solution for this from oslo.messaging team. :|

Comment 6 Ihar Hrachyshka 2014-09-29 13:10:25 UTC
Moving to A6 as per Livnat's request. The reasoning is that the bug is internal and is not something any known customer is waiting for.

Comment 7 Ihar Hrachyshka 2014-09-29 15:28:01 UTC
Waiting for oslo.messaging guys to handle the issue in oslo in upstream first.


Note You need to log in before you can comment on or make changes to this bug.