config/sysinv/sysinv/sysinv/sysinv/cmd
Alyson Deives Pereira c6a41c20a9 Add ZeroMQ RPC backend
This feature adds a new RPC backend for communication between
sysinv-api, sysinv-conductor and sysinv-agent processes.
This backend is implemented using a patched zerorpc library [1],
which is built on top of ZeroMQ and message-pack.
The motivation behind this change is to decouple sysinv from RabbitMQ,
and use a brokerless solution for RPC instead.

The key points are:
- All imports of rpcapi.py are replaced by rpcapiproxy.py, which
  decides the backend to use (rabbitmq or zeromq) according to
  configuration.
- During an upgrade process the rpc service listens to both rabbitmq
  and zeromq. For communication between hosts, the client backend api
  is chosen according to host software version.
- In future versions, the usage of RabbitMQ will no longer be
  necessary and its usage can be removed. I have marked these parts of
  code with "TODO(RPCHybridMode)" to easily track it.

[1] https://review.opendev.org/c/starlingx/integ/+/864310

TEST PLAN:
PASS: Bootstrap and host-unlock on AIO-SX, AIO-Duplex, Standard
PASS: Bootstrap and host-unlock on DC system-controller and subcloud
PASS: Verify sysinv.log and confirm no error occurs in RPC communication
PASS: Perform system cli commands that interacts with sysinv RPCs:
  - system host-cpu-max-frequency-modify
  - system license-install
  - system storage-backend-add ceph-external
  - system host-swact
PASS: Backup & Restore on AIO-SX
PASS: Bootstrap replay (updating mgmt and cluster subnet) on AIO-SX
PASS: Platform upgrade on AIO-DX (22.06 -> 22.12)
PASS: Platform upgrade on AIO-DX+ (22.06 -> 22.12)
PASS: Platform upgrade on AIO-SX (22.06 -> 22.12)

Depends-On: https://review.opendev.org/c/starlingx/tools/+/859576
Depends-On: https://review.opendev.org/c/starlingx/stx-puppet/+/859575
Depends-On: https://review.opendev.org/c/starlingx/ansible-playbooks/+/862609

Story: 2010087
Task: 46444

Change-Id: I5cd61b541a6d8c62628a0f99db0e35af1eae5961
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
Signed-off-by: Eduardo Juliano Alberti <eduardo.alberti@windriver.com>
2022-11-24 13:28:01 -03:00
..
__init__.py Deprecate sysinv.openstack.common.gettextutils 2019-11-04 10:04:20 -06:00
agent.py Add code for sanity coverage 2018-06-29 13:15:05 -04:00
api.py Reraise exception and log error message 2019-07-10 09:19:05 +00:00
cert_alarm.py update license statements 2022-06-28 13:56:11 +00:00
cert_mon.py update license statements 2022-06-28 13:56:11 +00:00
conductor.py Add code for sanity coverage 2018-06-29 13:15:05 -04:00
dbsync.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
dnsmasq_lease_update.py Add ZeroMQ RPC backend 2022-11-24 13:28:01 -03:00
helm.py App Fmwk: Add support for FluxCDKustomizeOperator 2022-05-20 16:09:32 -04:00
platform.py Add cli command to wrap platform upgrade playbook 2022-09-15 13:31:34 -04:00
puppet.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
reset_n3000_fpgas.py Merge sysinv_fpga_agent with sysinv_agent 2022-10-03 14:12:28 -04:00
upgrade.py Deprecate sysinv.openstack.common.log 2019-11-05 15:29:20 -06:00
utils.py Add ZeroMQ RPC backend 2022-11-24 13:28:01 -03:00