From nobody Thu May 15 04:10:15 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1519959014636286.35855317287815; Thu, 1 Mar 2018 18:50:14 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C795C83F43; Fri, 2 Mar 2018 02:50:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 790655D6A3; Fri, 2 Mar 2018 02:50:12 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C369C18033ED; Fri, 2 Mar 2018 02:50:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w222o9iw016109 for ; Thu, 1 Mar 2018 21:50:10 -0500 Received: by smtp.corp.redhat.com (Postfix) id A91EB9C072; Fri, 2 Mar 2018 02:50:09 +0000 (UTC) Received: from vhost2.laine.org (ovpn-117-175.phx2.redhat.com [10.3.117.175]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3FEA59C062 for ; Fri, 2 Mar 2018 02:50:09 +0000 (UTC) From: Laine Stump To: libvir-list@redhat.com Date: Thu, 1 Mar 2018 21:49:57 -0500 Message-Id: <20180302025000.26919-2-laine@laine.org> In-Reply-To: <20180302025000.26919-1-laine@laine.org> References: <20180302025000.26919-1-laine@laine.org> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Subject: [libvirt] [tck PATCH v2 1/4] nwfilter tests: auto-add test appliance ssh key to known_hosts on host X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 02 Mar 2018 02:50:13 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Without this option, attempts to ssh into the test appliance will fail unless someone has previously ssh'ed into the appliance manually and accepted its key. Signed-off-by: Laine Stump Reviewed-by: Daniel P. Berrang=C3=A9 --- New in V2. This isn't necessarily related to the $subject of the cover letter, but it's easier to send it along with the other patches. scripts/nwfilter/210-no-mac-spoofing.t | 3 ++- scripts/nwfilter/220-no-ip-spoofing.t | 3 ++- scripts/nwfilter/230-no-mac-broadcast.t | 3 ++- scripts/nwfilter/240-no-arp-spoofing.t | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/nwfilter/210-no-mac-spoofing.t b/scripts/nwfilter/210-= no-mac-spoofing.t index 3438f4a..148fbeb 100644 --- a/scripts/nwfilter/210-no-mac-spoofing.t +++ b/scripts/nwfilter/210-no-mac-spoofing.t @@ -92,7 +92,8 @@ ok($ping =3D~ "10 received", "ping $guestip test"); diag "ssh'ing into $guestip"; my $ssh =3D Net::OpenSSH->new($guestip, user =3D> "root", - password =3D> $tck->root_password()); + password =3D> $tck->root_password(), + master_opts =3D> [-o =3D> "StrictHostKeyChecki= ng=3Dno"]); =20 # now bring eth0 down, change MAC and bring it up again diag "fiddling with mac"; diff --git a/scripts/nwfilter/220-no-ip-spoofing.t b/scripts/nwfilter/220-n= o-ip-spoofing.t index 9e1bb70..09bd51c 100644 --- a/scripts/nwfilter/220-no-ip-spoofing.t +++ b/scripts/nwfilter/220-no-ip-spoofing.t @@ -75,7 +75,8 @@ ok($ebtable =3D~ "$guestip", "check ebtables entry"); diag "ssh'ing into $guestip"; my $ssh =3D Net::OpenSSH->new($guestip, user =3D> "root", - password =3D> $tck->root_password()); + password =3D> $tck->root_password(), + master_opts =3D> [-o =3D> "StrictHostKeyChecki= ng=3Dno"]); =20 # now bring eth0 down, change IP and bring it up again diag "preparing ip spoof"; diff --git a/scripts/nwfilter/230-no-mac-broadcast.t b/scripts/nwfilter/230= -no-mac-broadcast.t index 758005c..6f5318a 100644 --- a/scripts/nwfilter/230-no-mac-broadcast.t +++ b/scripts/nwfilter/230-no-mac-broadcast.t @@ -86,7 +86,8 @@ system("/usr/sbin/tcpdump -v -i virbr0 -n host 192.168.12= 2.255 and ether host ff diag "ssh'ing into $guestip"; my $ssh =3D Net::OpenSSH->new($guestip, user =3D> "root", - password =3D> $tck->root_password()); + password =3D> $tck->root_password(), + master_opts =3D> [-o =3D> "StrictHostKeyCheck= ing=3Dno"]); =20 # now generate a mac broadcast paket=20 diag "generate mac broadcast"; diff --git a/scripts/nwfilter/240-no-arp-spoofing.t b/scripts/nwfilter/240-= no-arp-spoofing.t index dfc8e08..a8ab7a5 100644 --- a/scripts/nwfilter/240-no-arp-spoofing.t +++ b/scripts/nwfilter/240-no-arp-spoofing.t @@ -89,7 +89,8 @@ system("/usr/sbin/tcpdump -v -i virbr0 not ip > /tmp/tcp= dump.log &"); diag "ssh'ing into $guestip"; my $ssh =3D Net::OpenSSH->new($guestip, user =3D> "root", - password =3D> $tck->root_password()); + password =3D> $tck->root_password(), + master_opts =3D> [-o =3D> "StrictHostKeyChecki= ng=3Dno"]); =20 # now generate a arp spoofing packets=20 diag "generate arpspoof script"; --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list