kernel_selftest: devlink_port_split.py mlx5_core warning triggers a failure

Bug #2014953 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned
Lunar
Incomplete
Undecided
Unassigned

Bug Description

The devlink command seems to print a warning that is considered as a failure during this test:

4356 12:18:20 DEBUG| Running 'make run_tests -C net TEST_PROGS=devlink_port_split.py TEST_GEN_PROGS='' TEST_CUSTOM_PROGS='''
    14357 12:18:20 DEBUG| [stdout] make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net'
    14358 12:18:20 DEBUG| [stdout] TAP version 13
    14359 12:18:20 DEBUG| [stdout] 1..1
    14360 12:18:20 DEBUG| [stdout] # selftests: net: devlink_port_split.py
    14361 12:18:20 DEBUG| [stdout] # Error sending command: devlink -j port show ens1
    14362 12:18:20 DEBUG| [stdout] # {"port":{"pci/0000:08:00.0/65535":{"type":"eth","netdev":"ens1","flavour":"physical","port":0,"splittable":false}}}
    14363 12:18:20 DEBUG| [stdout] #
    14364 12:18:20 DEBUG| [stdout] # Warning: mlx5_core: Invalid port.
    14365 12:18:20 DEBUG| [stdout] #
    14366 12:18:20 DEBUG| [stdout] # Traceback (most recent call last):
    14367 12:18:20 DEBUG| [stdout] # File "/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/./devlink_port_split.py", line 309, in
    14368 12:18:20 DEBUG| [stdout] # main()
    14369 12:18:20 DEBUG| [stdout] # File "/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/./devlink_port_split.py", line 280, in main
    14370 12:18:20 DEBUG| [stdout] # max_lanes = get_max_lanes(port.name)
    14371 12:18:20 DEBUG| [stdout] # ^^^^^^^^^^^^^^^^^^^^^^^^
    14372 12:18:20 DEBUG| [stdout] # File "/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/./devlink_port_split.py", line 83, in get_max_lanes
    14373 12:18:20 DEBUG| [stdout] # assert stderr == ""
    14374 12:18:20 DEBUG| [stdout] # ^^^^^^^^^^^^
    14375 12:18:20 DEBUG| [stdout] # AssertionError
    14376 12:18:20 DEBUG| [stdout] not ok 1 selftests: net: devlink_port_split.py # exit=1

Andrea Righi (arighi)
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2014953

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote (last edit ):

This is in:

def get_max_lanes(port):
    """
    Get the $port's maximum number of lanes.
    Return: number of lanes, e.g. 1, 2, 4 and 8.
    """

    cmd = "devlink -j port show %s" % port
    stdout, stderr = run_command(cmd)
    assert stderr == ""
    values = list(json.loads(stdout)['port'].values())[0]

We're expecting stderr to be empty, but since this command triggers a warning / error, the `assert stderr == ""` fails.

This issue does not exist with 6.5.0-4-generic (on node riccioli, it's failing with L-ibm)

tags: added: 6.2 lunar sru-20230807 ubuntu-kernel-selftests
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.