CLI 'task-list' stops working when a task with two 'with-items' is executed

Bug #1606239 reported by Taras Kostyuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Incomplete
Medium
ali abdelal

Bug Description

Mistral revision
----------------

root@node-1:~/mistral# git branch
  master
* stable/mitaka
root@node-1:~/mistral# git log -1
commit 21b2322f7ffa7a9d720e71fb135ec067991e6375
Author: OpenStack Proposal Bot <email address hidden>
Date: Fri Jun 10 23:15:16 2016 +0000

    Updated from global requirements

    Change-Id: I1b3f7fb4dd2589390f381156036b9ad36d6c2044

Steps to reproduce:
-------------------

0. Run 'mistral task-list' CLI command to verify the command works.
1. Create a workflow with a task containing two 'with-items'. Two rows of the task parameters should start from the word 'with-items'. Yes, this is wrong syntax but should not cause 'mistral task-list' failure.
2. Execute the workflow.
3. Run 'mistral task-list' CLI command and get

# mistral task-list
ERROR (app) 'with_items_context'

Workaround:
-----------

Delete the execution using Mistral CLI,
correct and update the workflow.
'mistral task-list' CLI should work again.

Revision history for this message
Taras Kostyuk (tkostyuk) wrote :

The steps to reproduce contain an error. Step 1. is wrong.

Actually to get

# mistral task-list
ERROR (app) 'with_items_context'

it's required to create a task with action which will definitely fail. F.e. 'action: cinder.backups_create' without mandatory parameters can be used.

Changed in mistral:
status: New → Triaged
importance: Undecided → Medium
Changed in mistral:
assignee: nobody → ali (alielal)
Changed in mistral:
milestone: none → train-1
Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

Taras,

The branch stable/mitaka is too old. We don't support it anymore. Is this issue reproducible on "stein", "rocky" and "queens"?

Changed in mistral:
status: Triaged → Incomplete
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.