nova/nova/tests/unit/virt/powervm
Yikun Jiang 08f3ae9606 Use new ``initial_xxx_allocation_ratio`` CONF
This patch adds new ``initial_xxx_allocation_ratio`` CONF options
and modifies the resource tracker's initial compute node creation to
use these values.

During the update_available_resource periodic task, the allocation
ratios reported to inventory for VCPU, MEMORY_MB and DISK_GB will
be based on:

* If CONF.*_allocation_ratio is set, use it. This overrides everything
  including externally set allocation ratios via the placement API.
* If reporting inventory for the first time, the
  CONF.initial_*_allocation_ratio value is used.
* For everything else, the inventory reported remains unchanged which
  allows operators to set the allocation ratios on the inventory records
  in placement directly without worrying about nova-compute overwriting
  those changes.

As a result, several TODOs are removed from the virt drivers that
implement the update_provider_tree interface and a TODO in the resource
tracker about unset-ing allocation ratios to get back to initial values.

Change-Id: I14a310b20bd9892e7b34464e6baad49bf5928ece
blueprint: initial-allocation-ratios
2018-11-30 15:32:06 -05:00
..
disk Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
tasks PowerVM Driver: vSCSI Fibre Channel volume adapter 2018-05-22 11:39:32 -05:00
volume PowerVM Driver: vSCSI Fibre Channel volume adapter 2018-05-22 11:39:32 -05:00
__init__.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_driver.py Use new ``initial_xxx_allocation_ratio`` CONF 2018-11-30 15:32:06 -05:00
test_host.py hypervisor_hostname must match get_available_nodes 2017-06-20 16:34:38 -05:00
test_image.py PowerVM snapshot cleanup 2018-05-17 11:55:03 -05:00
test_media.py Use tempfile for powervm config drive 2018-10-19 06:52:17 -04:00
test_mgmt.py PowerVM Driver: Snapshot 2018-04-25 14:35:12 -05:00
test_vif.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_vm.py PowerVM: Add proc_units_factor conf option 2018-04-10 11:24:20 -05:00