From tashi-commits-return-615-apmail-incubator-tashi-commits-archive=incubator.apache.org@incubator.apache.org Wed Aug 8 00:30:04 2012 Return-Path: X-Original-To: apmail-incubator-tashi-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-tashi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B4F7D212 for ; Wed, 8 Aug 2012 00:30:04 +0000 (UTC) Received: (qmail 55265 invoked by uid 500); 8 Aug 2012 00:30:04 -0000 Delivered-To: apmail-incubator-tashi-commits-archive@incubator.apache.org Received: (qmail 55240 invoked by uid 500); 8 Aug 2012 00:30:04 -0000 Mailing-List: contact tashi-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tashi-dev@incubator.apache.org Delivered-To: mailing list tashi-commits@incubator.apache.org Received: (qmail 55232 invoked by uid 99); 8 Aug 2012 00:30:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 00:30:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 00:30:01 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id F069423889D5; Wed, 8 Aug 2012 00:29:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1370613 - /incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Date: Wed, 08 Aug 2012 00:29:17 -0000 To: tashi-commits@incubator.apache.org From: stroucki@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120808002917.F069423889D5@eris.apache.org> 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()