masakari-engine gives future_warning for access_policy

Bug #1662540 reported by Dinesh Bhor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
masakari
Fix Released
Undecided
Dinesh Bhor

Bug Description

masakari-engine gives following future_warning for access_policy at service start.

FutureWarning: The access_policy argument is changing its default
value to <class 'oslo_messaging.rpc.dispatcher.DefaultRPCAccessPolicy'>
in version '?', please update the code to explicitly set None as the
value: access_policy defaults to LegacyRPCAccessPolicy which exposes
private methods. Explicitly set access_policy to DefaultRPCAccessPolicy
or ExplicitRPCAccessPolicy.

Changed in masakari:
assignee: nobody → Dinesh Bhor (dinesh-bhor)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to masakari (master)

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

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

Reviewed: https://review.openstack.org/430887
Committed: https://git.openstack.org/cgit/openstack/masakari/commit/?id=12ed4c37bd206e23a61c0b9bf3b3d77b6aee5038
Submitter: Jenkins
Branch: master

commit 12ed4c37bd206e23a61c0b9bf3b3d77b6aee5038
Author: Dinesh Bhor <email address hidden>
Date: Sat Feb 4 17:08:45 2017 +0530

    Set access_policy for messaging's dispatcher

    oslo.messaging allow dispatcher to restrict endpoint methods since
    5.11.0 in d3a8f280ebd6fd12865fd20c4d772774e39aefa2, set with
    DefaultRPCAccessPolicy to fix FutureWarning like:

    FutureWarning: The access_policy argument is changing its default
    value to <class 'oslo_messaging.rpc.dispatcher.DefaultRPCAccessPolicy'>
    in version '?', please update the code to explicitly set None as the
    value: access_policy defaults to LegacyRPCAccessPolicy which exposes
    private methods. Explicitly set access_policy to DefaultRPCAccessPolicy
    or ExplicitRPCAccessPolicy.

    Closes-Bug: 1662540
    Change-Id: I36fdf6f568dc2a10891c9d89f8488038af6c2d00

Changed in masakari:
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.