Commit Graph

6 Commits

Author SHA1 Message Date
Tobias Urdin 73e35991ff Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: Ica14ddd31fa6be22b0d1f4bed26f266c6d9f660f
2023-01-23 19:22:07 +00:00
Kengo Takahara 3253b13eb9 Add necessary constants and methods for RPC notification
As first step of adding notify functionality to masakari, this patch
adds the necessary constants and methods for RPC notification.

Co-Authored-By: Shilpa Devharakar <Shilpa.Devharakar@nttdata.com>

Change-Id: Iad3f487ef14effb41484014e5426117129543f5c
Partial-Implements: bp notifications-in-masakari
2019-03-03 19:11:39 +05:30
tpatil d471b824ea Update hacking version >1.1.0
Updated hacking version to >1.1.0 and <1.2.0.

Change-Id: I77ff4723fd420fc2f9afe0ca6c3d85d7ae1a28ba
2019-02-18 18:29:45 +09:00
deepakmourya 188173a807 Use get_rpc_transport instead of get_transport
With the added get_rpc_transport() function in oslo.messaging
and the recent version bump of oslo.messaging to 5.24.2, we can
safely replace get_transport() with get_rpc_transport() which is much
cleaner.

Change-Id: If458dde8ce617485adc00dab9da4e72630ae6267
2017-06-28 05:03:06 +00:00
Dinesh Bhor 12ed4c37bd 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
2017-02-09 12:17:15 +05:30
dineshbhor 834c1ae050 Add RPC layer for masakari
This patch will add RPC framework to send notification from
masakari-api to masakari-engine service.

Change-Id: I3c514db1a652834a56efb187b754e336580ca7fc
2016-10-07 13:16:26 +05:30