Remove all internal WF context data from final WF output

Bug #1648425 reported by Renat Akhmerov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Medium
Renat Akhmerov

Bug Description

If we have a WF where 'output' field is not defined explicitly then all WF context is treated as its output. But some of the data we put into the context is for internal purposes only.

Example:

For the worklflow:

my_wf:
  tasks:
    task1:
      action: std.echo output="Hi Mistral!"
      on-success: task2

    task2:
      action: std.noop

we will have output:

{
    "__task_execution": {
        "id": "ee3f896b-a0d7-4d97-8f12-e355ba9840e1",
        "name": "task2"
    }
}

The key "__task_execution" should not be in it because it's a internal temporary data.

Changed in mistral:
importance: Undecided → Medium
milestone: none → ocata-2
status: New → Confirmed
Changed in mistral:
milestone: ocata-2 → ocata-3
Changed in mistral:
assignee: nobody → Renat Akhmerov (rakhmerov)
Changed in mistral:
milestone: ocata-3 → ocata-rc1
Changed in mistral:
milestone: ocata-rc1 → ocata-rc2
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/432215

Changed in mistral:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

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

commit e425a68be30b937f4432bd5aed50d273d929ff07
Author: Renat Akhmerov <email address hidden>
Date: Fri Feb 10 16:58:59 2017 +0700

    Remove '__task_execution' from task outbound context

    Change-Id: I28820c331c8b22e64a86365c6c01245e0e65513b
    Closes-Bug: #1648425

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/434836

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (stable/ocata)

Reviewed: https://review.openstack.org/434836
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=c333576e84cc9cfe911f7bfcd64cc54cfe421dd3
Submitter: Jenkins
Branch: stable/ocata

commit c333576e84cc9cfe911f7bfcd64cc54cfe421dd3
Author: Renat Akhmerov <email address hidden>
Date: Fri Feb 10 16:58:59 2017 +0700

    Remove '__task_execution' from task outbound context

    Change-Id: I28820c331c8b22e64a86365c6c01245e0e65513b
    Closes-Bug: #1648425
    (cherry picked from commit e425a68be30b937f4432bd5aed50d273d929ff07)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 4.0.0.0rc2

This issue was fixed in the openstack/mistral 4.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 5.0.0.0b1

This issue was fixed in the openstack/mistral 5.0.0.0b1 development milestone.

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.