Qpid: There is no flag to make queues durable

Bug #1033915 reported by Yokose Akihito
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Medium
Paul Mathews

Bug Description

I'd like to make qpid queues durable for the following scenario:
 1. nova-compute stop
 2. nova boot
 3. qpidd restart
 4. nova-compute start
(Make sure that vm status is active.)

I found it necessary to modify queue init settings for queue persistency.
a) 'durable' should be 'True'
b) 'auto-delete' should be 'False'

a) is needed to make journal files for each queue.
b) is needed not to delete journal files when queue is ordered to delete.

However, there is no flags on impl_qpid.py, and above settings are hard-coded.
So, I have to modify impl_qpid.py directly for persistency.
I wonder how to make queues durable?
(There is FLAGS.rabbit_durable_queues on impl_carrot.py, FYI.)

Environment:
nova: stable/essex

AMQP:
 qpidd (0.14-2)
 qpidd-msgstore (0.12)

Settings for Qpid:
1) /etc/qpid/qpidd.acl
#acl deny all all
acl allow all all

Settings for persistent:
1) /etc/qpid/qpidd.conf
load-module=/usr/lib/qpid/daemon/msgstore.so
store-dir=/var/spool/qpid

summary: - Qpid: Deleted fanout queues still open too many journal files
+ Qpid: There is no flag to make queues durable
description: updated
description: updated
Revision history for this message
Russell Bryant (russellb) wrote :

If you've figured out the place to change, a patch would be great.

I suppose an option makes sense for this, but I think we may want to set it as the default. It does have a performance impact, but I really don't think the Qpid broker is going to be a bottleneck in a nova install.

affects: nova → openstack-common
Changed in openstack-common:
assignee: nobody → Russell Bryant (russellb)
status: New → Confirmed
assignee: Russell Bryant (russellb) → nobody
Mark McLoughlin (markmc)
affects: openstack-common → oslo
Mark McLoughlin (markmc)
Changed in oslo:
importance: Undecided → Medium
Revision history for this message
Salman Baset (salman-h) wrote :

Any update on this? For production, it is necessary to have the ability to turn on/off durability option.

Revision history for this message
Michael Still (mikal) wrote :

Hi Salman. No one is currently assigned to this bug, which means its not actively being worked on. If you need this fixed soon, you might be best off email openstack-dev and asking if someone has the time to help.

Revision history for this message
Michael H Wilson (geekinutah) wrote :

@Slaman

I'm going to write a patch for Bluehost's codebase this week. I'll see if I can get it into trunk.

Changed in oslo:
assignee: nobody → Michael H Wilson (geekinutah)
Paul Mathews (pmathews)
Changed in oslo:
assignee: Michael H Wilson (geekinutah) → Paul Mathews (pmathews)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (master)

Fix proposed to branch: master
Review: https://review.openstack.org/29617

Changed in oslo:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/29617
Committed: http://github.com/openstack/oslo-incubator/commit/5ff534d15a136decd6d076fc1f2cd066806843c9
Submitter: Jenkins
Branch: master

commit 5ff534d15a136decd6d076fc1f2cd066806843c9
Author: Paul Mathews <email address hidden>
Date: Fri Jul 12 15:24:54 2013 -0600

    Add config for amqp durable/auto_delete queues

    This patch makes two new config options (amqp_durable_queues and
    amqp_auto_delete) that enable durable and auto delete queues in amqp.

    Fixes: bug #1033915
    DocImpact
    Change-Id: I56e5c92f1ed8ac2d429a306f3f38a963f0138c6c

Changed in oslo:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → havana-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/44923

Thierry Carrez (ttx)
Changed in oslo:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.