diff options
author | Andrew Laski <andrew.laski@rackspace.com> | 2013-06-17 10:36:46 -0400 |
---|---|---|
committer | Andrew Laski <andrew.laski@rackspace.com> | 2013-06-28 09:48:14 -0400 |
commit | 4f3c5411d92d488b78f06212912fc7ae6d225b79 (patch) | |
tree | 2265977f9567fec74f96b34ec965a1666df57259 /nova/tests/scheduler/test_rpcapi.py | |
parent | 7a241e5f8be927ff87c6ee6a478a7757a4a55813 (diff) | |
download | nova-4f3c5411d92d488b78f06212912fc7ae6d225b79.tar.gz nova-4f3c5411d92d488b78f06212912fc7ae6d225b79.tar.xz nova-4f3c5411d92d488b78f06212912fc7ae6d225b79.zip |
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
Diffstat (limited to 'nova/tests/scheduler/test_rpcapi.py')
-rw-r--r-- | nova/tests/scheduler/test_rpcapi.py | 6 |
1 files changed, 6 insertions, 0 deletions
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') |