00bc0cb53d
When the resource tracker creates Inventory in the placement API for its VCPU, MEMORY_MB and DISK_GB, max_unit is set to 1. Until commit I18596a3c0f2b0049aaccd0f3e73aef90b684c4a8 the min_unit,max_unit and step_size constraints on Inventory were not being checked when making Allocations. When that enforcement merges, the resource tracker will no longer be able to make allocations of anything other than unit 1. This patch tries to fix the above stated problem by changing the value of max_unit to reflect the real limits on the machine when creating the inventory. Change-Id: I23fa868fec7f71c01e78e1a3bba5b08407c1e3ef Closes-bug: #1638681 Co-Authored-By: Chris Dent <cdent@anticdent.org> |
||
---|---|---|
.. | ||
client | ||
filters | ||
weights | ||
__init__.py | ||
caching_scheduler.py | ||
chance.py | ||
driver.py | ||
filter_scheduler.py | ||
host_manager.py | ||
ironic_host_manager.py | ||
manager.py | ||
rpcapi.py | ||
scheduler_options.py | ||
utils.py |