Comment 10 for bug 1777591

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/queens)

Reviewed: https://review.openstack.org/584616
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ab1fd87ed9563ce8cf865ff539916e5d804853dc
Submitter: Zuul
Branch: stable/queens

commit ab1fd87ed9563ce8cf865ff539916e5d804853dc
Author: xulei <email address hidden>
Date: Wed Jun 20 13:15:46 2018 +0800

    Disable limits if force_hosts or force_nodes is set

    Setting max_placement_results will make force_host invaild sometimes,
    especially in large-scale enviroment.
    Disable limit param in GET /allocation_candidates if force_hosts
    or force_nodes is set.

    NOTE(xulei): There are differences from the original change because
    I496e8d64907fdcb0e2da255725aed1fc529725f2 was not in stable/queens,
    so we transplant code to get_allocation_candidates in this backport.

    Change-Id: Iff1b49fe7e6347e3c2bb5992494b2450809719a2
    Closes-Bug: #1777591
    (cherry picked from commit 1d91811ad499af1d291f5c819ced5b1fdf3520c7)