gantt/nova/tests/scheduler
Brian Elliott a187d8885e Fix bugs in resource tracker and cleanup
Fixes bugs in resource tracker:
* Handle disk oversubscription
* Handle suspended/powered off instances

The usage model is changed to the old style that is
based on actual instance usage on a compute host.
(Not the current point in time of the hypervisor's
 reported host stats)

There is now a 'limits' filter property that can be passed from
the scheduler to the compute node to indicate that
oversubscription of resources is desired:

The 'limits' filter property is a dict with the following possible
keys:

* memory_mb - Specifies the memory ceiling for the compute node.
* disk_gb - Specifies the disk space ceiling for the compute node.
* vcpu - Specifies the max number of vcpus for the compute node.

There is also some general cleanup and additional unit tests in
an attempt to simplify down this function.

bug 1048842
bug 1052157

Change-Id: I6ee851b8c03234a78a64d9f5c494dfc7059cdda4
2012-09-20 05:11:10 +00:00
..
__init__.py Fix OpenStack Capitalization 2012-03-15 16:10:53 -07:00
fakes.py Fix bugs in resource tracker and cleanup 2012-09-20 05:11:10 +00:00
test_chance_scheduler.py Fixes error handling during schedule_run_instance 2012-09-17 17:46:45 -07:00
test_filter_scheduler.py Fix bugs in resource tracker and cleanup 2012-09-20 05:11:10 +00:00
test_host_filters.py Fix bugs in resource tracker and cleanup 2012-09-20 05:11:10 +00:00
test_host_manager.py Fix bugs in resource tracker and cleanup 2012-09-20 05:11:10 +00:00
test_least_cost.py Remove empty setUp/tearDown methods 2012-03-02 16:18:07 +00:00
test_multi_scheduler.py Remove scheduler RPC API version 1.x 2012-08-29 20:54:49 +01:00
test_rpcapi.py Update quota when deleting volume that failed to be scheduled 2012-09-18 17:29:21 -04:00
test_scheduler_options.py Replace standard json module with openstack.common.jsonutils 2012-06-07 09:24:03 +08:00
test_scheduler.py Improve error handling of scheduler 2012-09-17 17:47:12 -07:00