Task timeout error message

Bug #1527976 reported by Limor Stotland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Low
Limor Stotland

Bug Description

If task fails on timeout - there is no clear message of failure available in the API.

Workflow:
---
version: '2.0'

test_timeout_message:
  tasks:
    task1:
      action: std.async_noop
      timeout: 1

Output:
mistral execution-get dabff2db-3388-4502-bdbd-fcc0e89b1075
+-------------+-------------------------------------------------------------------+
| Field | Value |
+-------------+-------------------------------------------------------------------+
| ID | dabff2db-3388-4502-bdbd-fcc0e89b1075 |
| Workflow | test_timeout_message |
| Description | |
| State | ERROR |
| State info | Failure caused by error in tasks: task1 |
| | |
| | task1 [task_ex_id=be84abae-7bbb-48b5-a12c-d3b0d98d4849] -> None |
| | |
| Created at | 2015-12-19 21:53:31 |
| Updated at | 2015-12-19 21:53:32 |
+-------------+-------------------------------------------------------------------+

mistral task-get be84abae-7bbb-48b5-a12c-d3b0d98d4849
+---------------+--------------------------------------+
| Field | Value |
+---------------+--------------------------------------+
| ID | be84abae-7bbb-48b5-a12c-d3b0d98d4849 |
| Name | task1 |
| Workflow name | test_timeout_message |
| Execution ID | dabff2db-3388-4502-bdbd-fcc0e89b1075 |
| State | ERROR |
| State info | None |
+---------------+--------------------------------------+

Changed in mistral:
assignee: nobody → Limor Stotland (limor-bortman)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.openstack.org/259762

Changed in mistral:
status: New → In Progress
Lingxian Kong (kong)
Changed in mistral:
milestone: none → mitaka-2
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/259762
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=c4a614273da8898740e52c94d00d12026574f4e6
Submitter: Jenkins
Branch: master

commit c4a614273da8898740e52c94d00d12026574f4e6
Author: Limor Stotland <email address hidden>
Date: Sun Dec 20 12:08:02 2015 +0000

    If task fails on timeout - there is no clear message of failure

     * Adding state_info to fail_task_if_incomplete solve it
     * Unskip test TaskDefaultsReverseWorkflowEngineTest#test_task_defaults_timeout_policy

    Closes-Bug: #1527976
    Change-Id: I1f44f648ea71d2dcf8bdca77e6bcca0023963be0

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/mistral 2.0.0.0b2

This issue was fixed in the openstack/mistral 2.0.0.0b2 development milestone.

Changed in mistral:
milestone: mitaka-2 → 2.0.0
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.