From patchwork Mon Aug 13 13:56:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 10708 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1276223E56 for ; Mon, 13 Aug 2012 13:56:15 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id D5817A18141 for ; Mon, 13 Aug 2012 13:56:14 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so3226482yhp.11 for ; Mon, 13 Aug 2012 06:56:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=S2VkboWxgDsm92iK/lIFfGIt/qoEu/ZRHJEu7bP1uK4=; b=QreSYLjthRlHKxeSnl4UNZkhqecvoNT5n2CrOQAZBvrbz6cvxRLNPc0EseMkm6bEFL xNPjItwpYQMqA+V+/6SDZdyWCpySaCa7SEBHvo1+Q7wh65e/VglW2IroiXRixQg7H7uU ToIvUn3Srwn95z65qprvHjoUYX9JG4BSgz7xHqQTdfywzoXFnkFgKEVphEzJe6xm0CdV sKs4hbSMCng27xiN3VL2KqBOnO0PseRF3uhYb2NuK7xpP1/7EJRW8rkRk/hTNhJYwKqP fRYsBGY5D9UDI6DnBdlz6EjzhU+Bi3iPWO3qgPpqI5CesvO/xahSYhkb/2a0B/Fh9/SK 6dWQ== Received: by 10.50.186.131 with SMTP id fk3mr5621969igc.31.1344866174191; Mon, 13 Aug 2012 06:56:14 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp179229igc; Mon, 13 Aug 2012 06:56:12 -0700 (PDT) Received: by 10.217.1.206 with SMTP id n56mr6076186wes.151.1344866171519; Mon, 13 Aug 2012 06:56:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id d63si9725881wef.40.2012.08.13.06.56.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 06:56:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1T0v7q-0004Qy-Vp for ; Mon, 13 Aug 2012 13:56:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id E1664E0276 for ; Mon, 13 Aug 2012 13:56:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 368 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 368: workaround fix for TIME_WAIT fast model bustage as discussed in: https://bugs.launchpad.net/lava-... Message-Id: <20120813135610.26170.93768.launchpad@ackee.canonical.com> Date: Mon, 13 Aug 2012 13:56:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15791"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: eef2e16ce1ccf329a1627c46eac1119b928fc4c1 X-Gm-Message-State: ALoCoQlLaa2ps4a47cRTX42kitrS9Zy3TB1zXATQzAa0ft3EhRXV9amrg/seWGXz8zAz/qZ/XEjY ------------------------------------------------------------ revno: 368 fixes bug: https://launchpad.net/bugs/1034809 author: Alexander Sack committer: Andy Doan branch nick: lava-dispatcher timestamp: Fri 2012-08-10 09:54:27 -0500 message: workaround fix for TIME_WAIT fast model bustage as discussed in: https://bugs.launchpad.net/lava-dispatcher/+bug/1034809 here we wait till TIME_WAIT is gone, which will fix that we sometimes cant connect adb after rebooting fastmodel. see https://code.launchpad.net/~asac/lava-dispatcher/logged-commands-getstatusoutput-wrapper-util/+merge/119029 for prereq merge proposal. modified: lava_dispatcher/client/fastmodel.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/client/fastmodel.py' --- lava_dispatcher/client/fastmodel.py 2012-08-08 22:26:59 +0000 +++ lava_dispatcher/client/fastmodel.py 2012-08-10 14:54:27 +0000 @@ -28,6 +28,7 @@ import shutil import stat import threading +import time from lava_dispatcher.client.base import ( CommandRunner, @@ -236,6 +237,11 @@ self._fix_perms() sim_cmd = self._get_sim_cmd() + logging.info('ensuring ADB port is ready') + while logging_system("sh -c 'netstat -an | grep 5555.*TIME_WAIT'") == 0: + logging.info ("waiting for TIME_WAIT 5555 socket to finish") + time.sleep(3) + # the simulator proc only has stdout/stderr about the simulator # we hook up into a telnet port which emulates a serial console logging.info('launching fastmodel with command %r' % sim_cmd)