Glance v2 Tasks Creation should be non-blocking

Bug #1459051 reported by Sabari Murugesan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Sabari Murugesan

Bug Description

The glance v2 tasks creation api is blocking, in the sense, when a task is created the 201 response is not received until the task is complete. Also, when the response is received the task is in the pending state while the task in-effect could have succeeded or failed.

We need to make it non-blocking by either running the executor in a separate eventlet thread or offload it to a task worker.

Changed in glance:
assignee: nobody → Sabari Murugesan (smurugesan)
Changed in glance:
status: New → In Progress
Revision history for this message
Erno Kuvaja (jokke) wrote :
tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/184125
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=1296c6d0eb004a5c15b392bf7154db9217200631
Submitter: Jenkins
Branch: master

commit 1296c6d0eb004a5c15b392bf7154db9217200631
Author: Sabari Kumar Murugesan <email address hidden>
Date: Mon May 18 14:08:32 2015 -0700

    Make create task as non-blocking

    Currently, the create task api is blocking and waits until the task
    is complete to return a 201 but that too with a Pending status.

    The patch runs the task executor in an eventlet thread.

    Closes-Bug: #1459051

    Change-Id: I94f932afb5b754d9bcfa7bbbd1c450bdef7f28ef

Changed in glance:
status: In Progress → Fix Committed
Changed in glance:
importance: Undecided → High
Changed in glance:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: liberty-1 → 11.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.