From nobody Thu Apr 9 21:57:45 2026 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69ED219CD03; Fri, 6 Mar 2026 00:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755303; cv=none; b=hQu47qpdrKYuVXQzmZzhcmQCeGbxhTUmcsS2a91Eea3WJOAjvNsxc4urzkMLNoFjClqEXFZerlzruAy+qRG+eSMt8hbZymBCZK3rFZ+VrcZKB07vVwBLlYui8/XWDduX/7JF5UG8/A1c/YTXKT0F/EarkX2CvOtndyD4vugTCpU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772755303; c=relaxed/simple; bh=NipXyq8Olunpd4nLlWBIUAlNUcuzVjyuhISS0mQU4mU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H+/7sieH8F0EANQ79vM4djf2MQHuAYsYlk6RTgUjqQtA+xDKDePGnM+S+cXXhHWpcHxkLAY/N/esg2SCeMYlTtegXlae5IXT/SB9C2ipxzTQK6/0fhe3yf+UbfJkwcccJqmGdmw/2WFh1TCP23kohkiffW2ipsWtDS4pIOI74fk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=EiBaFP+6; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="EiBaFP+6" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=IpUU4MbJSN8PkPmUt1IzIbg/Bcu1M7gnSljEdtG9dlo=; b=EiBaFP+62SgY hzE7YHWHnvQWN8et7YvBMAi7UiryoWw27nB82dxPExDZX35KA+Wdtla0Es1x/kBUBctebwiZlB2TT wEFBFinZBmE7bHNlpocvro34zMDlzhPWgpntf72oOcWidP30N56v2G2uQerQpLIN+FqxbN8OJQHUE uqDTdlpou6IdCHXvLjVjGHGzI20gAuIu/zZDhtCQaH0GNtXO1T5oVapJ36Ul0EflKhcgqxgYD0lc6 o0C6iMBHpbh6jwqP3/qEL4JWDdjZ+DWilWbHA+JOKR/uRWO9mrWuRdilsiIlZqITGSNnPWxEsatFD cMyR3+lcMZAS1/tA57d1DA==; Received: from [130.117.225.5] (helo=dev004.aci.vzint.dev) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vyIbp-006Fox-0V; Fri, 06 Mar 2026 01:01:32 +0100 Received: from dev004.aci.vzint.dev (localhost [127.0.0.1]) by dev004.aci.vzint.dev (8.16.1/8.16.1) with ESMTPS id 62601Yaa519095 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 6 Mar 2026 00:01:34 GMT Received: (from root@localhost) by dev004.aci.vzint.dev (8.16.1/8.16.1/Submit) id 62601YSu519094; Fri, 6 Mar 2026 00:01:34 GMT From: Aleksei Oladko To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Aaron Conole , Ilya Maximets , Eelco Chaudron , Stefano Brivio Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, dev@openvswitch.org, Aleksei Oladko Subject: [PATCH net v3 2/6] selftests: net: make ovs-dpctl.py fail when pyroute2 is unsupported Date: Fri, 6 Mar 2026 00:01:23 +0000 Message-ID: <20260306000127.519064-3-aleksey.oladko@virtuozzo.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> References: <20260306000127.519064-1-aleksey.oladko@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The pmtu.sh kselftest configures OVS using ovs-dpctl.py and falls back to ovs-vsctl only when ovs-dpctl.py fails. However, ovs-dpctl.py exits with a success status when the installed pyroute2 package version is lower than 0.6, even though the OVS datapath is not configured. As a result, pmtu.sh assumes that the setup was successful and continues running the test, which later fails due to the missing OVS configuration. Fix the exit code handling in ovs-dpctl.py so that pmtu.sh can detect that the setup did not complete successfully and fall back to ovs-vsctl. Fixes: 962e8a01eab9 ("selftests: openvswitch: Add version check for pyroute= 2") Signed-off-by: Aleksei Oladko Reviewed-by: Aaron Conole --- tools/testing/selftests/net/openvswitch/ovs-dpctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py b/tools/t= esting/selftests/net/openvswitch/ovs-dpctl.py index b521e0dea506..848f61fdcee0 100644 --- a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py +++ b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py @@ -2583,7 +2583,7 @@ def main(argv): prverscheck =3D pyroute2.__version__.split(".") if int(prverscheck[0]) =3D=3D 0 and int(prverscheck[1]) < 6: print("Need to upgrade the python pyroute2 package to >=3D 0.6.") - sys.exit(0) + sys.exit(1) =20 parser =3D argparse.ArgumentParser() parser.add_argument( --=20 2.43.0