execution-get truncates "State info"

Bug #1509456 reported by Morgan Jones
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Medium
Hardik Parekh

Bug Description

When trying to execute a workflow with an error in the yaml script, it is impossible to determine the error because execution-get truncates the error message.

Steps:

mistral workbook-create mtest.yaml
mistral execution-create bob.the_test
mistral execution-get <id from previous>

======================
mtest.yaml
======================

version: '2.0'

name: bob

workflows:
  the_test:
    type: direct

    tasks:
      task1:
        action: nova.networks_list
        publish:
          foo: <% $.len() %>

Changed in mistral:
milestone: none → mitaka-1
Revision history for this message
Nikolay Makhotkin (nmakhotkin) wrote :

Can you please provide more specific way to reproduce the problem? The above example works perfectly for me and, therefore, state_info is just None in this case.

Changed in mistral:
status: New → Incomplete
Revision history for this message
Morgan Jones (6-morgan) wrote :

Sorry, gave you the wrong version. Change $.len() to $.length() and try again. That should show the error being truncated.

Changed in mistral:
status: Incomplete → Confirmed
importance: Undecided → Medium
Changed in mistral:
assignee: nobody → hardik (hardik-parekh047)
tags: added: liberty-backport-potential
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/246361

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

commit f26dcf3e510e8d1dd4f138b978ee15d1060ed609
Author: hparekh <email address hidden>
Date: Tue Nov 17 17:55:33 2015 +0530

    Increased size of "state_info" column to 64kb.

    Change-Id: I03dfbc9878f9e25d5752dc11c684396d07f0eb3e
    Closes-bug: #1509456

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

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/246848

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

Reviewed: https://review.openstack.org/246848
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=6986c598aaee1400b500f9177bc33797f4cb2a47
Submitter: Jenkins
Branch: stable/liberty

commit 6986c598aaee1400b500f9177bc33797f4cb2a47
Author: hparekh <email address hidden>
Date: Tue Nov 17 17:55:33 2015 +0530

    Increased size of "state_info" column to 64kb.

    Change-Id: I03dfbc9878f9e25d5752dc11c684396d07f0eb3e
    Closes-bug: #1509456
    (cherry picked from commit f26dcf3e510e8d1dd4f138b978ee15d1060ed609)

tags: added: in-stable-liberty
Thierry Carrez (ttx)
Changed in mistral:
status: Fix Committed → Fix Released
Changed in mistral:
milestone: mitaka-1 → 2.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 1.0.1

This issue was fixed in the openstack/mistral 1.0.1 release.

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.