failures not handled while exception raised

Bug #1841720 reported by Veda Annayappa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
taskflow
New
Undecided
Unassigned

Bug Description

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

        if len(failures) == 1:
            failures[0].reraise()
        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/executor.py", line 53, in _execute_task
        result = task.execute(**arguments)
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/pypowervm/utils/transaction.py", 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/transaction.py", line 99, in _synchronize
        @lock.synchronized(wrp_or_spec.uuid)
    Traceback (most recent call last):
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/pypowervm/utils/transaction.py", line 785, in execute
        executor=ContextThreadPoolExecutor(self.max_workers)))
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/engines/helpers.py", line 162, in run
        engine.run()
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/engines/action_engine/engine.py", 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/engine.py", line 340, in run_iter
        failure.Failure.reraise_if_any(er_failures)
      File "/root/esca/nova-powervm/.tox/py27/local/lib/python2.7/site-packages/taskflow/types/failure.py", 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.