[openstack-dev] Confused about GroupAntiAffinityFilter and GroupAffinityFilter

Simon Pasquier simon.pasquier at bull.net
Tue Sep 3 07:16:57 UTC 2013


Reposting to openstack-dev as I got no answer on the general mailing list.


-------- Message original --------
Sujet: [Openstack] Confused about GroupAntiAffinityFilter and 
GroupAffinityFilter
Date : Mon, 2 Sep 2013 11:19:58 +0200
De : Simon Pasquier <simon.pasquier at bull.net>
Organisation : Bulll SAS
Pour : <openstack at lists.openstack.org>

Hello,

I tried to play with GroupAntiAffinityFilter and GroupAffinityFilter
filters but it looks like the documentation is misleading [1]. Looking
more precisely at the commits that introduced these filters [2][3], my
assumption is that to use these filters, one would boot a first instance
with '--hint group=foo' and the scheduler would update the
instance_system_metadata table with {key:'group',value:'foo}. Then when
starting other instances with the same hint option, the scheduler would
filter the candidate hosts by querying the instance_system_metadata table.

Still this doesn't work for me. In my tests with
GroupAntiAffinityFilter, I have 3 compute nodes, each running one
instance not in any group. Then when I launch a VM specifying a group
hint, the scheduler fails to find a valid host because
GroupAntiAffinityFilter filter returns 0 host.

Could someone provide some guidance on how to use this filter?

Regards,

[1]
http://docs.openstack.org/trunk/openstack-compute/admin/content/scheduler-filters.html#groupaffinityfilter
[2] https://review.openstack.org/#/c/21070/
[3] https://review.openstack.org/#/c/35788/

-- 
Simon Pasquier
Software Engineer
Bull, Architect of an Open World
Phone: + 33 4 76 29 71 49
http://www.bull.com

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack





More information about the OpenStack-dev mailing list