nova/nova/tests
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
..
CA
api Stop network.api import on network import 2012-11-17 01:52:15 +00:00
baremetal refactor baremetal/proxy => baremetal/driver 2012-07-10 11:43:18 -04:00
bundle
cert Change base rpc version to 1.0 in compute rpcapi. 2012-07-12 16:10:37 -04:00
compute Set instance host field after resource claim 2012-11-21 11:30:47 -08:00
console Fix use of non-existant var pool. 2012-08-16 12:03:01 -04:00
consoleauth Change base rpc version to 1.0 in compute rpcapi. 2012-07-12 16:10:37 -04:00
db Move queue_get_for() from db to rpc. 2012-05-30 17:50:24 -04:00
glance Rewrite image code to use python-glanceclient 2012-08-13 13:28:48 -07:00
hyperv Adds get_available_resource to hyperv driver 2012-09-09 18:01:18 +03:00
image add get_location method for images 2012-09-18 08:54:25 -07:00
integrated Integration tests virtual interfaces API extension 2012-09-24 16:14:50 -07:00
monkey_patch_example
network make QuantumV2 support requested nic ordering 2012-11-16 06:46:05 +00:00
scheduler Set instance host field after resource claim 2012-11-21 11:30:47 -08:00
vmwareapi refactor vmwareapi_conn => vmwareapi/driver 2012-07-10 11:42:05 -04:00
volume Add lun number (0) to model_update in HpSanDriver 2012-09-21 12:37:33 -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
fake_network.py Stop network.api import on network import 2012-11-17 01:52:15 +00:00
fake_network_cache_model.py Ties quantum, melange, and nova network model 2012-02-01 13:29:14 -06:00
fake_utils.py Switch to common logging. 2012-07-02 15:57:09 -05:00
fake_volume.py Add 'detaching' to volume status 2012-09-12 03:10:58 +00:00
fakelibvirt.py libvirt: allows attach and detach from all domains 2012-10-24 08:11:08 -05: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 ip_protocol for ec2 security groups 2012-10-05 07:46:22 -05:00
test_bdm.py Convert Volume and Snapshot IDs to use UUID 2012-05-02 13:32:19 -06:00
test_block_device.py Boot from volume for Xen 2012-07-09 17:59:36 +00:00
test_cinder.py Add flag cinder_endpoint_template to volume.cinder 2012-09-10 19:52:09 -05:00
test_compat_flagfile.py Alphabetize imports in nova/tests/ 2012-05-18 12:39:52 -07:00
test_configdrive2.py Remove unused imports 2012-08-17 13:35:05 +08:00
test_context.py Remove hard-coded 'admin' role checking and use policy instead 2012-08-19 00:31:23 +08:00
test_crypto.py Stop fetch_ca from throwing IOError exceptions 2012-09-12 14:33:57 +09:30
test_db_api.py Merge "Properly create and delete Aggregates" into milestone-proposed 2012-09-20 06:07:43 +00:00
test_deprecated.py Only log deprecated config warnings once. 2012-08-05 08:41:22 -04:00
test_exception.py ip_protocol for ec2 security groups 2012-10-05 07:46:22 -05: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 Don't verify image hashes if checksumming is disabled. 2012-11-19 09:02:45 -06:00
test_instance_types.py Generate a flavorid if needed at flavor creation 2012-09-07 00:39:44 +02:00
test_instance_types_extra_specs.py Flavor extra specs extension use instance_type id 2012-08-06 18:26:15 +08:00
test_iptables_network.py Change IPtablesManager to preserve packet:byte counts. 2012-08-15 15:10:45 -04:00
test_ipv6.py Switch to common logging. 2012-07-02 15:57:09 -05:00
test_iscsi.py Revert explicit usage of tgt-adm --conf option. 2012-09-25 21:09:49 +01:00
test_libvirt.py libvirt: Fix _cleanup_resize 2012-10-24 09:03:34 -05: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_metadata.py Stop network.api import on network import 2012-11-17 01:52:15 +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:35:09 -07:00
test_misc.py Makes sure tests don't leave lockfiles around 2012-08-17 17:26:42 +00:00
test_netapp.py Backport changes from Cinder to Nova-Volume 2012-09-12 12:43:44 -04:00
test_netapp_nfs.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 Replace builtin hash with MD5 to solve 32/64-bit issues. 2012-09-28 10:27:47 -05:00
test_notifications.py Stop network.api import on network import 2012-11-17 01:52:15 +00:00
test_nova_manage.py Update 'unlimited' quota value to '-1' in db 2012-09-19 18:43:16 -07:00
test_nova_rootwrap.py Typo fix: existant => existent 2012-08-22 11:26:13 -07:00
test_objectstore.py Alphabetize imports in nova/tests/ 2012-05-18 12:39:52 -07:00
test_pipelib.py Remove unused imports 2012-08-02 14:07:06 -07:00
test_plugin_api_extensions.py Remove unused imports 2012-08-17 13:35:05 +08:00
test_policy.py Remove hard-coded 'admin' role checking and use policy instead 2012-08-19 00:31:23 +08:00
test_powervm.py Fixes spawn method signature for PowerVM driver. 2012-08-29 22:25:46 -04:00
test_quota.py Don't include auto_assigned ips in usage 2012-09-19 13:49:47 -07:00
test_rbd.py add ability to clone images 2012-09-18 08:54:25 -07:00
test_service.py Remove unused imports 2012-08-17 13:35:05 +08:00
test_skip_examples.py
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_test.py Use rpc from openstack-common. 2012-06-20 12:57:21 -04:00
test_test_utils.py
test_utils.py Escape ec2 XML error responses 2012-09-04 12:21:14 -06:00
test_versions.py Remove a whole bunch of unused imports 2012-01-13 13:55:38 -08:00
test_virt.py Skip tests in OSX due to readlink compat 2012-09-04 13:33:47 -04:00
test_virt_drivers.py Add full python path to test stubbing modules for libvirt 2012-09-03 04:49:36 -07: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.py Adds new volume API extensions 2012-09-18 08:54:25 -07:00
test_volume_types.py Typo fix: existant => existent 2012-08-22 11:26:13 -07:00
test_volume_types_extra_specs.py Removes constraints from instance and volume types 2012-02-08 11:27:39 -08:00
test_volume_utils.py Simplify setting up test notifier 2012-09-07 09:23:58 +01:00
test_wsgi.py Typo fix: existant => existent 2012-08-22 11:26:13 -07:00
test_xenapi.py xenapi: Refactor snapshots during resize 2012-10-24 08:23:49 -05:00
test_xensm.py Remove unused imports 2012-08-17 13:35:05 +08:00
utils.py Cleanup of image service code 2012-06-27 14:31:35 -07:00