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
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
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
This patch will add RPC framework to send notification from
masakari-api to masakari-engine service.
Change-Id: I3c514db1a652834a56efb187b754e336580ca7fc