]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Generic rpc callback mechanism which could be reused
authorMiguel Angel Ajo <mangelajo@redhat.com>
Thu, 11 Jun 2015 13:21:28 +0000 (15:21 +0200)
committereran gampel <Eran.Gampel@Huawei.com>
Thu, 2 Jul 2015 12:51:30 +0000 (15:51 +0300)
commitdc802438887265c1faa0a92df7c7c701854cf5fc
tree26f49d3d0fcb5bd176b0845df27cb3f2ed1bffe3
parent3d6666af4921a28ccb95d25d88087e89e23e3ec5
Generic rpc callback mechanism which could be reused

This is a publisher/subscriber messaging mechanism optimized
for agent consumption and server production without the need
of creating new rpc messages when new resources are introduced.

Oslo versionedobjects are the perfect match to ensure
cross version compatibility even if the published/subscribed
resources format change over time.

This is still a basic stub allowing get_info of the resources,
and the next change will introduce the RPC methods to call
get_info: I0ac8a009e781b6edb283d8634b1a2f047db092dc

The plugin is returning stub objects to be consumed from the
agent to test the basic behaviour until we have DB.

TODO: Update documentation, according to code changes,
      enforce versioned objects only doing deserial/serialization.

Co-Authored-By: Miguel Angel Ajo <mangelajo@redhat.com>
Co-Authored-By: Eran Gampel <eran@gampel.net>
Change-Id: I524cf5a14e99dc6bee4d4261557d98c75efa0809
doc/source/devref/index.rst
doc/source/devref/rpc_callbacks.rst [new file with mode: 0644]
neutron/api/rpc/callbacks/__init__.py [new file with mode: 0644]
neutron/api/rpc/callbacks/events.py [new file with mode: 0644]
neutron/api/rpc/callbacks/registry.py [new file with mode: 0644]
neutron/api/rpc/callbacks/resource_manager.py [new file with mode: 0644]
neutron/api/rpc/callbacks/resources.py [new file with mode: 0644]
neutron/services/qos/qos_plugin.py
neutron/tests/unit/api/rpc/callbacks/__init__.py [new file with mode: 0644]
neutron/tests/unit/api/rpc/callbacks/test_resource_manager.py [new file with mode: 0644]