Glance AMQP should use multiple rabbit hosts

Bug #1308104 reported by Vladimir Kuklin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Bogdan Dobrelya

Bug Description

Currently we use single AMQP host for glance. We should change it to multiple hosts as we did for nova and other services using oslo.messaging library.

Revision history for this message
Nadya Privalova (nprivalova) wrote :

During testing we have found out that glance-api.conf doesn't contain all rabbit info: user/password, hosts, info for working with notifications. So Glance doesn't send notifications now. It affects Ceilometer output for Glance.

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bogdan Dobrelya (bogdando)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

The suggested patch assumes glance to use single AMQP host and passes missed connection info as well. The issues is what I cannot find any multiple rabbit_hosts configuration options in glance-api.conf example and source code in upstream). Please elaborate, how it could be implemented.

Dmitriy Borodaenko referenced this patch https://review.openstack.org/57678 as multiple AMQP support, but I'm not sure how should I use a single rabbit_host config option for multiple ones (there is none changes in the patch with rabbit_host usage at all). Or should I just put multiple hosts "host:port, host:port" formatted strings into the rabbit_host?

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

Bogdan, you can refer here for the rabbit options supported by oslo.messaging:
https://github.com/openstack/oslo.messaging/blob/master/oslo/messaging/_drivers/impl_rabbit.py#L39

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

For the reference, this issue was originally raised here:
http://lists.openstack.org/pipermail/openstack-dev/2014-April/032425.html

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

I cannot find rabbit_hosts option for multiple AMQP rabbit hosts in glance sources & conf example. Looks like it was not synced.

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Ok, looks like rabbit_hosts option is configurable despite the fact it was missed in config example. So I will use it then. Thanks.

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/88329
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=7a3f93c535a2317d6df73f00ae296380aa66aa63
Submitter: Jenkins
Branch: master

commit 7a3f93c535a2317d6df73f00ae296380aa66aa63
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Apr 17 17:54:00 2014 +0300

    Use rabbitmq notifications for glance

    * Add support for rabbit_hosts and rabbit_ha_queues for glance.
    * Qpid support is TODO (sync it from upstream as well, then we start to support it again)
    * glance::notify::rabbitmq is synced from master trunc puppet-glance in upstream
      * synced its rspecs as well
      * applied a patch in order to fix some existing issues in upstream

    Closes bug: #1308104

    Change-Id: Ie7e29aa8c9427ec890f7247b6e93116e7dd83b0c
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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