task() without a given task name doesn't work within on-complete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
High
|
Anastasia Kuznetsova |
Bug Description
The task() expression function should return the current task if no name is provided. However, this doesn't work within the on-complete section of a task.
Take a look at the following session to see this issue. Note that the state info is different in the execution list at the end
Paste with better formatting: http://
[stack@undercloud ~]$ cat taskfn.yaml
---
version: '2.0'
name: taskfn
workflows:
wf1:
tasks:
task_a:
action: std.echo output="test"
- fail(msg=<% task() %>)
wf2:
tasks:
task_a:
action: std.echo output="test"
- fail(msg=<% task(task_a) %>)
[stack@undercloud ~]$ mistral execution-create taskfn.wf1
+------
| Field | Value |
+------
| ID | 3d4300cf-
| Workflow ID | 3463c36b-
| Workflow name | taskfn.wf1 |
| Description | |
| Task Execution ID | <none> |
| State | RUNNING |
| State info | None |
| Created at | 2017-02-14 16:12:24 |
| Updated at | 2017-02-14 16:12:24 |
+------
[stack@undercloud ~]$ mistral execution-create taskfn.wf2
+------
| Field | Value |
+------
| ID | a27e83e1-
| Workflow ID | c00968bc-
| Workflow name | taskfn.wf2 |
| Description | |
| Task Execution ID | <none> |
| State | RUNNING |
| State info | None |
| Created at | 2017-02-14 16:12:34 |
| Updated at | 2017-02-14 16:12:34 |
+------
[stack@undercloud ~]$ mistral execution-list
+------
| ID | Workflow ID | Workflow name | Description | Task Execution ID | State | State info | Created at | Updated at |
+------
| 3d4300cf-
| a27e83e1-
+------
Changed in mistral: | |
milestone: | none → pike-1 |
Changed in mistral: | |
assignee: | nobody → Anastasia Kuznetsova (akuznetsova) |
Changed in mistral: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/451340
Review: https:/