Looks like possibly a ansible bug with async task with default linear strategy.
Noticed at:
https://59000697c1dd9a7c3300-e8a1ce79b4913d33657fcbac5f6aef09.ssl.cf1.rackcdn.com/733036/2/check/tripleo-ci-centos-8-scenario001-standalone/38045f8/logs/undercloud/home/zuul/ansible.log
traceback:
2020-06-04 19:37:09,250 p=19343 u=root n=ansible | 2020-06-04 19:37:09.250312 | fa163e53-be6b-a7bc-b7b7-000000001c3e | TASK | Run containers execs asynchronously
2020-06-04 19:37:09,377 p=19343 u=root n=ansible | 2020-06-04 19:37:09.377064 | f03cfe50-f005-4d18-8090-1324f72affda | INCLUDED | /usr/share/ansible/roles/tripleo_container_manage/tasks/podman/exec.yml | standalone
2020-06-04 19:37:09,426 p=19343 u=root n=ansible | 2020-06-04 19:37:09.426162 | fa163e53-be6b-a7bc-b7b7-000000001e9a | TASK | Check if containers are running before doing exec
2020-06-04 19:37:09,548 p=19343 u=root n=ansible | 2020-06-04 19:37:09.547657 | fa163e53-be6b-a7bc-b7b7-000000001e9c | TASK | Async container exec
2020-06-04 19:37:09,669 p=19343 u=root n=ansible | 2020-06-04 19:37:09.668395 | fa163e53-be6b-a7bc-b7b7-000000001e9e | TASK | Check podman exec status
2020-06-04 19:37:09,741 p=19343 u=root n=ansible | ERROR! Unexpected Exception, this is probably a bug: 'Block' object has no attribute '_host'
2020-06-04 19:37:09,741 p=19343 u=root n=ansible | to see the full traceback, use -vvv
2020-06-04 19:37:09,746 p=19343 u=root n=ansible | the full traceback was:
Traceback (most recent call last):
File "/bin/ansible-playbook", line 123, in <module>
exit_code = cli.run()
File "/usr/lib/python3.6/site-packages/ansible/cli/playbook.py", line 127, in run
results = pbex.run()
File "/usr/lib/python3.6/site-packages/ansible/executor/playbook_executor.py", line 169, in run
result = self._tqm.run(play=play)
File "/usr/lib/python3.6/site-packages/ansible/executor/task_queue_manager.py", line 241, in run
play_return = strategy.run(iterator, play_context)
File "/usr/lib/python3.6/site-packages/ansible/plugins/strategy/linear.py", line 325, in run
results += self._wait_on_pending_results(iterator)
File "/usr/lib/python3.6/site-packages/ansible/plugins/strategy/__init__.py", line 764, in _wait_on_pending_results
results = self._process_pending_results(iterator)
File "/usr/lib/python3.6/site-packages/ansible/plugins/strategy/__init__.py", line 110, in inner
results = func(self, iterator, one_pass=one_pass, max_passes=max_passes)
File "/usr/lib/python3.6/site-packages/ansible/plugins/strategy/__init__.py", line 487, in _process_pending_results
original_host = get_original_host(task_result._host)
AttributeError: 'Block' object has no attribute '_host'
i think we recently bumped to 2.9.9? maybe a regression there