From 4f3c5411d92d488b78f06212912fc7ae6d225b79 Mon Sep 17 00:00:00 2001 From: Andrew Laski Date: Mon, 17 Jun 2013 10:36:46 -0400 Subject: New select_destinations scheduler call select_destinations returns a list of (host, node) tuples that satisfy the request_spec and filter_properties passed to it. This will allow the conductor to get a list of destinations for workflows such as creating or resizing an instance and then handle the orchestration itself. part of bp query-scheduler Change-Id: I1a42cea64dbad67562d7efe8d759e6efb5ec8121 --- nova/tests/scheduler/test_rpcapi.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nova/tests/scheduler/test_rpcapi.py') diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py index cecc55f20..7d61ecf97 100644 --- a/nova/tests/scheduler/test_rpcapi.py +++ b/nova/tests/scheduler/test_rpcapi.py @@ -86,3 +86,9 @@ class SchedulerRpcAPITestCase(test.NoDBTestCase): request_spec='fake_request_spec', filter_properties='fake_prop', version='2.6') + + def test_select_destinations(self): + self._test_scheduler_api('select_destinations', rpc_method='call', + request_spec='fake_request_spec', + filter_properties='fake_prop', + version='2.7') -- cgit