Skip to content

[th/fix-vlan-create-many-vlans] fix test failure in @vlan_create_many_vlans

Thomas Haller requested to merge th/fix-vlan-create-many-vlans into main

fixes commit fc328005, which introduced a failure in @vlan_create_many_vlans test.

for example: https://desktopqe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/beaker-NetworkManager-nm-1-38-veth-upstream/383/artifact/artifacts/FAIL_report_NetworkManager-ci_Test0546_vlan_create_many_vlans.html

HOOK-ERROR in after_scenario: AssertionError: Exceptions in after scenario:

Traceback (most recent call last):
  File "/mnt/tests/NetworkManager-ci/nmci/cleanup.py", line 526, in process_cleanup
    cleanup_action.do_cleanup()
  File "/mnt/tests/NetworkManager-ci/nmci/cleanup.py", line 115, in do_cleanup
    self._do_cleanup()
  File "/mnt/tests/NetworkManager-ci/nmci/cleanup.py", line 425, in _do_cleanup
    nmci.nmutil.do_NM_service(operation=self._operation)
  File "/mnt/tests/NetworkManager-ci/nmci/nmutil.py", line 243, in do_NM_service
    self.restart_NM_service()
  File "/mnt/tests/NetworkManager-ci/nmci/nmutil.py", line 143, in restart_NM_service
    r = nmci.process.systemctl(
  File "/mnt/tests/NetworkManager-ci/nmci/process.py", line 520, in systemctl
    return self._run(
  File "/mnt/tests/NetworkManager-ci/nmci/process.py", line 230, in _run
    proc = subprocess.run(
  File "/usr/lib64/python3.9/subprocess.py", line 507, in run
    stdout, stderr = process.communicate(input, timeout=timeout)
  File "/usr/lib64/python3.9/subprocess.py", line 1134, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib64/python3.9/subprocess.py", line 1980, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
  File "/usr/lib64/python3.9/subprocess.py", line 1178, in _check_timeout
    raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['systemctl', 'restart', 'NetworkManager.service']' timed out after 14.98775474499962 seconds

Merge request reports

Loading