glance using get_transport and not the correct get_notifications_transport for oslo.messaging configuration

Bug #1567231 reported by Juan Antonio Osorio Robles
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Juan Antonio Osorio Robles

Bug Description

This applies mostly for code-correctness. configuring notifications using the standard options in the default group is meant to be deprecated in favor of options in the group oslo_messaging_notifications[1]. So basically what this enables is to be able to use that group to configure the notifications. As a fallback, the default group will still work though.

Usually this is useful to be able to configure a separate vhost and user for notifications and for RPCs; But glance doesn't really have this problem as it's using oslo.messaging only for notifications.

[1] http://docs.openstack.org/developer/oslo.messaging/opts.html#oslo_messaging_notifications.transport_url

Changed in glance:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
Revision history for this message
Kairat Kushaev (kkushaev) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/300313
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=a31b963c1bc6f52cbfd71e29dfa54509b5deadcc
Submitter: Jenkins
Branch: master

commit a31b963c1bc6f52cbfd71e29dfa54509b5deadcc
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Fri Apr 1 08:51:54 2016 +0300

    Use messaging notifications transport instead of default

    The usage of oslo_messaging.get_transport is not meant for
    notifications; And oslo_messaging.get_notification_transport is
    favored for those means. So this change introduces the usage of that
    function.

    If the settings for the notifications are not set with the
    configuration that's under the oslo_messaging_notifications group,
    this will fall back to the old settings which are under the DEFAULT
    group; just like this used to work.

    Closes-Bug: #1567231

    Change-Id: I137d0f98533d8121334e8538d321fb6c7495f35f

Changed in glance:
status: New → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/glance 13.0.0.0b1

This issue was fixed in the openstack/glance 13.0.0.0b1 development milestone.

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.