From nobody Fri May 3 16:53:07 2024 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 1539891075188643.5849379450218; Thu, 18 Oct 2018 12:31:15 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7AB9130842AC; Thu, 18 Oct 2018 19:31:13 +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 BA810611C7; Thu, 18 Oct 2018 19:31: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 3C7C9180B5B7; Thu, 18 Oct 2018 19:31:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w9IJKrup022365 for ; Thu, 18 Oct 2018 15:20:53 -0400 Received: by smtp.corp.redhat.com (Postfix) id A54775D756; Thu, 18 Oct 2018 19:20:53 +0000 (UTC) Received: from vhost2.laine.org (ovpn-117-190.phx2.redhat.com [10.3.117.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48EA16155A; Thu, 18 Oct 2018 19:20:53 +0000 (UTC) From: Laine Stump To: libvir-list@redhat.com, ymankad@redhat.com Date: Thu, 18 Oct 2018 15:20:44 -0400 Message-Id: <20181018192046.631944-2-laine@laine.org> In-Reply-To: <20181018192046.631944-1-laine@laine.org> References: <20181018192046.631944-1-laine@laine.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [tck PATCH 1/3] reduce required libvirt version in rpm spec 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 18 Oct 2018 19:31:14 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Some distros where we want to run libvirt-tck have stock libvirt versions lower than 4.4.0 (e.g. Fedora 28 has libvirt-4.1.0, and RHEL7 has libvirt-3.9.0). Reduce the version in the specfile Requires: so that we can get the tck installed without needing to upgrade to some newer unofficial libvirt build. Signed-off-by: Laine Stump Reviewed-by: Daniel P. Berrang=C3=A9 --- perl-Sys-Virt-TCK.spec.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-Sys-Virt-TCK.spec.PL b/perl-Sys-Virt-TCK.spec.PL index b91a7e7..6756f0d 100644 --- a/perl-Sys-Virt-TCK.spec.PL +++ b/perl-Sys-Virt-TCK.spec.PL @@ -34,7 +34,7 @@ License: GPLv2 Source: http://libvirt.org/sources/tck/%{appname}-v%{version}.tar.gz Url: http://libvirt.org/ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi= on)) -Requires: libvirt >=3D 4.4.0 +Requires: libvirt >=3D 3.9.0 %if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: perl-interpreter BuildRequires: perl-generators --=20 2.14.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:53:07 2024 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 1539891087459582.9031521336236; Thu, 18 Oct 2018 12:31:27 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 43EB33082B56; Thu, 18 Oct 2018 19:31:25 +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 EFBE8100034B; Thu, 18 Oct 2018 19:31:24 +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 8E9A018005B4; Thu, 18 Oct 2018 19:31:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w9IJKsZt022371 for ; Thu, 18 Oct 2018 15:20:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 394216364D; Thu, 18 Oct 2018 19:20:54 +0000 (UTC) Received: from vhost2.laine.org (ovpn-117-190.phx2.redhat.com [10.3.117.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id D07DF5D75E; Thu, 18 Oct 2018 19:20:53 +0000 (UTC) From: Laine Stump To: libvir-list@redhat.com, ymankad@redhat.com Date: Thu, 18 Oct 2018 15:20:45 -0400 Message-Id: <20181018192046.631944-3-laine@laine.org> In-Reply-To: <20181018192046.631944-1-laine@laine.org> References: <20181018192046.631944-1-laine@laine.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [tck PATCH 2/3] fix selinux/100-static-relabel-no test 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.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Thu, 18 Oct 2018 19:31:26 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This test disables auto-relabeling so that it can test if setting a user-defined label in the config will work. The problem is that the disk image used to boot is then not labelled correctly, and qemu can't open it. To circumvent this failure (which is *not* of the functionality we're testing), this patch just temporarily sets SELinux to permissive mode during the test, then sets it back during cleanup. Signed-off-by: Laine Stump Reviewed-by: Daniel P. Berrang=C3=A9 --- scripts/selinux/100-static-relabel-no.t | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/selinux/100-static-relabel-no.t b/scripts/selinux/100-= static-relabel-no.t index ab52534..733dbf3 100644 --- a/scripts/selinux/100-static-relabel-no.t +++ b/scripts/selinux/100-static-relabel-no.t @@ -32,10 +32,14 @@ use Test::More tests =3D> 6; use Sys::Virt::TCK; use Sys::Virt::TCK::SELinux; =20 +my $selinux_status =3D ""; my $tck =3D Sys::Virt::TCK->new(); my $conn =3D eval { $tck->setup(); }; BAIL_OUT "failed to setup test harness: $@" if $@; -END { $tck->cleanup if $tck; } +END { + system("setenforce", "1") if ($selinux_status eq "Enforcing"); + $tck->cleanup if $tck; +} =20 my $info; eval { @@ -58,6 +62,13 @@ SKIP: { ->disk(src =3D> $disk, dst =3D> "vdb", type =3D> "file") ->as_xml; =20 + chomp($selinux_status =3D `getenforce`); + diag "selinux is $selinux_status"; + if ($selinux_status eq "Enforcing") { + diag "Temporarily setting SELinux to Permissive mode"; + system("setenforce", "0"); + } + diag "Creating a new transient domain"; my $dom; ok_domain(sub { $dom =3D $conn->create_domain($xml) }, "created transi= ent domain object"); --=20 2.14.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:53:07 2024 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 1539891099232594.4259647693973; Thu, 18 Oct 2018 12:31:39 -0700 (PDT) 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 113713082B62; Thu, 18 Oct 2018 19:31:37 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C2C62675AC; Thu, 18 Oct 2018 19:31:36 +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 3888C4BB79; Thu, 18 Oct 2018 19:31:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w9IJKsI9022379 for ; Thu, 18 Oct 2018 15:20:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id C4E165D756; Thu, 18 Oct 2018 19:20:54 +0000 (UTC) Received: from vhost2.laine.org (ovpn-117-190.phx2.redhat.com [10.3.117.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63DC563642; Thu, 18 Oct 2018 19:20:54 +0000 (UTC) From: Laine Stump To: libvir-list@redhat.com, ymankad@redhat.com Date: Thu, 18 Oct 2018 15:20:46 -0400 Message-Id: <20181018192046.631944-4-laine@laine.org> In-Reply-To: <20181018192046.631944-1-laine@laine.org> References: <20181018192046.631944-1-laine@laine.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [tck PATCH 3/3] double timeout on nwfilter 060-concurrency test 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.45]); Thu, 18 Oct 2018 19:31:37 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The previous timeout of 5 minutes works out okay on 4 core 8 thread AMD hardware, but isn't enough on, for example, a 2 core virtual machine running on the same hardware - it takes about 4 minutes on the former, and 8.5 minutes on the latter. So let's double the timeout to 10 minutes and see if anybody is still complaining. Signed-off-by: Laine Stump Reviewed-by: Daniel P. Berrang=C3=A9 --- scripts/nwfilter/nwfilter_concurrent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nwfilter/nwfilter_concurrent.sh b/scripts/nwfilter/nwf= ilter_concurrent.sh index c42dd78..88ac876 100644 --- a/scripts/nwfilter/nwfilter_concurrent.sh +++ b/scripts/nwfilter/nwfilter_concurrent.sh @@ -244,7 +244,7 @@ runTest() =20 # Test runs for a maximum of 5 minutes now=3D`date +%s` - test_end=3D$(($now + 5 * 60)) + test_end=3D$(($now + 10 * 60)) =20 while :; do --=20 2.14.5 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list