gantt/nova
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
..
auth Remove deprecated auth code 2012-07-09 23:30:21 -07:00
common Implement paginate query use marker in nova-api 2012-09-07 19:20:51 +08:00
compat Merge "fix restructuredtext formatting in docstrings that show up in the developer guide" 2012-03-07 01:34:42 +00:00
openstack Sync a change to rpc from openstack-common. 2012-09-14 13:59:25 -04:00
rootwrap Move rootwrap filters definition to config files 2012-06-22 15:35:23 +02:00
scheduler Fix bugs in resource tracker and cleanup 2012-09-20 05:11:10 +00:00
testing Remove unused testing.fake 2012-07-18 14:04:37 -07:00
tests Fix bugs in resource tracker and cleanup 2012-09-20 05:11:10 +00:00
__init__.py Allow file logging config 2012-02-17 11:24:32 -06:00
block_device.py Automatically convert device names 2012-09-04 17:30:26 -07:00
exception.py Merge "Add lookup by ip via Quantum for metadata service." 2012-09-20 02:21:12 +00:00
flags.py FLAG rename: bandwith_poll_*=>bandwidth_poll_* 2012-08-30 21:23:38 +00:00
manager.py Yield to another greenthread when some time-consuming task finished. 2012-09-05 13:00:58 +08:00
notifications.py Send api.fault notification on API service faults. 2012-09-19 16:10:04 -03:00
policy.py Fix is_admin check via policy 2012-08-20 10:32:06 -07:00
quota.py Revert per-user-quotas 2012-08-16 22:51:02 -07:00
service.py Improve external lock implementation 2012-08-04 12:52:50 +01:00
test.py Fix spelling typos 2012-08-16 18:50:04 -05:00
utils.py Adds new volume API extensions 2012-09-18 08:54:25 -07:00
wsgi.py Switch to common logging. 2012-07-02 15:57:09 -05:00