Need to add additional validation in 'join' control and fail execution in case if it is not passed

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

Bug Description

Steps to reproduce:
1) create workflow for example with 2 regular tasks and 1 task with "join" control :

wf:
task1:
  ...
task2:
 ...
task3:
   join: 10

2) execute created wf

Observed result:
Workflow execution will be in SUCCESS state, because task1 and task2 were successful, but task3 will never be executed.

Expected result:
Workflow execution will fail because of "10" is incorrect and workflow has less then 10 tasks at all.

Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

This is definitely a valid ticket. However, I think this is a part of a bigger task (BP) that needs to address post-load validation of workflows such as: integrity (e.g. references to not existing tasks, actions etc.), dead-lock condition analysis and others.

Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

We need to discuss it further.

Changed in mistral:
status: New → Confirmed
importance: Undecided → Low
description: updated
Changed in mistral:
importance: Low → Medium
Changed in mistral:
milestone: none → liberty-1
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/224714

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/224714
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=17bfd2ad97de5c82e6fa33b549adf8efd0432d81
Submitter: Jenkins
Branch: master

commit 17bfd2ad97de5c82e6fa33b549adf8efd0432d81
Author: Renat Akhmerov <email address hidden>
Date: Thu Sep 17 15:46:02 2015 +0300

    Add semantics validation of direct workflow 'join' tasks

    * E.g. if we have a task marked with 'join: 10' but it has only
      2 inbound tasks then task specification will raise an exception.
    * Minor refactoring and style changes

    Change-Id: I311aadd0afa2e05213da1fdd999233dee03afda3
    Closes-Bug: #1404205

Changed in mistral:
status: In Progress → Fix Committed
Changed in mistral:
milestone: 1.0.0 → none
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.