No output in executions listing

Bug #1617351 reported by Jiri Tomasek
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Dougal Matthews

Bug Description

Recently Executions listing has been refactored for better performance (split into multiple tables etc.) but the side effect is that GET v2/executions API calls don't include the 'output' of each execution and to actually get it another GET v2/executions/<exID> API call for each execution is required.

TripleO UI uses executions listing and track the results of a set of workflow executions. Only place to keep the information about each of those executions is the execution output. This means, that GUI has to make an API call to get list of executions and then for each execution it needs to make another API request to fetch the output for each execution. This is not exactly performant and the result is actually much worse then the effect of going through multiple DB tables for executions listing request.

Proposed solution is to add 'include_output' boolean parameter to GET v2/executions which would make the response include the outputs with the executions. This solution enables clients to fetch executions outputs in single API call as well as maintains current, more performant, executions listing call without 'output' by default.

Jiri Tomasek (jtomasek)
Changed in mistral:
assignee: nobody → Jiri Tomasek (jtomasek)
assignee: Jiri Tomasek (jtomasek) → nobody
Dougal Matthews (d0ugal)
Changed in mistral:
assignee: nobody → Dougal Matthews (d0ugal)
status: New → Confirmed
Ryan Brady (rbrady)
Changed in mistral:
importance: Undecided → Low
importance: Low → High
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/364446

Changed in mistral:
status: Confirmed → In Progress
Revision history for this message
Dougal Matthews (d0ugal) wrote :

Just to state it clear, this bug is actually reporting a regression caused by the refactoring.

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

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

commit dbdf4fcad2d412265348b48e2de413fbe816768b
Author: Dougal Matthews <email address hidden>
Date: Thu Sep 1 17:25:33 2016 +0100

    Optionally include the output when retrieving all executions

    During the table refactor, the output was removed from the result
    of listing all the executions. This change restores that
    behaviour but doesn't include the output by default to avoid
    performance problems. To include it, the query param
    include_output should be used. For example:

        /v2/executions?include_output=true

    Closes-Bug: #1617351
    Change-Id: I2acec34920e397789fc61f184ed69071497ea7d9

Changed in mistral:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/mistral 3.0.0.0rc1

This issue was fixed in the openstack/mistral 3.0.0.0rc1 release candidate.

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.