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 673FBA0613 for ; Wed, 25 Sep 2019 09:18:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 43F482C30; Wed, 25 Sep 2019 09:18:02 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0FAF51E20 for ; Wed, 25 Sep 2019 09:18:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Sep 2019 00:17:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,547,1559545200"; d="scan'208";a="364242911" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 25 Sep 2019 00:17:59 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Sep 2019 00:17:59 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Sep 2019 00:17:59 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.23]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.195]) with mapi id 14.03.0439.000; Wed, 25 Sep 2019 15:17:57 +0800 From: "Zhang, YanX A" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/qemu_libvirt: rm ssh keygen before connect to vm Thread-Index: AQHVc3DKRdoJF1uiiUSh6N1zlRoU4Kc7+8eQ Date: Wed, 25 Sep 2019 07:17:56 +0000 Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1F490C4@SHSMSX105.ccr.corp.intel.com> References: <1569368930-13898-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1569368930-13898-1-git-send-email-lihongx.ma@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by: Zhang, YanX A -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong Sent: Wednesday, September 25, 2019 7:49 AM To: dts@dpdk.org Cc: Ma, LihongX Subject: [dts] [PATCH V1] framework/qemu_libvirt: rm ssh keygen before conn= ect to vm 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 d2= edd31..5b25dec 100644 --- a/framework/qemu_libvirt.py +++ b/framework/qemu_libvirt.py @@ -817,6 +817,9 @@ class LibvirtKvm(VirtBase): while count: out =3D self.__control_session('ifconfig') if "10.0.2" in out: + pos =3D self.vm_ip.find(':') + ssh_key =3D '[' + self.vm_ip[:pos] + ']' + self.vm_ip[pos:= ] + os.system('ssh-keygen -R %s' % ssh_key) return True time.sleep(6) count -=3D 1 -- 2.7.4