nova/nova/scheduler
Prateek Arora 00bc0cb53d Correct wrong max_unit in placement inventory
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>
2016-11-10 04:14:09 -05:00
..
client Correct wrong max_unit in placement inventory 2016-11-10 04:14:09 -05:00
filters Merge "conf: Group scheduler options" 2016-10-18 13:29:33 +00:00
weights conf: Group scheduler options 2016-10-07 14:36:21 +01:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
caching_scheduler.py Add a caching scheduler driver 2014-02-26 13:53:07 +00:00
chance.py Move config options from nova/compute/rpcapi.py file 2016-04-21 22:26:13 +00:00
driver.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00
filter_scheduler.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00
host_manager.py Merge "conf: Group scheduler options" 2016-10-18 13:29:33 +00:00
ironic_host_manager.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00
manager.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00
rpcapi.py Set RPC version aliases for Mitaka 2016-03-16 09:54:49 -07:00
scheduler_options.py Set 'last_checked' flag if start to check scheduler file 2016-10-21 10:29:21 +00:00
utils.py conf: Group scheduler options 2016-10-07 14:36:21 +01:00