Default Workflow engine - We should only catch exceptions from action.execute()

Bug #1548383 reported by Vincent Françoise
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Medium
Tin Lam

Bug Description

 In watcher/applier/workflow_engine/default.py, we are checking the return value of action.execute(). As the "TODO" above indicates it (line 118), we should get rid of this and only flag an action as failed if an exception was raised during its execute().

We will also probably need to update the related unit tests.

Changed in watcher:
assignee: nobody → Gábor Antal (gabor.antal)
Revision history for this message
Tin Lam (lamt) wrote :
Changed in watcher:
assignee: Gábor Antal (gabor.antal) → Tin Lam (tl3438)
status: New → In Progress
Changed in watcher:
importance: Undecided → Medium
milestone: none → mitaka-rc-final
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

Reviewed: https://review.openstack.org/284541
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=d7f4f4277282173a534b4e4ac99dd9b99e739f9a
Submitter: Jenkins
Branch: master

commit d7f4f4277282173a534b4e4ac99dd9b99e739f9a
Author: Tin Lam <email address hidden>
Date: Wed Feb 24 23:23:30 2016 -0600

    Remove true/false return from action.execute()

    In watcher/applier/workflow_engine/default.py, we are checking the
    return value of action.execute(). As the "TODO" above indicates it
    (line 118), we should get rid of this and only flag an action as
    failed if an exception was raised during its execute(). We will
    need to update the related unit tests.

    Change-Id: Ia8ff7abd9994c3504e733ccd1d629cafe9d4b839
    Closes-Bug: #1548383

Changed in watcher:
status: In Progress → Fix Released
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.