From: Lucas Meneghel Rodrigues Subject: [PATCH 4/4] KVM test: unattended_install: Fix the background migration code Date: Tue, 27 Sep 2011 14:27:54 -0300 Message-ID: <1317144474-16447-5-git-send-email-lmr@redhat.com> References: <1317144474-16447-1-git-send-email-lmr@redhat.com> Cc: Lucas Meneghel Rodrigues To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28437 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729Ab1I0R2K (ORCPT ); Tue, 27 Sep 2011 13:28:10 -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 p8RHSALq027758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Sep 2011 13:28:10 -0400 In-Reply-To: <1317144474-16447-1-git-send-email-lmr@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Currently we use initrd and kernel params to perform unattended install in all supported linux guests. Before that, we used to remove those params from the qemu params because they alledgedly 'broke' the migration. Well, turns out this code renders our migrate in background code path useless, and it does not appear to break migration on the tests I've made. So, let's just get rid of it and be happy. Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/tests/unattended_install.py | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/client/tests/kvm/tests/unattended_install.py b/client/tests/kvm/tests/unattended_install.py index 023d00f..b1d23f6 100644 --- a/client/tests/kvm/tests/unattended_install.py +++ b/client/tests/kvm/tests/unattended_install.py @@ -611,16 +611,6 @@ def run_unattended_install(test, params, env): pass if migrate_background: - # Drop the params which may break the migration - # Better method is to use dnsmasq to do the - # unattended installation - if vm.params.get("initrd"): - vm.params["initrd"] = None - if vm.params.get("kernel"): - vm.params["kernel"] = None - if vm.params.get("extra_params"): - vm.params["extra_params"] = re.sub("--append '.*'", "", - vm.params["extra_params"]) vm.migrate(timeout=mig_timeout, protocol=mig_protocol) else: time.sleep(1) -- 1.7.6