LKFT tests running kselftests tc-testing noticing following run time errors on Linux next master branch.
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
This is started from Linux next-20240212 with following commit,
f51470c5c4a0 selftests: tc-testing: add mirred to block tdc tests
Run log errors: ---------- # Test e684: Delete batch of 32 mirred mirror ingress actions # multiprocessing.pool.RemoteTraceback: # """ # Traceback (most recent call last): # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 142, in call_pre_case # pgn_inst.pre_case(caseinfo, test_skip) # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 63, in pre_case # self.prepare_test(test) # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 36, in prepare_test # self._nl_ns_create() # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 130, in _nl_ns_create # ip.link('add', ifname=dev1, kind='veth', peer={'ifname': dev0, 'net_ns_fd':'/proc/1/ns/net'}) # File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1593, in link # ret = self.nlm_request(msg, msg_type=msg_type, msg_flags=msg_flags) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 403, in nlm_request # return tuple(self._genlm_request(*argv, **kwarg)) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 985, in nlm_request # for msg in self.get( # ^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 406, in get # return tuple(self._genlm_get(*argv, **kwarg)) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 770, in get # raise msg['header']['error'] # pyroute2.netlink.exceptions.NetlinkError: (34, 'Numerical result out of range') # # During handling of the above exception, another exception occurred: # # Traceback (most recent call last): # File "/usr/lib/python3.11/multiprocessing/pool.py", line 125, in worker # result = (True, func(*args, **kwds)) # ^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3.11/multiprocessing/pool.py", line 48, in mapstar # return list(map(*args)) # ^^^^^^^^^^^^^^^^ # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 602, in __mp_runner # (_, tsr) = test_runner(mp_pm, mp_args, tests) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 536, in test_runner # res = run_one_test(pm, args, index, tidx) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 419, in run_one_test # pm.call_pre_case(tidx) # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 146, in call_pre_case # print('test_ordinal is {}'.format(test_ordinal)) # ^^^^^^^^^^^^ # NameError: name 'test_ordinal' is not defined # """ # # The above exception was the direct cause of the following exception: # # Traceback (most recent call last): # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 1028, in <module> # main() # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 1022, in main # set_operation_mode(pm, parser, args, remaining) # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 964, in set_operation_mode # catresults = test_runner_mp(pm, args, alltests) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 624, in test_runner_mp # pres = p.map(__mp_runner, batches) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3.11/multiprocessing/pool.py", line 367, in map # return self._map_async(func, iterable, mapstar, chunksize).get() # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3.11/multiprocessing/pool.py", line 774, in get # raise self._value # NameError: name 'test_ordinal' is not defined not ok 1 selftests: tc-testing: tdc.sh # exit=1
-- Linaro LKFT https://lkft.linaro.org
On 28/02/2024 13:49, Naresh Kamboju wrote:
LKFT tests running kselftests tc-testing noticing following run time errors on Linux next master branch.
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
This is started from Linux next-20240212 with following commit,
f51470c5c4a0 selftests: tc-testing: add mirred to block tdc tests
Run log errors:
# Test e684: Delete batch of 32 mirred mirror ingress actions # multiprocessing.pool.RemoteTraceback: # """ # Traceback (most recent call last): # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 142, in call_pre_case # pgn_inst.pre_case(caseinfo, test_skip) # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 63, in pre_case # self.prepare_test(test) # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 36, in prepare_test # self._nl_ns_create() # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 130, in _nl_ns_create # ip.link('add', ifname=dev1, kind='veth', peer={'ifname': dev0, 'net_ns_fd':'/proc/1/ns/net'}) # File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1593, in link # ret = self.nlm_request(msg, msg_type=msg_type, msg_flags=msg_flags) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 403, in nlm_request # return tuple(self._genlm_request(*argv, **kwarg)) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 985, in nlm_request # for msg in self.get( # ^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 406, in get # return tuple(self._genlm_get(*argv, **kwarg)) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 770, in get # raise msg['header']['error'] # pyroute2.netlink.exceptions.NetlinkError: (34, 'Numerical result out of range')
It looks like the ip link add command is returning ERANGE. We have tested this in NIPA for sometime with 64-bit and this is the first time we are seeing this:
https://github.com/p4tc-dev/tc-executor/tree/storage/artifacts/485544
Could you give us more information on how to reproduce this?
Note: This doesn't seem to be related to the patches in question. Seems to be a generic thing with nsPlugin itself.
Thanks, Victor
Hi Victor,
On Wed, 28 Feb 2024 at 23:05, Victor Nogueira victor@mojatatu.com wrote:
On 28/02/2024 13:49, Naresh Kamboju wrote:
LKFT tests running kselftests tc-testing noticing following run time errors on Linux next master branch.
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
This is started from Linux next-20240212 with following commit,
f51470c5c4a0 selftests: tc-testing: add mirred to block tdc tests
Run log errors:
# Test e684: Delete batch of 32 mirred mirror ingress actions # multiprocessing.pool.RemoteTraceback: # """ # Traceback (most recent call last): # File "/opt/kselftests/default-in-kernel/tc-testing/./tdc.py", line 142, in call_pre_case # pgn_inst.pre_case(caseinfo, test_skip) # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 63, in pre_case # self.prepare_test(test) # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 36, in prepare_test # self._nl_ns_create() # File "/opt/kselftests/default-in-kernel/tc-testing/plugin-lib/nsPlugin.py", line 130, in _nl_ns_create # ip.link('add', ifname=dev1, kind='veth', peer={'ifname': dev0, 'net_ns_fd':'/proc/1/ns/net'}) # File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1593, in link # ret = self.nlm_request(msg, msg_type=msg_type, msg_flags=msg_flags) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 403, in nlm_request # return tuple(self._genlm_request(*argv, **kwarg)) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 985, in nlm_request # for msg in self.get( # ^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 406, in get # return tuple(self._genlm_get(*argv, **kwarg)) # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # File "/usr/lib/python3/dist-packages/pyroute2/netlink/nlsocket.py", line 770, in get # raise msg['header']['error'] # pyroute2.netlink.exceptions.NetlinkError: (34, 'Numerical result out of range')
It looks like the ip link add command is returning ERANGE. We have tested this in NIPA for sometime with 64-bit and this is the first time we are seeing this:
https://github.com/p4tc-dev/tc-executor/tree/storage/artifacts/485544
Could you give us more information on how to reproduce this?
Steps to reproduce: -------------
# To install tuxrun to your home directory at ~/.local/bin: # pip3 install -U \ --user tuxrun==0.62.2 # # Or install a deb/rpm depending on the running distribution # See https://tuxmake.org/install-deb/ or # https://tuxmake.org/install-rpm/ # # See https://tuxrun.org/ for complete documentation. # # Please follow the additional instructions if the tests are related to FVP: # https://tuxrun.org/run-fvp/ #
tuxrun \ --runtime podman \ --device qemu-x86_64 \ --boot-args rw \ --kernel https://storage.tuxsuite.com/public/linaro/lkft/builds/2czN3tP1CXUNgatiVGk7A... \ --rootfs https://storage.tuxboot.com/debian/bookworm/amd64/rootfs.ext4.xz \ --modules https://storage.tuxsuite.com/public/linaro/lkft/builds/2czN3tP1CXUNgatiVGk7A... \ --parameters SKIPFILE=skipfile-lkft.yaml \ --parameters KSELFTEST=https://storage.tuxsuite.com/public/linaro/lkft/builds/2czN3tP1CXUNgatiVGk7A... \ --image docker.io/linaro/tuxrun-dispatcher:v0.62.2 \ --tests kselftest-tc-testing \ --timeouts boot=15 kselftest-tc-testing=20
Links, - https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2czN6g0MY3k... - https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/tests/2czN6g0MY3k...
Note: This doesn't seem to be related to the patches in question. Seems to be a generic thing with nsPlugin itself.
Thanks, Victor