You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by st...@apache.org on 2012/08/08 00:29:17 UTC
svn commit: r1370613 -
/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Author: stroucki
Date: Wed Aug 8 00:29:17 2012
New Revision: 1370613
URL: http://svn.apache.org/viewvc?rev=1370613&view=rev
Log:
qemu: we've not included subprocess in our namespace, so add those in. Somehow the error message got put into the transport cookie, and that blocked migrations...
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=1370613&r1=1370612&r2=1370613&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Wed Aug 8 00:29:17 2012
@@ -733,7 +733,7 @@ class Qemu(VmControlInterface):
def __checkPortListening(self, port):
# XXXpipe: find whether something is listening yet on the port
- p = subprocess.Popen("netstat -ln | grep 0.0.0.0:%d | wc -l" % (port), shell = True, stdin = PIPE, stdout = PIPE, close_fds = True)
+ p = subprocess.Popen("netstat -ln | grep 0.0.0.0:%d | wc -l" % (port), shell = True, stdin = subprocess.PIPE, stdout = subprocess.PIPE, close_fds = True)
(stdin, stdout) = (p.stdin, p.stdout)
stdin.close()
r = stdout.read()