From: Florian Obser Subject: ansible breakage To: Pavel Korovin Cc: ports Date: Wed, 30 Jul 2025 20:19:25 +0200 Hi, after upgrading to -current, ansible breaks thusly with a fairly large playbook: TASK [nginx : nginx package] ******************************************************* Exception in thread Thread-4 (results_thread_main): Traceback (most recent call last): File "/usr/local/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/local/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.12/site-packages/ansible/plugins/strategy/__init__.py", line 108, in results_thread_main result = strategy._convert_wire_task_result_to_raw(result) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ansible/plugins/strategy/__init__.py", line 456, in _convert_wire_task_result_to_raw found_task = self._queued_task_cache[queue_cache_entry]['task'] ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ KeyError: ('vultr.tlakh.xyz', '8030069b-a76a-55d4-9169-0000000000a8') ====== hangs here ==== ^C results in: [ERROR]: Unexpected Exception, this is probably a bug: [Errno 3] No such process Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/ansible/cli/__init__.py", line 660, in cli_executor exit_code = cli.run() ^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ansible/cli/playbook.py", line 153, in run results = pbex.run() ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ansible/executor/playbook_executor.py", line 188, in run result = self._tqm.run(play=play) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ansible/executor/task_queue_manager.py", line 344, in run play_return = strategy.run(iterator, play_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ansible/plugins/strategy/linear.py", line 216, in run results.extend(self._wait_on_pending_results(iterator)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ansible/plugins/strategy/__init__.py", line 796, in _wait_on_pending_results time.sleep(C.DEFAULT_INTERNAL_POLL_INTERVAL) File "/usr/local/lib/python3.12/site-packages/ansible/executor/process/worker.py", line 110, in _term os.killpg(self.pid, signum) ProcessLookupError: [Errno 3] No such process The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/ansible/cli/__init__.py", line 669, in cli_executor raise AnsibleError("Unexpected Exception, this is probably a bug.") from ex ansible.errors.AnsibleError: Unexpected Exception, this is probably a bug: [Errno 3] No such process ------------------------------------------------------------------------ Ansible is pretty far into the playbook at this point, running for a few minutes. I'm managing all my infra using ansible. Different hosts hang at different points in the playbook (because they do different things), But the playbook always stops at the same point for a particular host. Downgrading to ansible-11.7.0 / ansible-core-2.18.6 fixes this. Thanks, Florian -- In my defence, I have been left unsupervised.