diff options
| author | Alvaro Lopez Garcia <aloga@ifca.unican.es> | 2013-04-18 15:42:14 +0200 |
|---|---|---|
| committer | Alvaro Lopez Garcia <aloga@ifca.unican.es> | 2013-04-18 17:47:28 +0200 |
| commit | 4cee584ae6571fba183b4512adf76b19e1ce95c4 (patch) | |
| tree | 684149df4d979f1113cd1b96be723eb4fba2949b | |
| parent | d8e81f6ff6b3160ba6aea5dd814ba734f189f99f (diff) | |
Remove unused exception and variable from scheduler.
There are no cost functions, so there is no cache and no Exception to be
raised.
Change-Id: I4a67bd45e3f0c91e5507ed3794dc20b13292596b
| -rw-r--r-- | nova/exception.py | 9 | ||||
| -rw-r--r-- | nova/scheduler/filter_scheduler.py | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/nova/exception.py b/nova/exception.py index de922f50e..36f388f1f 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -869,15 +869,6 @@ class SchedulerHostFilterNotFound(NotFound): message = _("Scheduler Host Filter %(filter_name)s could not be found.") -class SchedulerCostFunctionNotFound(NotFound): - message = _("Scheduler cost function %(cost_fn_str)s could" - " not be found.") - - -class SchedulerWeightFlagNotFound(NotFound): - message = _("Scheduler weight flag not found: %(flag_name)s") - - class InstanceMetadataNotFound(NotFound): message = _("Instance %(instance_uuid)s has no metadata with " "key %(metadata_key)s.") diff --git a/nova/scheduler/filter_scheduler.py b/nova/scheduler/filter_scheduler.py index 2714e93bb..db871dee9 100644 --- a/nova/scheduler/filter_scheduler.py +++ b/nova/scheduler/filter_scheduler.py @@ -53,7 +53,6 @@ class FilterScheduler(driver.Scheduler): """Scheduler that can be used for filtering and weighing.""" def __init__(self, *args, **kwargs): super(FilterScheduler, self).__init__(*args, **kwargs) - self.cost_function_cache = None self.options = scheduler_options.SchedulerOptions() def schedule_run_instance(self, context, request_spec, |
