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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2014953

Title:
  kernel_selftest: devlink_port_split.py mlx5_core warning triggers a
  failure

Status in ubuntu-kernel-tests:
  New
Status in linux package in Ubuntu:
  Incomplete
Status in linux source package in Lunar:
  Incomplete

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2014953/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to