neutron/neutron/api/rpc/agentnotifiers
yatinkarel 3e1e2d63b3 Enable rpc notifications only when rpc_workers >= 1
rpc_workers can be set < 1 with 'ovn' backend when no
other agent is running apart from ovn agents to
consume these rpc notifications.

Add and apply disable_notifications decorator on
methods which do rpc cast calls to agents, the
decorator makes the caller method execute only
when rpc_workers >=1. This patch not changing
default behavior and utilizes the rpc_workers config option
to enable rpc notification on resources updates only when
rpc_workers >= 1.

Also set rpc_workers=0 in ovn jobs to cover this scenario.

Closes-Bug: #1889737
Closes-Bug: #1992352
Change-Id: I700fe2cd422bc1eb8b5144ec116e7f0a60238419
2023-01-09 13:33:37 +05:30
..
__init__.py Remove invalid copyright headers under API module 2014-04-02 11:09:03 -07:00
dhcp_rpc_agent_api.py Enable rpc notifications only when rpc_workers >= 1 2023-01-09 13:33:37 +05:30
l3_rpc_agent_api.py Enable rpc notifications only when rpc_workers >= 1 2023-01-09 13:33:37 +05:30
metering_rpc_agent_api.py Revert "Set system_scope='all' in elevated context" 2021-06-15 10:29:20 +02:00
utils.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00