Browse Source

Change filter name

This patch changes the filter name from ClimateFilter to BlazarFilter.

Change-Id: Idd50f1f139924bee88a770318f372daf26b975cc
Partial-Bug: #1663460
changes/83/436683/3
Hiroaki Kobayashi 6 years ago
parent
commit
483075691c
  1. 4
      blazarnova/scheduler/filters/blazar_filter.py
  2. 4
      etc/nova.conf.example

4
blazarnova/scheduler/filters/blazar_filter.py

@ -51,7 +51,7 @@ opts = [
cfg.CONF.register_opts(opts, 'blazar:physical:host')
class ClimateFilter(filters.BaseHostFilter):
class BlazarFilter(filters.BaseHostFilter):
"""Blazar Filter for nova-scheduler."""
run_filter_once_per_request = True
@ -138,4 +138,4 @@ class ClimateFilter(filters.BaseHostFilter):
# For backward compatibility. This should be done in this way due to how Nova
# imports the filters
BlazarFilter = ClimateFilter
ClimateFilter = BlazarFilter

4
etc/nova.conf.example

@ -1,4 +1,4 @@
[DEFAULT]
scheduler_available_filters = nova.scheduler.filters.all_filters
scheduler_available_filters = blazarnova.scheduler.filters.blazar_filter.ClimateFilter
scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ClimateFilter
scheduler_available_filters = blazarnova.scheduler.filters.blazar_filter.BlazarFilter
scheduler_default_filters=RetryFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,BlazarFilter

Loading…
Cancel
Save