Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OSError in postprocess #3997

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cliping
Copy link
Contributor

@cliping cliping commented Sep 9, 2024

Wrong order of clearing LibvirtdDebugLogConfig causes OSError.

@cliping
Copy link
Contributor Author

cliping commented Sep 9, 2024

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)

Wrong order of clearing LibvirtdDebugLogConfig causes OSError.

Signed-off-by: lcheng <[email protected]>
@cliping cliping marked this pull request as ready for review September 12, 2024 01:16
@cliping cliping marked this pull request as draft September 19, 2024 10:34
@cliping cliping marked this pull request as ready for review October 11, 2024 03:54
@cliping cliping marked this pull request as draft October 23, 2024 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant