Ask Your Question

Revision history [back]

How to add new Cinder scheduler filter?

I followed devref tutorial to implement FooFilter. I inherited filters.BaseHostFilter class and appended my class name to scheduler_default_filters of cinder.conf. However, when I create a volume I get an error saying "Scheduler Host Filter FooFilter could not be found" (see attached cinder-scheduler.log with full stack trace).

Also, I am not sure which folder I should put my foo_filter.py. There seem to be two options: 1. cinder/openstack/common/scheduler/filters/foo_filter.py and 2. cinder/scheduler/filters/foo_filter.py

I get the same error regardless of the location. Am I missing something?

How to add new Cinder scheduler filter?

I followed devref tutorial to implement FooFilter. I inherited filters.BaseHostFilter class and appended my class name to scheduler_default_filters of cinder.conf. However, when I create a volume I get an error saying "Scheduler Host Filter FooFilter could not be found" (see attached cinder-scheduler.log with full stack trace). trace).

Also, I am not sure which folder I should put my foo_filter.py. There seem to be two options: 1. options (1) cinder/openstack/common/scheduler/filters/foo_filter.py and 2. (2) cinder/scheduler/filters/foo_filter.py

I get the same error regardless of the location. Am I missing something?