Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5904604ybc; Wed, 27 Nov 2019 11:22:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzSXcsNhYJ1bgU1DSUDrInJMtQo4eUZiBkMJN+iQbAady8kSAzAm/FpV2oB+9E+TRZfrNZE X-Received: by 2002:a17:906:82d0:: with SMTP id a16mr23009203ejy.206.1574882567967; Wed, 27 Nov 2019 11:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574882567; cv=none; d=google.com; s=arc-20160816; b=Ft+Dy9hCMH8CYefzWGkP/CeTZ+Lo0H92/PP09CM2ZFOOxaL2QYvfhwdR4qc+Gtsitr zKJBr1eXzm40ft+HjCMWnB1dVkwscHltQgJ8wdF9aq+DZi7s9aDA2UOxCEDXnjMySvUv cWNZX/7hgYWsP4mtw6eK5ePbHNooDSVCqQQoHod/2w+1XcdYSvs+hxMPkrYnizsuUXpg NWmVyAFc5BRZ89mVNWeYjgBDSgwgPQ21/E8N6urDn744leqZCvK+lxGtfs0bKhKBd/6K y+nXs86+HmPjiffHzQRDm0v8nkLTg+CkScRQ4VuxGNbCi8O9aFFNRjdrWqx77a8wNPzT odmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SwGlaflyfMYsLmwlIQulRra4gO7xoKJhMixLlAT06bw=; b=SQV2KkRrkrZW5O3pa+YTUsYwlxqi4JJC3WV7vvAVDmGbtRiCv1F6fTh0cFfdlwgL/x SoXlKkZT/1xBkBoYNYI0NzPtQDus7uwYaC9eTfR7EJY/wPPDnBLh6f2x1/m7jxmZ4Orr DBT0Yys/xOb6HMGk2gJMoOgc+0VUxWOZRhDgh+NgSN2Lru1k5TyWkUhY9KpAr3OFC24E fU/zMhT4yNkI/Jezcz4fE3YSxCUadwulDoUJVhJ6cVLxIlVooPeNTqTbKXylv7maRqVo IMUJCoiE2qe7QYR+HWERL2mC8EPYKUHr4Rux7UNfQcitaFc7s7hzz7gik5heItFrmm+s SgSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AZAWZiB8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si11487383edq.275.2019.11.27.11.22.23; Wed, 27 Nov 2019 11:22:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AZAWZiB8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727116AbfK0TUH (ORCPT + 99 others); Wed, 27 Nov 2019 14:20:07 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36761 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbfK0TUH (ORCPT ); Wed, 27 Nov 2019 14:20:07 -0500 Received: by mail-lj1-f193.google.com with SMTP id k15so25737794lja.3 for ; Wed, 27 Nov 2019 11:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SwGlaflyfMYsLmwlIQulRra4gO7xoKJhMixLlAT06bw=; b=AZAWZiB8dXMRGg0cFsUASjG5lSbsTKtRIdf/0fMgaVbiCSwgi01PBTF5/E61UOaLVr p4rG8lUfsLFtLOHVYLySO8tmt+ljDl0Rg6m+k0YSUtpKAnaJv9/UU/poQEYTM4xYlo1s 8L2bRuJqICdzJ2QiLVm4ZyQSWhuLkEzvkQdYLfbi1nWh5sCjZxdENgNj1PTwkNFlvopE yuBead4CYQ/dvIPXTEQEMP0scdIu76FpDTSIiWkMMKv2tse3pQU5ISoPbM59pOr86BV2 sJg7OM9Honvjigua3I9HfxAgUsfez4l/z4PNexypZactOD/lZQUfQQZNVgh82yJbtx77 Gosw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SwGlaflyfMYsLmwlIQulRra4gO7xoKJhMixLlAT06bw=; b=P53Z9RS6RtNnFDgtcxc5oR1kxLzuAnhGnMhgkQmJV4V5ntR/Fjnf9jzr+XTsLtj66Y /Qd62Xs15WWhltPvH6noVPNlMnpjV6pLU0reAGsNkSZbf1LMug5EEO4IOg9luObjAp6O DR3Ye+78K7+SEwD2iBV8V9WabIvhxLgG/mbrydZ2CGFd2BCtElO4vi9Pw+0KewG6zRkH gWQWG73nYMln9ZNXcKMsBzKrERFkUF9BBUne8c+u2rdGg0C00CWYE/kbxdt3EuFEShPU 24MK4L48GL8gxo6nCeiBUiRRyJ8Tg8cy1WK7hRSfRrRadozhkmUSm+BfkmOmrtLAt5cs Gbxg== X-Gm-Message-State: APjAAAUNWVXUPSGSOA9x9AcaP8X1+Zz0cCRxCbjvXGo/Jqbm9i5BCLol RfpvcZx5epourrp4njSbIyHKXtcWU7ok7+fjg7U5Sg== X-Received: by 2002:a05:651c:299:: with SMTP id b25mr32191751ljo.195.1574882405011; Wed, 27 Nov 2019 11:20:05 -0800 (PST) MIME-Version: 1.0 References: <20191126155632.GF795@breakpoint.cc> In-Reply-To: <20191126155632.GF795@breakpoint.cc> From: Naresh Kamboju Date: Thu, 28 Nov 2019 00:49:54 +0530 Message-ID: Subject: Re: selftests:netfilter: nft_nat.sh: internal00-0 Error Could not open file \"-\" No such file or directory To: Florian Westphal Cc: "open list:KERNEL SELFTEST FRAMEWORK" , open list , Netdev , Shuah Khan , pablo@netfilter.org, jeffrin@rajagiritech.edu.in, horms@verge.net.au, yanhaishuang@cmss.chinamobile.com, lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Nov 2019 at 21:26, Florian Westphal wrote: > > Naresh Kamboju wrote: > > Do you see the following error while running selftests netfilter > > nft_nat.sh test ? > > Are we missing any kernel config fragments ? We are merging configs > > from the directory. > > > > # selftests netfilter nft_nat.sh > > netfilter: nft_nat.sh_ # > > # Cannot create namespace file \"/var/run/netns/ns1\" File exists > > 'ns1' is not a good name. > What is the output of nft --version? nftables v0.7 (Scrooge McDuck) > > Does this patch help? Even if it doesn't, its probably a good idea > to add it. I tested on arm64 Hikey and did not help. However, I will validate on x86_64 and other devices and let you know. > > Subject: [PATCH] selftests: netfilter: use randomized netns names > > Using ns0, ns1, etc. isn't a good idea, they might already exist. > Add a random suffix to avoid interering with other, unrelated net namespaces. > > Signed-off-by: Florian Westphal > --- > tools/testing/selftests/netfilter/nft_nat.sh | 332 ++++++++++--------- > 1 file changed, 176 insertions(+), 156 deletions(-) + ./nft_nat.sh [ 29.100929] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 29.191505] IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready internal:0:0-0: Error: Could not open file \"-\": No such file or directory internal:0:0-0: Error: Could not open file \"-\": No such file or directory internal:0:0-0: Error: Could not open file \"-\": No such file or directory [ 29.985551] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready :1:6-12: Error: syntax error, unexpected counter list counter inet filter ns0in ^^^^^^^ ERROR: ns0in counter in ns1-Tj5FGVgK has unexpected value (expected packets 1 bytes 84) at check_counters 1 :1:6-12: Error: syntax error, unexpected counter list counter inet filter ns0in ^^^^^^^ :1:6-12: Error: syntax error, unexpected counter list counter inet filter ns0out ^^^^^^^ ref: https://lkft.validation.linaro.org/scheduler/job/1025331#L1508