avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
84 stars 243 forks source link

Fix OSError in postprocess #3997

Open cliping opened 2 months ago

cliping commented 2 months ago

Wrong order of clearing LibvirtdDebugLogConfig causes OSError.

cliping commented 2 months ago

Before:

2024-09-09 10:37:34,950 output L0702 DEBUG| [stderr] DEBUG:aexpect.client:[10.73.212.18] Sending command: firewall-cmd --remove-port=49152-49216/tcp --permanent --zone=public

2024-09-09 10:37:35,316 output L0702 DEBUG| [stderr] DEBUG:aexpect.client:[10.73.212.18] Sending command: echo $?

2024-09-09 10:37:35,419 output L0702 DEBUG| [stderr] DEBUG:aexpect.client:[X.X.X.X] Sending command: firewall-cmd --reload 2024-09-09 10:37:35,923 output L0702 DEBUG| [stderr] DEBUG:aexpect.client:[X.X.X.X] Sending command: echo $? 2024-09-09 10:37:36,025 output L0702 DEBUG| [stderr] DEBUG:aexpect.client:[X.X.X.X] Sending command: grep cpu /proc/cpuinfo | awk '{print $3}' | head -n 1 2024-09-09 10:37:36,135 output L0702 DEBUG| [stderr] DEBUG:aexpect.client:[X.X.X.X] Sending command: echo $? 2024-09-09 10:37:36,462 process L0658 INFO | Running 'virtqemud -V' 2024-09-09 10:37:36,490 process L0470 DEBUG| [stdout] virtqemud (libvirt) 10.5.0 2024-09-09 10:37:36,490 process L0739 INFO | Command 'virtqemud -V' finished with 0 after 0.017646854s 2024-09-09 10:37:36,491 core L0102 ERROR| [Errno 22] Invalid argument 2024-09-09 10:37:36,492 stacktrace L0039 ERROR| 2024-09-09 10:37:36,493 stacktrace L0041 ERROR| Reproduced traceback from: /var/ci/libvirt-ci/runtest/avocado-vt/avocado-vt/avocado_vt/test.py:311 2024-09-09 10:37:36,502 stacktrace L0045 ERROR| Traceback (most recent call last): 2024-09-09 10:37:36,502 stacktrace L0045 ERROR| File "/var/ci/libvirt-ci/runtest/avocado-vt/avocado-vt/virttest/error_context.py", line 141, in new_fn 2024-09-09 10:37:36,502 stacktrace L0045 ERROR| return fn(*args, **kwargs) 2024-09-09 10:37:36,502 stacktrace L0045 ERROR| File "/var/ci/libvirt-ci/runtest/avocado-vt/avocado-vt/virttest/env_process.py", line 1807, in postprocess 2024-09-09 10:37:36,502 stacktrace L0045 ERROR| raise RuntimeError("Failures occurred while postprocess:\n%s" % err) 2024-09-09 10:37:36,502 stacktrace L0045 ERROR| RuntimeError: Failures occurred while postprocess: 2024-09-09 10:37:36,502 stacktrace L0045 ERROR| [Errno 22] Invalid argument

After: (1/1) type_specific.io-github-autotest-libvirt.virsh.migrate_vm.positive_testing.live_migration.with_hugepages.without_postcopy: PASS (174.12 s)