diff options
author | Trey Morris <trey.morris@rackspace.com> | 2011-02-15 15:25:48 -0600 |
---|---|---|
committer | Trey Morris <trey.morris@rackspace.com> | 2011-02-15 15:25:48 -0600 |
commit | 503749849df73df1732583bc9452e7952bf78ac2 (patch) | |
tree | cfe9fe439f707b6e48de01345d8983a71ca2c12b | |
parent | 9d1bdde7efc7b8cb6aa8db6a86777393e838fe8e (diff) | |
download | nova-503749849df73df1732583bc9452e7952bf78ac2.tar.gz nova-503749849df73df1732583bc9452e7952bf78ac2.tar.xz nova-503749849df73df1732583bc9452e7952bf78ac2.zip |
moved reset network to after boot durrrrr...
-rw-r--r-- | nova/virt/xenapi/vmops.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index 00028cdaa..dd9f48ddf 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -134,9 +134,6 @@ class VMOps(object): VMHelper.create_vif(self._session, vm_ref, network_ref, instance.mac_address) - # call reset networking - self.reset_network(instance) - LOG.debug(_('Starting VM %s...'), vm_ref) self._session.call_xenapi('VM.start', vm_ref, False, False) instance_name = instance.name @@ -164,6 +161,10 @@ class VMOps(object): timer.stop() timer.f = _wait_for_boot + + # call reset networking + self.reset_network(instance) + return timer.start(interval=0.5, now=True) def _get_vm_opaque_ref(self, instance_or_vm): |