<div dir="ltr"><div>Yes, it's possible using inspectors.<br><br></div>Shinobu<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 8:32 PM, Thomas Zilio <span dir="ltr"><<a href="mailto:zilio@efficit.com" target="_blank">zilio@efficit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm trying to test some custom cinder filters and weighers but I can't manage to make it work.<br>
I did the same for Nova and everything is working but the Cinder scheduler can't seem to find my custom classes.<br>
<br>
My tests are made on a Icehouse installation.<br>
<br>
The error message appearing in the log is the following one:<br>
> SchedulerHostFilterNotFound: Scheduler Host Filter CustomFilter could not be found.<br>
<br>
The filter file is in the directory : /usr/lib/python2.6/site-packages/cinder/scheduler/filters<br>
And I added these lines to the cinder.conf file (not sure if the first one is required).<br>
> scheduler_available_filters=custom_filter.CustomFilter<br>
> scheduler_default_filters=AvailabilityZoneFilter,CapacityFilter,CapabilitiesFilter,CustomFilter<br>
<br>
My filter file name is custom_filter.py and the class is CustomFilter.<br>
<br>
I don't think it's related to what my filter does since it's not even found by the scheduler.<br>
I'm encountering the same issues with the weighers (and everything is working just fine on the Nova scheduler side).<br>
<br>
If anyone has any idea how I could make this work I would be really grateful !<br>
<br>
Thanks and regards,<br>
Thomas<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Email:<br> <a href="mailto:shinobu@linux.com" target="_blank">shinobu@linux.com</a><br> <a href="mailto:skinjo@redhat.com" target="_blank">skinjo@redhat.com</a><br><br><a href="http://i-shinobu.hatenablog.com/" target="_blank"> Life w/ Linux</a><br></div></div></div></div></div></div></div>
</div>