When max_placement_results is less than the total number of nodes in a deployment it may not be possible to use the affinity, anti-affinity, same host or different host filters as there is no guarantee for placement to return the expected hosts under such situations. This patch disables the max_placement_results parameter when nova queries placement for ``GET /allocation_candidates`` if the request_spec.scheduler_hints containts any of group, same_host or different_host keys. NOTE(mriedem): The RequestGroup used in this backport has to use nova.api.openstack.placement.lib.RequestGroup because nova.objects.RequestGroup didn't exist until Stein with change I46c97d2641d9685ef59771314665a17a5236097d. Change-Id: Ia2d5f80b6db59a8f6da03344aeaa6aa599407672 Closes-Bug: #1827628 (cherry picked from commit2f9e972ba3) (cherry picked from commitc094a6ef0c)
Team and repository tags
OpenStack Nova
OpenStack Nova provides a cloud computing fabric controller, supporting a wide variety of compute technologies, including: libvirt (KVM, Xen, LXC and more), Hyper-V, VMware, XenServer, OpenStack Ironic and PowerVM.
Use the following resources to learn more.
API
To learn how to use Nova's API, consult the documentation available online at:
For more information on OpenStack APIs, SDKs and CLIs in general, refer to:
Operators
To learn how to deploy and configure OpenStack Nova, consult the documentation available online at:
In the unfortunate event that bugs are discovered, they should be reported to the appropriate bug tracker. If you obtained the software from a 3rd party operating system vendor, it is often wise to use their own bug tracker for reporting problems. In all other cases use the master OpenStack bug tracker, available at:
Developers
For information on how to contribute to Nova, please see the contents of the CONTRIBUTING.rst.
Any new code must follow the development guidelines detailed in the HACKING.rst file, and pass all unit tests.
Further developer focused documentation is available at:
Other Information
During each Summit and Project Team Gathering, we agree on what the whole community wants to focus on for the upcoming release. The plans for nova can be found at: