summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Garbutt <john.garbutt@rackspace.com>2013-06-07 14:30:53 +0100
committerGerrit Code Review <review@openstack.org>2013-06-11 10:44:53 +0000
commit0107ce638b5c75bf112d74aab62914ffa5033a96 (patch)
treeaa81b18c8dd886084d0657371c100222aa0bc0b2
parent685228d96b7d40f537cf6144014234e24e8cd7fd (diff)
xenapi: ensure instance metadata always injected into xenstore
It is possible to use the agent, cloud-init and config drive together on a single server. In this case we should still be injecting the instance metadata. The current code is inconsistent between spawn and migrations. The correct approach is to always inject the data into xenstore. fixes bug 1188618 Change-Id: I253b34234544cff353985a5b53ec084ea332535a
-rw-r--r--nova/virt/xenapi/vmops.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py
index e178d08fd..fc3978ef7 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -508,11 +508,7 @@ class VMOps(object):
disk_image_type)
self._setup_vm_networking(instance, vm_ref, vdis, network_info,
rescue)
-
- # NOTE(mikal): file injection only happens if we are _not_ using a
- # configdrive.
- if not configdrive.required_by(instance):
- self.inject_instance_metadata(instance, vm_ref)
+ self.inject_instance_metadata(instance, vm_ref)
return vm_ref