From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 47FB18013F for ; Mon, 31 Aug 2026 23:43:38 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 67VNgPOL032035; Tue, 1 Sep 2026 02:42:25 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 67VNgPOL032035 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="VS0xLr11" Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 67VNgK3G032006 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Sep 2026 02:42:20 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 67VNgK3G032006 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-482e05af072so2370419f8f.3 for ; Mon, 31 Aug 2026 16:42:20 -0700 (PDT) X-Gm-Message-State: AFuF++kWGp/9b3QI+G98edAWcD7uzD2W4P7QyOCe83SmxiZFYXzgRMv1 3JKo7j9cnJF1mcPdLelXXQTIgOcRz/xpq3ETHmz4HdVWwabN/p9fTBf9zfjhFaHU0t8pK/NgNW8 kDhYn6/0soSOnhvdr76yfLgHGMcyLFDccqO9c98zIu64kmvqL+UhQzQ== X-Gm-Gg: AYBFou15YhCL9gvElQy4Mc8oxmGpPzIkv3GI+Jr2CTZkDFi9yqO7q+BhZ0hS6CAXYQO sL0A68RXRv/9XZkXtVy0DLEX7SpSI2TUtieEpbfnl/3pwngISYLXO+k8wtOorxwJqHWXL49s26f CpleyNfBXtVj2z+8H9Clwf3a04H56OAanxPa/e+EVdPmvJfa1Yo1geZrdCOBXN6e0oAFetEETjz N/7CI3Dp5x2mO92OkOH6fSWbI1VWCQJ0Lte/ipKnRogPWppTK3Rd8nFrpj07xP0O1yixRQ4LKdI 2rP/ZUVud1hzlG/Mwm38Tlvb4sGXiyof1FU7Ve22eJ6YdVWZMP95CquxyrprW2RlDxCdD4zW/ZU Rikk2Z60r2k4b8ANvxwReRX9E X-Received: by 2002:a05:6000:653:b0:482:fa3b:fab2 with SMTP id ffacd0b85a97d-482fa3bfcd5mr46430966f8f.19.1788219740344; Mon, 31 Aug 2026 16:42:20 -0700 (PDT) X-Received: by 2002:a05:6000:653:b0:482:fa3b:fab2 with SMTP id ffacd0b85a97d-482fa3bfcd5mr46430916f8f.19.1788219739968; Mon, 31 Aug 2026 16:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788219739; cv=none; d=google.com; s=arc-20260327; b=JUlXXMHvko2zexJd//sPgVHyi0JRhQECOmhVFXIJwThmags/dXRL5iIBjHd7KwSv1X Citf8qO311mXG18XZEjsSNN3LBmi2mHIaPvc+AMr+Z6u9KFmq0trYZaIz307MXKPVHWi jWaBvkBSC5Zrec/paDWgbyDEZ4yJ/0u/YiER9Do5msjLosoRX3YkU+u5Sdocy5vCACsD JRo786b7VISH39ta5kmO+KvB+UWZ2rmvhqVoKH0TgZ5dABhJqDeeE5ZPO42kgHDVvup0 Ix4cTM9HufuRwrLTtoS3GuVof98b/DFWUS+QKYYlDzcY7jxXDYWZVv3or0iW2NmP+ZB5 jsMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wwuLAXOihu36a02hv3qppcA9TiUAnsXMfz1onptXq5g=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=AZro09eOd/fZmblMW7AMMqycfcfhFKDXgl6qpmhDOdR6AA4Sccj2LgeuuRlzgqJvJ9 f9VUpM74efozkuLomDNEQv1ll2KOabnxkSkNaRkTazg6BlzhBtk6j+14zcr2wDDs4Xz/ x12/l/cEsfQqChFCiAc5y99MryU+QKIO/eQrAvyhcoqp1WcDzBNwsSPgBJFS50GQ2x89 hXaRZpWrp7FB4ayNalUYTG9Uib4uYUXMo/XN+tKBBmuyIk4cU3woW5SB4xh88M/fjrwV 6R/SPNm7e7/bbFNzGnkACfOfzljosOa38FaGvuLeWq8nOhgOTbY7k4fHUWTOUJD3VHe/ i89Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=VS0xLr11; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48442d718afsi802957f8f.208.2026.08.31.16.42.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 16:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=VS0xLr11; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com 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=wwuLAXOihu36a02hv3qppcA9TiUAnsXMfz1onptXq5g=; b=VS0xLr117V3j D4IWvWqY0pTLUM7HcKfYRaFZhqxpVMHF2H9pFayI5BqTaOXb+2d008pMLeZAv+BKHB3UPkE/ovUJF iwE+1vRHJxtPjYCBAsmJR2ag6/9ei9IdarrMFWOhpghofYbwwiObRbJ6qcWLckNDqBd6Z4WVX0CuA yfoT86oMPi5/qkygUyXCZTGNdVGLYBNQIK6CE+CexNZ8G4/vhZJSpHDz0UqBBrOaBSccifm2AHLaw 3ZXCWOmfzwvqW4nwdL5/eCQz0RLgVHv0LUqGR1J7Z4DHMt0l01l/AtNTqRnB/WAMqFNmUur/8+J7L xLiG3oAwfYDoynVFriO+DA==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1x1BbU-00Alra-2o; Tue, 01 Sep 2026 01:42:10 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Tue, 1 Sep 2026 02:41:49 +0300 Message-ID: <20260831234217.1649428-2-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260831234217.1649428-1-eva.kurchatova@virtuozzo.com> References: <20260831234217.1649428-1-eva.kurchatova@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH vz10 v2 2/5] selftests: bpf: run test_xdp_features in its own netns X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org The device under test listens on the veth address of the namespace the script runs in and the tester connects to it, so a firewall on the machine refuses the control connection: Failed connecting to the Device Under Test control socket That side of the pair is also always called v1, and cleanup is trapped for signals only, not for a normal exit, so a failed run leaves the device behind and every later run stops in setup with nothing printed at all. Run the test in a namespace of its own, the way nft_audit.sh and nft_concat_range.sh already do: no rule of the machine applies, and what the test leaves behind goes away with the namespace. https://virtuozzo.atlassian.net/browse/VSTOR-139677 Feature: fix selftests Signed-off-by: Eva Kurchatova --- tools/testing/selftests/bpf/test_xdp_features.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/bpf/test_xdp_features.sh b/tools/testing/selftests/bpf/test_xdp_features.sh index 0aa71c4455c0..75acacee701d 100755 --- a/tools/testing/selftests/bpf/test_xdp_features.sh +++ b/tools/testing/selftests/bpf/test_xdp_features.sh @@ -1,6 +1,14 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 +# The device under test listens on the veth address of the namespace +# this script runs in, so a firewall on the machine can refuse the +# control connection, and cleanup is trapped for signals only, so a +# failed run leaves the device behind and stops every later one. Run +# in a fresh network namespace, like the netfilter tests do. +[ "${1}" != "run" ] && { unshare -n "${0}" run; exit $?; } +ip link set lo up + readonly NS="ns1-$(mktemp -u XXXXXX)" readonly V0_IP4=10.10.0.11 readonly V1_IP4=10.10.0.1 -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel