Deployment fails with ERROR! Unexpected Exception, this is probably a bug: 'Block' object has no attribute '_host'

Bug #1882178 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Incomplete
Medium
Kevin Carter

Bug Description

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'

Rabi Mishra (rabi)
Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
Changed in tripleo:
assignee: nobody → Kevin Carter (kevin-carter)
Revision history for this message
Alex Schultz (alex-schultz) wrote :

i think we recently bumped to 2.9.9? maybe a regression there

Changed in tripleo:
milestone: none → victoria-1
Revision history for this message
Rabi Mishra (rabi) wrote :

Similar error (though not same) seen with undercloud install.

https://e54aca700460cf7abace-2c633db3240f150f6ddf18824372371d.ssl.cf1.rackcdn.com/734470/1/check/tripleo-ci-centos-8-containers-multinode/b1f63a3/logs/undercloud/home/zuul/undercloud_install.log

2020-06-10 21:12:12.812953 | fa163edf-9565-920a-d8f6-000000000f05 | TASK | Include container-puppet tasks for step 1
2020-06-10 21:12:12.813766 | fa163edf-9565-920a-d8f6-000000000f04 | TIMING | Calculate container_puppet_tasks for undercloud step 1 | 0:11:17.283 | 0.10s
2020-06-10 21:12:12.923948 | ad6b7abb-9789-435e-a936-3e3271e465d7 | INCLUDED | /home/zuul/undercloud-ansible-scpztnwk/host-container-puppet-tasks.yaml | undercloud
2020-06-10 21:12:12.968945 | fa163edf-9565-920a-d8f6-0000000023c8 | TASK | Write container-puppet-tasks json file for undercloud step 1
2020-06-10 21:12:12.969489 | fa163edf-9565-920a-d8f6-000000000f05 | TIMING | Include container-puppet tasks for step 1 | 0:11:17.439 | 0.16s
2020-06-10 21:12:13.479638 | fa163edf-9565-920a-d8f6-0000000023c8 | CHANGED | Write container-puppet-tasks json file for undercloud step 1 | undercloud
2020-06-10 21:12:13.528863 | fa163edf-9565-920a-d8f6-0000000023ca | TASK | Generate container puppet configs for step 1
2020-06-10 21:12:13.529413 | fa163edf-9565-920a-d8f6-0000000023c8 | TIMING | Write container-puppet-tasks json file for undercloud step 1 | 0:11:17.999 | 0.56s
2020-06-10 21:12:13.787495 | fa163edf-9565-920a-d8f6-0000000023ca | OK | Generate container puppet configs for step 1 | undercloud
2020-06-10 21:12:13.836205 | fa163edf-9565-920a-d8f6-0000000023cb | TASK | Manage Puppet containers (bootstrap tasks) for step 1 with tripleo-ansible
2020-06-10 21:12:13.836780 | fa163edf-9565-920a-d8f6-0000000023ca | TIMING | Generate container puppet configs for step 1 | 0:11:18.306 | 0.31s
ERROR! Unexpected Exception, this is probably a bug: 'list_iterator' object has no attribute '_host'
to see the full traceback, use -vvv
Ansible execution failed. playbook: deploy_steps_playbook.yaml, Run Status: failed, Return Code: None
Not cleaning working directory /home/zuul/tripleo-heat-installer-templates
Not cleaning ansible directory /home/zuul/undercloud-ansible-scpztnwk
Install artifact is located at /home/zuul/undercloud-install-20200610211214.tar.bzip2

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Revision history for this message
Alex Schultz (alex-schultz) wrote :
Changed in tripleo:
milestone: victoria-1 → victoria-3
Changed in tripleo:
milestone: victoria-3 → wallaby-1
Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
milestone: xena-1 → xena-2
Revision history for this message
Marios Andreou (marios-b) wrote :

This is an automated action. Bug status has been set to 'Incomplete' and target milestone has been removed due to inactivity. If you disagree please re-set these values and reach out to us on freenode #tripleo

Changed in tripleo:
milestone: xena-2 → none
status: Triaged → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.