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 52BCCA2EFC for ; Fri, 20 Sep 2019 08:18:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 27B781F2BA; Fri, 20 Sep 2019 08:18:07 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 688DF1F2B9 for ; Fri, 20 Sep 2019 08:18:05 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 23:18:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,527,1559545200"; d="scan'208";a="181717055" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 19 Sep 2019 23:18:04 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:18:03 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 19 Sep 2019 23:18:03 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 19 Sep 2019 23:18:03 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.89]) with mapi id 14.03.0439.000; Fri, 20 Sep 2019 14:18:01 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] framework/qemu_kvm: rm ssh keygen before connect to vm Thread-Index: AQHVV/Gim2+DhKTaf0OkM+7Ls56Hjqc0Rl/A Date: Fri, 20 Sep 2019 06:18:00 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB24AD2@SHSMSX101.ccr.corp.intel.com> References: <1566345724-514-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1566345724-514-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTVhZTliNDItMWQ2OC00MzZiLTgwMjItMjE2YjEzYTI5ZTdjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaXdQRFJWXC95UzFPZG5CYys0dU5keXMyVzkyd0k5NEZkbGN0MmQxMU5cLzAwWEdnN3ZZVElaeXJhOEkrS2NGXC9yaiJ9 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_kvm: 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Wednesday, August 21, 2019 8:02 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] framework/qemu_kvm: rm ssh keygen before > connect to vm >=20 > when different vm use same tcp port to start qemu, it will connect failed= . > so delete the keygen info before connect it. >=20 > Signed-off-by: lihong > --- > framework/qemu_kvm.py | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py index > c425f41..bbed32d 100644 > --- a/framework/qemu_kvm.py > +++ b/framework/qemu_kvm.py > @@ -1443,6 +1443,9 @@ class QEMUKvm(VirtBase): > if getattr(self, 'net_nic_pci', None) is None: > self.__get_vmnet_pci() > if self.control_command("network") =3D=3D "Success": > + pos =3D self.hostfwd_addr.find(':') > + ssh_key =3D '[' + self.hostfwd_addr[:pos] + ']' + > self.hostfwd_addr[pos:] > + os.system('ssh-keygen -R %s' % ssh_key) > network_ready =3D True > break >=20 > -- > 2.7.4