[dts] [PATCH V1] framework/qemu_libvirt: rm ssh keygen before connect to vm

Tu, Lijuan lijuan.tu at intel.com
Thu Sep 26 05:09:15 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Wednesday, September 25, 2019 7:49 AM
> To: dts at dpdk.org
> Cc: Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1] framework/qemu_libvirt: rm ssh keygen before
> connect to vm
> 
> Signed-off-by: lihong <lihongx.ma at intel.com>
> ---
>  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



More information about the dts mailing list