From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E8788A0613 for ; Wed, 25 Sep 2019 09:13:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A963C2E8F; Wed, 25 Sep 2019 09:13:33 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0DC6C2D13 for ; Wed, 25 Sep 2019 09:13:31 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Sep 2019 00:13:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,547,1559545200"; d="scan'208";a="340326258" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.119.134]) by orsmga004.jf.intel.com with ESMTP; 25 Sep 2019 00:13:29 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Wed, 25 Sep 2019 07:48:50 +0800 Message-Id: <1569368930-13898-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] framework/qemu_libvirt: rm ssh keygen before connect to vm X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: lihong --- framework/qemu_libvirt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/qemu_libvirt.py b/framework/qemu_libvirt.py index d2edd31..5b25dec 100644 --- a/framework/qemu_libvirt.py +++ b/framework/qemu_libvirt.py @@ -817,6 +817,9 @@ class LibvirtKvm(VirtBase): while count: out = self.__control_session('ifconfig') if "10.0.2" in out: + pos = self.vm_ip.find(':') + ssh_key = '[' + self.vm_ip[:pos] + ']' + self.vm_ip[pos:] + os.system('ssh-keygen -R %s' % ssh_key) return True time.sleep(6) count -= 1 -- 2.7.4