nova/nova/compute
Brian Elliott 9d8fce85b1 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
(cherry picked from commit 8e851409f3)
2012-09-19 22:19:18 -07:00
..
__init__.py Use openstack.common.importutils. 2012-04-28 23:33:15 -04:00
api.py make ensure_default_security_group() call sgh 2012-09-18 12:28:16 -04:00
fakevirtinstance.xml update copyrights 2010-07-15 01:28:51 -04:00
instance_types.py Generate a flavorid if needed at flavor creation 2012-09-07 00:39:44 +02:00
manager.py Fix bugs in resource tracker and cleanup 2012-09-19 22:19:18 -07:00
power_state.py cleanup power state (partially implements bp task-management) 2012-05-29 10:16:59 -04:00
resource_tracker.py Fix bugs in resource tracker and cleanup 2012-09-19 22:19:18 -07:00
rpcapi.py xapi: fix create hypervisor pool 2012-09-19 08:49:31 -07:00
stats.py Fix and cleanup compute node stat tracking 2012-09-06 20:13:12 +00:00
task_states.py vm state and task state management 2012-06-21 15:34:53 -04:00
utils.py Fixes error handling during schedule_run_instance 2012-09-17 17:46:45 -07:00
vm_mode.py Compute: VM-Mode should use instance dict. 2012-07-30 21:25:01 +00:00
vm_states.py vm state and task state management 2012-06-21 15:34:53 -04:00