summaryrefslogtreecommitdiffstats
path: root/nova/scheduler/driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/scheduler/driver.py')
-rw-r--r--nova/scheduler/driver.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/scheduler/driver.py b/nova/scheduler/driver.py
index c4265285f..765aede10 100644
--- a/nova/scheduler/driver.py
+++ b/nova/scheduler/driver.py
@@ -158,6 +158,15 @@ class Scheduler(object):
msg = _("Driver must implement schedule_run_instance")
raise NotImplementedError(msg)
+ def select_destinations(self, context, request_spec, filter_properties):
+ """Must override select_destinations method.
+
+ :return: A list of (host, node) tuples that satisifies the request_spec
+ and filter_properties.
+ """
+ msg = _("Driver must implement select_destinations")
+ raise NotImplementedError(msg)
+
def select_hosts(self, context, request_spec, filter_properties):
"""Must override select_hosts method for scheduler to work."""
msg = _("Driver must implement select_hosts")