From patchwork Tue May 7 18:49:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Terceiro X-Patchwork-Id: 16735 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0D969238FD for ; Tue, 7 May 2013 18:49:41 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id bv4sf1443536qab.5 for ; Tue, 07 May 2013 11:49:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :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:x-original-sender :x-original-authentication-results:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=U+YnsRM2WKMkjUT2ZSadgJ41d5vJC3tsMuKGpu4ivJ4=; b=nIM1gF97Csv0RpSXMpaIzk4tRup/4IghLKqbu09c/1SAJZlr4DZN64MUvaA/4yYH30 lY5+C7P7uJovnXEEhpLITthlztl6EUB/cRBSJFzvASeaI4i5eU6xxWavy17wz2H/vnHX 8b7uxxvjvSuya1NSeyTJlcCd9HgVHi+vVAQdpAB6AnLk/vJddKmCvBsHUgHs8IQCns+9 Ey1Xb3h9IhXZ4rEKQ7UxTKS/AjUU3keS1UTHDoZKrFOU8AP71jSAQgpGNxkGJITvuws/ 5/ggkNDnk0WJUvoUaxDnz/lcl1k/fhSrq8m37OvyDGg4+Pr6f+806iz9rAklIL31j0Uq XgSw== X-Received: by 10.236.139.134 with SMTP id c6mr1429939yhj.7.1367952561365; Tue, 07 May 2013 11:49:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.2 with SMTP id ee2ls561253qeb.11.gmail; Tue, 07 May 2013 11:49:21 -0700 (PDT) X-Received: by 10.220.46.197 with SMTP id k5mr2183645vcf.40.1367952561035; Tue, 07 May 2013 11:49:21 -0700 (PDT) Received: from mail-vb0-x232.google.com (mail-vb0-x232.google.com [2607:f8b0:400c:c02::232]) by mx.google.com with ESMTPS id ex4si5813135vcb.70.2013.05.07.11.49.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 11:49:20 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::232; Received: by mail-vb0-f50.google.com with SMTP id w16so808105vbb.23 for ; Tue, 07 May 2013 11:49:20 -0700 (PDT) X-Received: by 10.52.36.115 with SMTP id p19mr1854947vdj.8.1367952560777; Tue, 07 May 2013 11:49:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp115606veb; Tue, 7 May 2013 11:49:19 -0700 (PDT) X-Received: by 10.194.58.163 with SMTP id s3mr5591289wjq.6.1367952559405; Tue, 07 May 2013 11:49:19 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id a10si934665wic.62.2013.05.07.11.49.18 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 07 May 2013 11:49:19 -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; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1UZmww-0005Fs-Rd for ; Tue, 07 May 2013 18:49:18 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id C4D79E00DD for ; Tue, 7 May 2013 18:49:18 +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: 595 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 595: [Nicholas Schutt] erase the beginning of the disk before deploying Message-Id: <20130507184918.27886.52688.launchpad@ackee.canonical.com> Date: Tue, 07 May 2013 18:49:18 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16598"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 6740fe461ddca301e9602986a41576c50425c797 X-Gm-Message-State: ALoCoQlHY9ZEtbYvR4ZX03WeP6eeUOWDdkEQd6sfpPrfkG88gekPH+5/J7oH0lc7OTtiXHvdAl/D X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Merge authors: Nicholas Schutt (nick-schutt) Related merge proposals: https://code.launchpad.net/~nick-schutt/lava-dispatcher/nicks-highbank-support/+merge/160356 proposed by: Nicholas Schutt (nick-schutt) review: Approve - Antonio Terceiro (terceiro) ------------------------------------------------------------ revno: 595 [merge] committer: Antonio Terceiro branch nick: trunk timestamp: Tue 2013-05-07 15:47:32 -0300 message: [Nicholas Schutt] erase the beginning of the disk before deploying This will corrupt the existing contents of the disk, so that if the current deploy fails, the system will not boot the previously-deployed image. modified: lava_dispatcher/device/highbank.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/device/highbank.py' --- lava_dispatcher/device/highbank.py 2013-04-22 13:32:10 +0000 +++ lava_dispatcher/device/highbank.py 2013-04-22 18:45:28 +0000 @@ -91,6 +91,9 @@ def _deploy_image(self, image_file, device): with self._as_master() as runner: + # erase the first part of the disk to make sure the new deploy works + runner.run("dd if=/dev/zero of=%s bs=4M count=4" % device, timeout=1800) + # compress the image to reduce the transfer size if not image_file.endswith('.bz2') and not image_file.endswith('gz'): os.system('bzip2 -9v ' + image_file) @@ -157,7 +160,6 @@ else: logging.warning("unknown partition type for resize: %s" % parttype) - @contextlib.contextmanager def file_system(self, partition, directory): logging.info('attempting to access master filesystem %r:%s' %