nova/nova/tests/scheduler
Brian Elliott 284f6ea64b Set instance host field after resource claim
Set the 'host' field on the instance after the resource tracker
on the compute node has accepted the build.

The field is set after resources are confirmed to be available while the
COMPUTE_RESOURCES_SEMAPHORE is held.  The semaphore ensures the
resources usage values will be consistent even if the
update_available_resource periodic task audit runs.

bug 1060255

(cherry picked from commit 5fd7a9dba1)

Also includes the following bugfix to the original patch:

Set host prior to allocating network information.

Make sure 'host' field on the instance is set before allocating
network information.

bug 1065004

(cherry picked from commit 2649f14673)
Change-Id: I92105ec14924960ac8ef7ca8c810783085314e10
2012-11-21 11:30:47 -08:00
..
__init__.py Fix OpenStack Capitalization 2012-03-15 16:10:53 -07:00
fakes.py Eliminates simultaneous schedule race. 2012-11-20 14:34:00 -08:00
test_chance_scheduler.py Set instance host field after resource claim 2012-11-21 11:30:47 -08:00
test_filter_scheduler.py Eliminates simultaneous schedule race. 2012-11-20 14:34:00 -08:00
test_host_filters.py Fix bugs in resource tracker and cleanup 2012-09-19 22:19:18 -07:00
test_host_manager.py Fix bugs in resource tracker and cleanup 2012-09-19 22:19:18 -07: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 Set instance host field after resource claim 2012-11-21 11:30:47 -08:00