commit 19e7abad96c5c8d19a442a41f799dabe9d600db8
Author: Mark Goddard <email address hidden>
Date: Wed Jan 27 03:49:07 2016 +0000
Apply scheduler limits to Exact* filters
The DiskFilter, RamFilter and CoreFilter scheduler filters set the
resource limit on the HostState object during filtering. This is
later checked in compute during the claim, and used to enforce
the allocation ratios in a safe manner. The Exact* filters do not
set the resource limits, so scheduler race conditions can result
in multiple bare metal instances claiming a single host.
This change sets the resource limits on the HostState object in
the ExactCoreFilter, ExactDiskFilter and ExactRamFilter, ensuring
that only a single baremetal instance can claim a compute host.
Change-Id: I31d0331afc4698046a4568935a95f70f30e335dd
Partial-Bug: #1341420
Co-Authored-By: Will Miller <email address hidden>
(cherry picked from commit 3471cc8b74444d04348d8e6dbc9c980641d4b0bc)
Reviewed: https:/ /review. openstack. org/276191 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=19e7abad96c 5c8d19a442a41f7 99dabe9d600db8
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 19e7abad96c5c8d 19a442a41f799da be9d600db8
Author: Mark Goddard <email address hidden>
Date: Wed Jan 27 03:49:07 2016 +0000
Apply scheduler limits to Exact* filters
The DiskFilter, RamFilter and CoreFilter scheduler filters set the
resource limit on the HostState object during filtering. This is
later checked in compute during the claim, and used to enforce
the allocation ratios in a safe manner. The Exact* filters do not
set the resource limits, so scheduler race conditions can result
in multiple bare metal instances claiming a single host.
This change sets the resource limits on the HostState object in
the ExactCoreFilter, ExactDiskFilter and ExactRamFilter, ensuring
that only a single baremetal instance can claim a compute host.
Conflicts: tests/unit/ scheduler/ filters/ test_exact_ core_filter. py tests/unit/ scheduler/ filters/ test_exact_ disk_filter. py tests/unit/ scheduler/ filters/ test_exact_ ram_filter. py
nova/
nova/
nova/
Change-Id: I31d0331afc4698 046a4568935a95f 70f30e335dd 4348d8e6dbc9c98 0641d4b0bc)
Partial-Bug: #1341420
Co-Authored-By: Will Miller <email address hidden>
(cherry picked from commit 3471cc8b74444d0