Execution creation is failed, if created using workflow id

Bug #1549047 reported by Hardik Parekh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Hardik Parekh

Bug Description

When we create execution using workflow id . it is getting fail.

2016-02-23 18:06:35.702 ERROR wsme.api [-] Server-side error: "'workflow_name'". Detail:
Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py", line 84, in callfunction
    result = f(self, *args, **kwargs)

  File "/opt/stack/mistral/mistral/api/controllers/v2/execution.py", line 235, in post
    exec_dict.get('workflow_id', exec_dict['workflow_name']),

KeyError: 'workflow_name'

Changed in mistral:
assignee: nobody → hardik (hardik-parekh047)
Lingxian Kong (kong)
Changed in mistral:
importance: Undecided → High
status: New → Confirmed
milestone: none → mitaka-3
Changed in mistral:
status: Confirmed → In Progress
Revision history for this message
Nikolay Makhotkin (nmakhotkin) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

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

commit 4878202c0e2a404c0b38b8db53728dde98403797
Author: hardik <email address hidden>
Date: Wed Feb 24 11:48:30 2016 +0900

    Fixed 'workflow_name' key error

    when workflow execution is created by workflow_id
    'workflow_name' key error was raised. Now 'workflow_name'
    is extracted from dictionary using get() function.

    Change-Id: I5a648742b2653818d3bc4d4025ce1fe0b73a2d24
    Closes-bug: #1549047

Changed in mistral:
status: In Progress → Fix Released
Changed in mistral:
milestone: mitaka-3 → 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.