In my all-in-one openstack, I created the first instance[1], then created the second[2].
At last I created the third[3]. Just one by one.
Instance[1] and instance[2] are active and instance[3] is error.
But I only have one host and use the anti-afinity policy server-group for instance[1][2].
The code[4] is now if we specify the force_hosts or force_nodes, scheduler will ignore the filters.
So I think even we specify the force_hosts or force_nodes, scheduler should evaluate the filters.
For that, I have pushed a patch to add a config[5].
[1] nova boot <instance-name> --flavor <flavor> --image <image> --availability-zone <az> --security-groups <sec-group> --nic net-id=<net-id> --hint group=<server-group>
[2] nova boot <instance-name> --flavor <flavor> --image <image> --availability-zone <az>:<host> --security-groups <sec-group> --nic net-id=<net-id> --hint group=<server-group>
[3] nova boot <instance-name> --flavor <flavor> --image <image> --availability-zone <az> --security-groups <sec-group> --nic net-id=<net-id> --hint group=<server-group>
Best Regards
Boxiang