diff --git a/nova/scheduler/rpcapi.py b/nova/scheduler/rpcapi.py index f368e95a..4bc6e0e4 100644 --- a/nova/scheduler/rpcapi.py +++ b/nova/scheduler/rpcapi.py @@ -47,6 +47,8 @@ class SchedulerAPI(nova.openstack.common.rpc.proxy.RpcProxy): 2.1 - Add image_id to create_volume() 2.2 - Remove reservations argument to create_volume() 2.3 - Remove create_volume() + 2.4 - Change update_service_capabilities() + - accepts a list of capabilities ''' # @@ -102,4 +104,5 @@ class SchedulerAPI(nova.openstack.common.rpc.proxy.RpcProxy): capabilities): self.fanout_cast(ctxt, self.make_msg('update_service_capabilities', service_name=service_name, host=host, - capabilities=capabilities)) + capabilities=capabilities), + version='2.4') diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py index 112a4110..b1174559 100644 --- a/nova/tests/scheduler/test_rpcapi.py +++ b/nova/tests/scheduler/test_rpcapi.py @@ -82,4 +82,5 @@ class SchedulerRpcAPITestCase(test.TestCase): def test_update_service_capabilities(self): self._test_scheduler_api('update_service_capabilities', rpc_method='fanout_cast', service_name='fake_name', - host='fake_host', capabilities='fake_capabilities') + host='fake_host', capabilities='fake_capabilities', + version='2.4')