nova/nova/scheduler/filters
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 Raise NotImplementedError, not NotImplemented singleton 2012-07-18 21:46:19 +00:00
affinity_filter.py Use compute_api.get_all in affinity filters. 2012-07-11 10:23:58 -04:00
aggregate_instance_extra_specs.py Add documentation for scheduler filters scope 2012-09-10 11:01:15 -07:00
all_hosts_filter.py Fix spelling typos 2012-08-16 18:50:04 -05:00
availability_zone_filter.py Minor spelling fix 2012-04-30 10:59:52 -07:00
compute_capabilities_filter.py Add documentation for scheduler filters scope 2012-09-10 11:01:15 -07:00
compute_filter.py Introduce ImagePropertiesFilter scheduler filter 2012-08-17 22:25:54 -06:00
core_filter.py Fix bugs in resource tracker and cleanup 2012-09-19 22:19:18 -07:00
disk_filter.py Fix bugs in resource tracker and cleanup 2012-09-19 22:19:18 -07:00
extra_specs_ops.py Debugged extra_specs_ops.py 2012-08-21 07:35:20 -04:00
image_props_filter.py delete a module never used 2012-09-10 16:53:09 +08:00
isolated_hosts_filter.py Fix OpenStack Capitalization 2012-03-15 16:10:53 -07:00
json_filter.py Replace standard json module with openstack.common.jsonutils 2012-06-07 09:24:03 +08:00
ram_filter.py Fix bugs in resource tracker and cleanup 2012-09-19 22:19:18 -07:00
retry_filter.py Adds generic retries for build failures. 2012-07-17 22:15:41 +00:00
trusted_filter.py Add scope to extra_specs entries 2012-09-05 09:38:02 -06:00
type_filter.py General host aggregates part 2 2012-08-07 14:24:53 -07:00