incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1370637 - /incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Date Wed, 08 Aug 2012 02:33:55 GMT
Author: stroucki
Date: Wed Aug  8 02:33:55 2012
New Revision: 1370637

URL: http://svn.apache.org/viewvc?rev=1370637&view=rev
Log:
qemu: make note on hostIds, and the need make sure they match ours in case we accept a migrated
instance
qemu: set state to running to avoid persistent states of MigrateTrans from the origin host
when the NM restarts

Modified:
    incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py

Modified: incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py?rev=1370637&r1=1370636&r2=1370637&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Wed Aug  8 02:33:55 2012
@@ -593,6 +593,9 @@ class Qemu(VmControlInterface):
 		child.ptyFile = None
 		child.vncPort = -1
 		child.instance.vmId = child.pid
+		# XXXstroucki what about our hostId?
+		# we need to make sure we don't report up a VM
+		# with an inaccurate hostId.
 
 		# Add a token to this new child object so that
 		# we don't mistakenly clean up when matchHostPids
@@ -756,6 +759,7 @@ class Qemu(VmControlInterface):
 		(vmId, cmd) = self.__startVm(instance, "tcp:0.0.0.0:%d" % (port))
 		transportCookie = cPickle.dumps((port, vmId, socket.gethostname()))
 		child = self.__getChildFromPid(vmId)
+		child.instance.state = InstanceState.Running
 		child.cmd = cmd
 		child.transportCookie = transportCookie
 		self.__saveChildInfo(child)



Mime
View raw message