gantt/nova/tests
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
..
baremetal refactor baremetal/proxy => baremetal/driver 2012-07-10 11:43:18 -04:00
hyperv Adds get_available_resource to hyperv driver 2012-09-09 18:01:18 +03:00
scheduler Fix bugs in resource tracker and cleanup 2012-09-20 05:11:10 +00:00
vmwareapi refactor vmwareapi_conn => vmwareapi/driver 2012-07-10 11:42:05 -04:00
xenapi xapi: Fix live block migration 2012-09-10 16:04:10 +01:00
__init__.py Update reset_db to call setup if _DB is None. 2012-08-03 13:09:52 -04:00
declare_flags.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
fake_flags.py Implement network creation in compute API 2012-08-21 16:10:24 +03:00
fake_imagebackend.py Rename imagebackend arguments. 2012-09-03 20:50:55 +10:00
fake_libvirt_utils.py Move ensure_tree to utils 2012-08-26 21:31:57 +10:00
fakelibvirt.py Fix auth parameter passed to libvirt openAuth() method 2012-09-10 16:15:30 +01:00
policy.json Adds new volume API extensions 2012-09-18 08:54:25 -07:00
runtime_flags.py Remove the last of the gflags shim layer 2012-02-10 06:31:56 +00:00
test_api.py use boto's HTTPResponse class for versions of boto >=2.5.2 2012-07-23 17:30:31 +02:00
test_compat_flagfile.py Alphabetize imports in nova/tests/ 2012-05-18 12:39:52 -07:00
test_db_api.py Merge "Properly create and delete Aggregates" 2012-09-20 03:57:20 +00:00
test_deprecated.py Only log deprecated config warnings once. 2012-08-05 08:41:22 -04:00
test_fakelibvirt.py Fix auth parameter passed to libvirt openAuth() method 2012-09-10 16:15:30 +01:00
test_flags.py Unused imports cleanup (folsom-2) 2012-06-03 13:26:35 +08:00
test_hypervapi.py Adds get_available_resource to hyperv driver 2012-09-09 18:01:18 +03:00
test_imagebackend.py External locking for image caching. 2012-08-29 21:48:26 +10:00
test_imagecache.py maint: libvirt imagecache: remove redundant interpreter spec 2012-07-29 01:36:31 +01:00
test_instance_types.py Generate a flavorid if needed at flavor creation 2012-09-07 00:39:44 +02:00
test_iscsi.py Correct IetAdm remove_iscsi_target 2012-09-19 09:15:36 -07:00
test_libvirt_config.py More specific lxml versions in tools/pip-requires 2012-09-10 18:58:26 -04:00
test_libvirt_vif.py fix issues with Nova security groups and Quantum 2012-08-30 22:21:51 -07:00
test_libvirt.py Merge "Re-attach volumes after instance resize" 2012-09-19 05:30:18 +00:00
test_migrations.conf Make database downgrade works 2012-02-17 18:30:09 +08:00
test_migrations.py Properly create and delete Aggregates 2012-09-19 18:31:41 -07:00
test_misc.py Makes sure tests don't leave lockfiles around 2012-08-17 17:26:42 +00:00
test_netapp_nfs.py Backport changes from Cinder to Nova-Volume 2012-09-12 12:43:44 -04:00
test_netapp.py Backport changes from Cinder to Nova-Volume 2012-09-12 12:43:44 -04:00
test_nexenta.py Alphabetize imports in nova/tests/ 2012-05-18 12:39:52 -07:00
test_nfs.py Backport changes from Cinder to Nova-Volume 2012-09-12 12:43:44 -04:00
test_nova_rootwrap.py Typo fix: existant => existent 2012-08-22 11:26:13 -07:00
test_plugin_api_extensions.py Remove unused imports 2012-08-17 13:35:05 +08:00
test_powervm.py Fixes spawn method signature for PowerVM driver. 2012-08-29 22:25:46 -04:00
test_rbd.py add ability to clone images 2012-09-18 08:54:25 -07:00
test_skip_examples.py fixed pep8 issue 2011-08-04 23:01:22 -05:00
test_solidfire.py Update SolidFire volume driver 2012-09-09 09:56:25 -06:00
test_storwize_svc.py Use volume driver specific exceptions 2012-09-07 14:07:01 +01:00
test_virt_drivers.py Add full python path to test stubbing modules for libvirt 2012-09-03 04:49:36 -07:00
test_virt.py Skip tests in OSX due to readlink compat 2012-09-04 13:33:47 -04:00
test_vmmode.py Compute: VM-Mode should use instance dict. 2012-07-30 21:25:01 +00:00
test_vmwareapi.py Fix vmwareapi driver spawn() signature 2012-09-03 16:49:20 +01:00
test_volume_types_extra_specs.py Removes constraints from instance and volume types 2012-02-08 11:27:39 -08:00
test_volume_types.py Typo fix: existant => existent 2012-08-22 11:26:13 -07:00
test_volume_utils.py Simplify setting up test notifier 2012-09-07 09:23:58 +01:00
test_volume.py Adds new volume API extensions 2012-09-18 08:54:25 -07:00
test_xenapi.py xapi: fix create hypervisor pool 2012-09-19 11:08:19 +01:00
test_xensm.py Remove unused imports 2012-08-17 13:35:05 +08:00