failures not handled while exception raised

Bug #1841720 reported by Veda Annayappa
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The issue occurs because the failures object isnt handled when its length is more than 1
in taskflow/types/

        if len(failures) == 1:
        elif len(failures) > 1:
            raise exc.WrappedFailure(failures)

Traceback (most recent call last):
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/engines/action_engine/", line 53, in _execute_task
        result = task.execute(**arguments)
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/pypowervm/utils/", line 478, in execute
        self._wrapper = _execute(self._wrapper or self._getter)
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/pypowervm/utils/", line 99, in _synchronize
    Traceback (most recent call last):
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/pypowervm/utils/", line 785, in execute
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/engines/", line 162, in run
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/engines/action_engine/", line 247, in run
        for _state in self.run_iter(timeout=timeout):
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/engines/action_engine/", line 340, in run_iter
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/types/", line 342, in reraise_if_any
        raise exc.WrappedFailure(failures)
    WrappedFailure: WrappedFailure: [Failure: AttributeError: 'str' object has no attribute 'uuid', Failure: AttributeError: 'str' object has no attribute 'uuid']

Veda Annayappa (vedanu)
Changed in taskflow:
assignee: nobody → Veda Annayappa (vedanu)
status: New → In Progress
Veda Annayappa (vedanu)
Changed in taskflow:
assignee: Veda Annayappa (vedanu) → nobody
status: In Progress → New
Revision history for this message
Sowmya Divvi (sowmya) wrote :

Hello Veda Annayappa,

I could see nova related logs from the error's above.
Could you let us know in what scenario the error was encountered.
So that we can try to reproduce it to fix the issue.

Best Regards,
Sowmya Divvi

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.