From patchwork Wed Oct 31 17:19:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jiri Zupka X-Patchwork-Id: 1680451 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7BE463FDDA for ; Wed, 31 Oct 2012 17:20:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755428Ab2JaRT6 (ORCPT ); Wed, 31 Oct 2012 13:19:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46672 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754393Ab2JaRT5 (ORCPT ); Wed, 31 Oct 2012 13:19:57 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9VHJag9005720 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 31 Oct 2012 13:19:36 -0400 Received: from jzupka-pc.local.com (dhcp-26-242.brq.redhat.com [10.34.26.242]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9VHJWId001215; Wed, 31 Oct 2012 13:19:34 -0400 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=BDupka?= To: autotest@test.kernel.org, kvm@vger.kernel.org, kvm-autotest@redhat.com, lmr@redhat.com, ldoktor@redhat.com, jzupka@redhat.com Subject: [Autotest][PATCH 1/4] virt: Adds support for cancel migration in multi-host tests. Date: Wed, 31 Oct 2012 18:19:25 +0100 Message-Id: <1351703968-27007-2-git-send-email-jzupka@redhat.com> In-Reply-To: <1351703968-27007-1-git-send-email-jzupka@redhat.com> References: <1351703968-27007-1-git-send-email-jzupka@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 1) Start migration with stressed VM. 2) Wait cancel_delay and then cancel migration. 3) Check if machine is alive on source host. 4) Stop stress of VM. 5) Migrate machine again. 6) Check if machine is alive on destination host. Signed-off-by: Ji?í Župka --- virttest/utils_test.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/virttest/utils_test.py b/virttest/utils_test.py index 13225d0..eda2099 100644 --- a/virttest/utils_test.py +++ b/virttest/utils_test.py @@ -759,7 +759,7 @@ class MultihostMigration(object): mig_error = True raise finally: - if not mig_error: + if not mig_error and cancel_delay is None: self._hosts_barrier(self.hosts, mig_data.mig_id, 'test_finihed',