The commit is pushed to "branch-rh10-6.12.0-55.13.1.3.x.vz10-ovz" and will 
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.3.26.vz10
------>
commit e2181d0c6c7f38b1e978d092cbd515044e8b3718
Author: Aleksei Oladko <[email protected]>
Date:   Tue Dec 16 21:04:21 2025 +0000

    selftests: net: make ovs-dpctl.py fail when pyroute2 is unsupported
    
    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 successfuly and fall back to
    ovs-vsctl.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-120995
    
    Signed-off-by: Aleksei Oladko <[email protected]>
    
    Feature: fix selftests
---
 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/testing/selftests/net/openvswitch/ovs-dpctl.py
index 3caa6b8265b66..cdfffb574c1c7 100644
--- a/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
+++ b/tools/testing/selftests/net/openvswitch/ovs-dpctl.py
@@ -2583,7 +2583,7 @@ def parse_extract_field(
     prverscheck = pyroute2.__version__.split(".")
     if int(prverscheck[0]) == 0 and int(prverscheck[1]) < 6:
         print("Need to upgrade the python pyroute2 package to >= 0.6.")
-        sys.exit(0)
+        sys.exit(1)
 
     parser = argparse.ArgumentParser()
     parser.add_argument(
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to