diff options
author | Hans Lindgren <hanlind@kth.se> | 2013-06-19 21:52:51 +0200 |
---|---|---|
committer | Hans Lindgren <hanlind@kth.se> | 2013-06-19 22:06:23 +0200 |
commit | 10db6128b8dc3ed2773acf262af529e0485cfe9f (patch) | |
tree | c30e45daff35449bbff4fc0703af5ac75f784490 /nova/scheduler/manager.py | |
parent | f22dafd8b558e3dd628aae9d947718450334e626 (diff) | |
download | nova-10db6128b8dc3ed2773acf262af529e0485cfe9f.tar.gz nova-10db6128b8dc3ed2773acf262af529e0485cfe9f.tar.xz nova-10db6128b8dc3ed2773acf262af529e0485cfe9f.zip |
Allow scheduler manager NoValidHost exception to pass over RPC
Calls to scheduler.manager.select_hosts are expected to throw NoValidHost
exceptions if no hosts match such requests. For the exception to be passed
over RPC, the method must be decorated with:
@rpc_common.client_exceptions(exception.NoValidHost)
Resolves bug 1192693.
Change-Id: If9d1f15ff1239e422067893f9d837c41e5f5474d
Diffstat (limited to 'nova/scheduler/manager.py')
-rw-r--r-- | nova/scheduler/manager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py index 9429a0662..fee29768a 100644 --- a/nova/scheduler/manager.py +++ b/nova/scheduler/manager.py @@ -308,6 +308,7 @@ class SchedulerManager(manager.Manager): def get_backdoor_port(self, context): return self.backdoor_port + @rpc_common.client_exceptions(exception.NoValidHost) def select_hosts(self, context, request_spec, filter_properties): """Returns host(s) best suited for this request_spec and filter_properties. |