When both the compute node resource provider and the shared
resource provider have inventory in the same resource class,
AllocationCandidates.get_by_filters didn't return an
AllocationRequest including the shared resource provider.
To fix the bug, we at first remove the shortcut in the logic to
consider sharing providers even if the non-sharing provider can
satisfy the resource request for itself.
Reviewed: https:/ /review. openstack. org/553122 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ecb09b29b74 3808a97751383dc 6c7a0eefae2aa9
Committed: https:/
Submitter: Zuul
Branch: master
commit ecb09b29b743808 a97751383dc6c7a 0eefae2aa9
Author: Tetsuro Nakamura <email address hidden>
Date: Mon Mar 12 08:38:24 2018 +0900
remove unnecessary short cut in placement
When both the compute node resource provider and the shared andidates. get_by_ filters didn't return an equest including the shared resource provider.
resource provider have inventory in the same resource class,
AllocationC
AllocationR
To fix the bug, we at first remove the shortcut in the logic to
consider sharing providers even if the non-sharing provider can
satisfy the resource request for itself.
Change-Id: Ibd509c5a59407d a1db46c6c12b82f 8707f655466
Partial-Bug: #1724613
Related-Bug: #1731072