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 D2A91A046B for ; Wed, 21 Aug 2019 09:28:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8E7C21BEEB; Wed, 21 Aug 2019 09:28:15 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C8D6C1BEEA for ; Wed, 21 Aug 2019 09:28:13 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Aug 2019 00:28:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,411,1559545200"; d="scan'208";a="169332520" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 21 Aug 2019 00:28:10 -0700 Received: from fmsmsx161.amr.corp.intel.com (10.18.125.9) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 21 Aug 2019 00:28:09 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX161.amr.corp.intel.com (10.18.125.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 21 Aug 2019 00:28:09 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.15]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.163]) with mapi id 14.03.0439.000; Wed, 21 Aug 2019 15:28:08 +0800 From: "Zhang, YanX A" 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/Gi6OhNzFEH+Uu2XXzU/qJM6acFNAww Date: Wed, 21 Aug 2019 07:28:06 +0000 Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1F4141A@SHSMSX105.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: 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_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" Tested-by: Zhang, YanX A -----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 when different vm use same tcp port to start qemu, it will connect failed. so delete the keygen info before connect it. Signed-off-by: lihong --- framework/qemu_kvm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py index c425f41..b= bed32d 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.hos= tfwd_addr[pos:] + os.system('ssh-keygen -R %s' % ssh_key) network_ready =3D True break =20 -- 2.7.4