summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2011-12-20 16:09:53 -0800
committerJoe Gordon <jogo@cloudscaling.com>2011-12-20 16:34:40 -0800
commit0cf2935688b84bb850f73b5974a0fd15b8f2015f (patch)
treeb2bdbccc1669b1b53bce0b1c3896833bae0f73a8
parentb1bd80bb087c37846edfd598d20eee5151788ddd (diff)
downloadnova-0cf2935688b84bb850f73b5974a0fd15b8f2015f.tar.gz
nova-0cf2935688b84bb850f73b5974a0fd15b8f2015f.tar.xz
nova-0cf2935688b84bb850f73b5974a0fd15b8f2015f.zip
Clarify NoValidHost messages
"All hosts have too many cores" isn't that clear Change-Id: I11102fb5c86966f2b7888d9cba29aed040dd8f4e
-rw-r--r--nova/scheduler/simple.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/scheduler/simple.py b/nova/scheduler/simple.py
index dfd2115f3..aadbe55bd 100644
--- a/nova/scheduler/simple.py
+++ b/nova/scheduler/simple.py
@@ -64,7 +64,7 @@ class SimpleScheduler(chance.ChanceScheduler):
for result in results:
(service, instance_cores) = result
if instance_cores + instance_opts['vcpus'] > FLAGS.max_cores:
- msg = _("All hosts have too many cores")
+ msg = _("Not enough allocatable CPU cores remaining")
raise exception.NoValidHost(reason=msg)
if self.service_is_up(service):
return service['host']
@@ -120,7 +120,7 @@ class SimpleScheduler(chance.ChanceScheduler):
for result in results:
(service, volume_gigabytes) = result
if volume_gigabytes + volume_ref['size'] > FLAGS.max_gigabytes:
- msg = _("All hosts have too many gigabytes")
+ msg = _("Not enough allocatable volume gigabytes remaining")
raise exception.NoValidHost(reason=msg)
if self.service_is_up(service):
driver.cast_to_volume_host(context, service['host'],
@@ -137,7 +137,7 @@ class SimpleScheduler(chance.ChanceScheduler):
for result in results:
(service, instance_count) = result
if instance_count >= FLAGS.max_networks:
- msg = _("All hosts have too many networks")
+ msg = _("Not enough allocatable networks remaining")
raise exception.NoValidHost(reason=msg)
if self.service_is_up(service):
driver.cast_to_network_host(context, service['host'],