diff options
| author | Josh Kearney <josh@jk0.org> | 2011-03-31 13:08:49 -0500 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2011-03-31 13:08:49 -0500 |
| commit | 45bb2fb1f74c21e9ef8b65f6c4e22965e2c94fbd (patch) | |
| tree | afc9e1f9ea597486f345a4c8c91a33f8b612b787 | |
| parent | de1b0dcf585bdfe2cefa1a7ec561a53ac8c515b8 (diff) | |
| download | nova-45bb2fb1f74c21e9ef8b65f6c4e22965e2c94fbd.tar.gz nova-45bb2fb1f74c21e9ef8b65f6c4e22965e2c94fbd.tar.xz nova-45bb2fb1f74c21e9ef8b65f6c4e22965e2c94fbd.zip | |
More friendly error message
| -rw-r--r-- | nova/scheduler/chance.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/scheduler/chance.py b/nova/scheduler/chance.py index 9deaa2777..ae81679e1 100644 --- a/nova/scheduler/chance.py +++ b/nova/scheduler/chance.py @@ -34,5 +34,7 @@ class ChanceScheduler(driver.Scheduler): hosts = self.hosts_up(context, topic) if not hosts: - raise driver.NoValidHost(_("No hosts found")) + raise driver.NoValidHost(_("Scheduler was unable to locate a host" + " for this request. Is the compute node" + " running?")) return hosts[int(random.random() * len(hosts))] |
