Skip to content

Could not acquire exclusive lock to access _open_log_files #4148

@pevogam

Description

@pevogam

Hi @luckyh, @YongxueHong, @smitterl, @bgartzi some recent changes in Avocado VT are causing this:

[stdlog] 2025-06-21 01:59:11,650 avocado.virttest.qemu_vm qemu_vm          L4194 DEBUG| Destroying VM vm1 (PID 2752)                                                                                                                       │
[stdlog] 2025-06-21 01:59:11,650 avocado.virttest.qemu_vm qemu_vm          L4084 DEBUG| Shutting down VM vm1 (shell)                                                                                                                       │
[stderr] Exception in thread                                                                                                                                                                                                               │
[stderr] tail_thread_Pc24l9Zg_ssh  -o Us                                                                                                                                                                                                   │
[stderr] :                                                                                                                                                                                                                                 │
[stderr] Traceback (most recent call last):                                                                                                                                                                                                │
[stderr]   File "/usr/lib64/python3.13/threading.py", line 1041, in _bootstrap_inner                                                                                                                                                       │
[stderr]     self.run()                                                                                                                                                                                                                    │
[stderr]     ~~~~~~~~^^                                                                                                                                                                                                                    │
[stderr]   File "/usr/lib64/python3.13/threading.py", line 992, in run                                                                                                                                                                     │
[stderr]     self._target(*self._args, **self._kwargs)                                                                                                                                                                                     │
[stderr]     ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                     │
[stderr]   File "/usr/lib/python3.13/site-packages/aexpect/client.py", line 776, in _tail                                                                                                                                                  │
[stderr]     _print_line(f"(Process terminated with status {status})")                                                                                                                                                                     │
[stderr]     ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                     │
[stderr]   File "/usr/lib/python3.13/site-packages/aexpect/client.py", line 720, in _print_line                                                                                                                                            │
[stderr]     self.output_func(*self.output_params + (text,))                                                                                                                                                                               │
[stderr]     ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                               │
[stderr]   File "/usr/lib/python3.13/site-packages/virttest/utils_logfile.py", line 67, in log_line                                                                                                                                        │
[stderr]     raise LogLockError(                                                                                                                                                                                                           │
[stderr]         "Could not acquire exclusive lock to access" " _open_log_files"                                                                                                                                                           │
[stderr]     )                                                                                                                                                                                                                             │
[stderr] virttest.utils_logfile.LogLockError: Could not acquire exclusive lock to access _open_log_files                                                                                                                                   │
[stdlog] 2025-06-21 02:00:18,832 avocado.virttest.ip_sniffing ip_sniffing      L0177 WARNI| Can't log ip sniffer output: 'Could not acquire exclusive lock to access _open_log_files'                                                      │
[stdlog] 2025-06-21 02:00:28,271 avocado.virttest.qemu_vm client           L0722 INFO | [qemu output] (Process terminated with status 0)                                                                                                   │
[stdlog] 2025-06-21 02:00:28,854 avocado.virttest.ip_sniffing ip_sniffing      L0177 WARNI| Can't log ip sniffer output: 'Could not acquire exclusive lock to access _open_log_files'                                                      │
[stdlog] 2025-06-21 02:00:38,048 avocado.virttest.utils_net utils_net        L1229 DEBUG| Host does not support OpenVSwitch: Command 'ovs-vswitchd' could not be found in any of the PATH dirs: ['/bin', '/sbin', '/usr/bin', '/usr/lib64/c│
[stdlog] 2025-06-21 02:00:38,062 avocado.virttest.utils_net utils_net        L1229 DEBUG| Host does not support OpenVSwitch: Command 'ovs-vswitchd' could not be found in any of the PATH dirs: ['/bin', '/sbin', '/usr/bin', '/usr/lib64/c│
[stdlog] 2025-06-21 02:00:38,203 avocado.virttest.utils_net utils_net        L1229 DEBUG| Host does not support OpenVSwitch: Command 'ovs-vswitchd' could not be found in any of the PATH dirs: ['/bin', '/sbin', '/usr/bin', '/usr/lib64/c│
[stdlog] 2025-06-21 02:00:38,324 avocado.virttest.env_process env_process      L1360 ERROR| Could not acquire exclusive lock to access _open_log_files                                                                                     ┤
[stdlog] 2025-06-21 02:00:38,566 avocado.job.avocado_i2n.states.setup setup            L0403 DEBUG| Skip setting states of types nets/vms, nets/vms/images                                                                                 │
[stdlog] 2025-06-21 02:00:38,567 avocado.job.avocado_i2n.states.setup setup            L0403 DEBUG| Skip setting states of types nets/vms, nets/vms/images                                                                                 │
[stdlog] 2025-06-21 02:00:38,568 avocado.job.avocado_i2n.states.setup setup            L0418 DEBUG| Skip setting any nets state for net5                                                                                                   │
[stdlog] 2025-06-21 02:00:38,915 avocado.test stacktrace       L0041 ERROR|                                                                                                                                                                │
[stdlog] 2025-06-21 02:00:38,915 avocado.test stacktrace       L0043 ERROR| Reproduced traceback from: /usr/lib/python3.13/site-packages/avocado_vt/test.py:329                                                                            ┤
[stdlog] 2025-06-21 02:00:38,917 avocado.test stacktrace       L0050 ERROR| Traceback (most recent call last):                                                                                                                             │
[stdlog] 2025-06-21 02:00:38,917 avocado.test stacktrace       L0050 ERROR|   File "/usr/lib/python3.13/site-packages/virttest/error_context.py", line 141, in new_fn                                                                      │
[stdlog] 2025-06-21 02:00:38,917 avocado.test stacktrace       L0050 ERROR|     return fn(*args, **kwargs)                                                                                                                                 │
[stdlog] 2025-06-21 02:00:38,917 avocado.test stacktrace       L0050 ERROR|   File "/usr/lib/python3.13/site-packages/virttest/env_process.py", line 1551, in postprocess                                                                  │
[stdlog] 2025-06-21 02:00:38,918 avocado.test stacktrace       L0050 ERROR|     raise RuntimeError("Failures occurred while postprocess:\n%s" % err)                                                                                       │
[stdlog] 2025-06-21 02:00:38,918 avocado.test stacktrace       L0050 ERROR| RuntimeError: Failures occurred while postprocess:                                                                                                             │
[stdlog] 2025-06-21 02:00:38,918 avocado.test stacktrace       L0050 ERROR|                                                                                                                                                                │
[stdlog] 2025-06-21 02:00:38,918 avocado.test stacktrace       L0050 ERROR| Postprocess: Could not acquire exclusive lock to access _open_log_files                                                                                        │
[stdlog] 2025-06-21 02:00:38,918 avocado.test stacktrace       L0051 ERROR|                                                                                                                                                                │
[stderr] Traceback (most recent call last):                                                                                                                                                                                                │
[stderr]   File "/usr/lib/python3.13/site-packages/avocado_vt/plugins/vt_runner.py", line 74, in runTest                                                                                                                                   ┤
[stderr]     raise self.__status  # pylint: disable-msg=E0702                                                                                                                                                                              │
[stderr]     ^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                           │
[stderr]   File "/usr/lib/python3.13/site-packages/avocado_vt/test.py", line 146, in setUp                                                                                                                                                 │
[stderr]     self._runTest()                                                                                                                                                                                                               │
[stderr]     ~~~~~~~~~~~~~^^                                                                                                                                                                                                               ┤
[stderr]   File "/usr/lib/python3.13/site-packages/avocado_vt/test.py", line 322, in _runTest                                                                                                                                              │
[stderr]     env_process.postprocess(self, params, env)                                                                                                                                                                                    │
[stderr]     ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                    │
[stderr]   File "/usr/lib/python3.13/site-packages/virttest/error_context.py", line 141, in new_fn                                                                                                                                         │
[stderr]     return fn(*args, **kwargs)                                                                                                                                                                                                    │
[stderr]   File "/usr/lib/python3.13/site-packages/virttest/env_process.py", line 1551, in postprocess                                                                                                                                     │
[stderr]     raise RuntimeError("Failures occurred while postprocess:\n%s" % err)                                                                                                                                                          │
[stderr] RuntimeError: Failures occurred while postprocess:                                                                                                                                                                                │
[stderr]                                                                                                                                                                                                                                   ┤
[stderr] Postprocess: Could not acquire exclusive lock to access _open_log_files      

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions