Exception cleanup in scheduler
Fixes NoValidHost and willNotSchedule by moving them to exception.py Removed unneeded imports Change-Id: Ib9bb4b36d5e4c00667bd0b2d73137ba9eac5b3b0
This commit is contained in:
@@ -863,3 +863,11 @@ class InsufficientFreeMemory(NovaException):
|
||||
|
||||
class CouldNotFetchMetrics(NovaException):
|
||||
message = _("Could not fetch bandwidth/cpu/disk metrics for this host.")
|
||||
|
||||
|
||||
class NoValidHost(NovaException):
|
||||
message = _("No valid host was found. %(reason)s")
|
||||
|
||||
|
||||
class WillNotSchedule(NovaException):
|
||||
message = _("Host %(host)s is not up or doesn't exist.")
|
||||
|
||||
Reference in New Issue
Block a user