Skip to content

systemd-networkd-tests.py fails in 'test_bridge_configure_without_carrier' #16105

@mrc0mmand

Description

@mrc0mmand

systemd version the issue has been seen with

latest master

Used distribution

Arch Linux

I noticed that in several recent PRs the systemd-networkd-tests.py test fails with:


======================================================================
ERROR: test_bridge_configure_without_carrier (__main__.NetworkdBridgeTests) (test='no-slave')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test/test-network/systemd-networkd-tests.py", line 2800, in test_bridge_configure_without_carrier
    self.wait_online(['bridge99:no-carrier'])
  File "./test/test-network/systemd-networkd-tests.py", line 506, in wait_online
    check_output(*args, env=env)
  File "./test/test-network/systemd-networkd-tests.py", line 49, in check_output
    return subprocess.check_output(command, universal_newlines=True, **kwargs).rstrip()
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/lib/systemd/systemd-networkd-wait-online', '--timeout=20s', '--interface=bridge99:no-carrier']' returned non-zero exit status 1.

======================================================================
ERROR: test_bridge_configure_without_carrier (__main__.NetworkdBridgeTests) (test='add-slave')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test/test-network/systemd-networkd-tests.py", line 2811, in test_bridge_configure_without_carrier
    self.wait_online(['bridge99:no-carrier:no-carrier'])
  File "./test/test-network/systemd-networkd-tests.py", line 506, in wait_online
    check_output(*args, env=env)
  File "./test/test-network/systemd-networkd-tests.py", line 49, in check_output
    return subprocess.check_output(command, universal_newlines=True, **kwargs).rstrip()
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/lib/systemd/systemd-networkd-wait-online', '--timeout=20s', '--interface=bridge99:no-carrier:no-carrier']' returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 138 tests in 2722.085s

FAILED (errors=2, expected failures=1)

Full log: https://ci.centos.org/job/systemd-pr-build-vagrant/7947/artifact//systemd-centos-ci/artifacts_kzRqbs/vagrant-logs.ZKt/vagrant-arch-testsuite.xm4/systemd-networkd-tests.py_FAIL.log
Machine journal: https://ci.centos.org/job/systemd-pr-build-vagrant/7947/artifact//systemd-centos-ci/artifacts_kzRqbs/vagrant-logs.ZKt/vagrant-journal-dump.log

(affecting, for example, #16096, #15729, ...).

/cc @yuwata, @ddstreet

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingtests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions