get_transport mis-use when messaging backends are separated

Bug #1680192 reported by Andy Smith
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Medium
Andy Smith

Bug Description

With the ability to separate RPC and Notification messaging backends, the API should be uniform with respect to retrievel of associated transports:

get_rpc_transport
get_notifiation_transport

The current get_transport has the potential for mis-use based on configuration or an incorrect association to notifier.

See:
https://review.openstack.org/452793/

Andy Smith (ansmith-t)
Changed in oslo.messaging:
assignee: nobody → Andy Smith (ansmith-t)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/454194
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=ec4d6639bc7556afaf439d261b716818b02a1605
Submitter: Jenkins
Branch: master

commit ec4d6639bc7556afaf439d261b716818b02a1605
Author: Andrew Smith <email address hidden>
Date: Thu Apr 6 09:47:34 2017 -0400

    Add get_rpc_transport call

    The get_rpc_transport wraps get_transport to unify the API in
    anticipation of comprehensive separation of RPC and Notification
    messaging backends.

    Related-Bug: 1680192
    Change-Id: Ic6af07b98ff43806c2af38a3ba129991f1e0ec86

Revision history for this message
Ken Giusti (kgiusti) wrote :

oslo.messaging must also issue a 'deprecated' warning (via debtcollector) when it detects an rpc transport being used for a notification client/server, and vice versa.

Changed in oslo.messaging:
importance: Undecided → Medium
tags: added: oslo-debt-cleanup queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to oslo.messaging (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/501488

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/501488
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=03b6f18f80b11e7067b94759c5da6a75f839bed7
Submitter: Jenkins
Branch: master

commit 03b6f18f80b11e7067b94759c5da6a75f839bed7
Author: Rajath Agasthya <email address hidden>
Date: Wed Sep 6 14:58:32 2017 -0700

    Warn when wrong transport instance is used

    Since RPC and notifications can have different backends, it is
    useful to warn users if they use a notification transport in RPC
    and vice versa. This patch introduces RPCTransport and
    NotificationTransport subclasses of Transport, so it's easier to
    add different behavior for them if need be.

    Related-Bug: #1680192
    Change-Id: Iab60544d69053c8e74c28a2d5c84665be749013f

Ben Nemec (bnemec)
Changed in oslo.messaging:
status: New → In Progress
Revision history for this message
Ken Giusti (kgiusti) wrote :

All the changes for this have landed.
The old get_transport() call has been marked deprecated for removal since Pike.

Changed in oslo.messaging:
status: In Progress → Fix Released
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.