Server delete tasks are incorrectly serialized

Bug #1347775 reported by Steven Hardy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Invalid
Undecided
Unassigned

Bug Description

Currently, when deleting a number of non-dependent OS::Nova::Server resources, we serialize the deletes, which is happening because we start the task in the handle_delete, instead of handing off to the check_delete_complete, enabling subsequent tasks to be scheduled.

This means there's a noticeable delay when deleting the resources, because the first step of the task is performed by the start(), which nova_utils.delete_server means it does the delete.

Moving the start to check_delete_complete solves the problem - the deletes are all started approximately in parallel then, as expected.

The same bug appears to exist in the EC2::Instance resource too.

Steven Hardy (shardy)
Changed in heat:
status: New → In Progress
assignee: nobody → Steven Hardy (shardy)
importance: Undecided → High
milestone: none → juno-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/109027

Revision history for this message
Zane Bitter (zaneb) wrote :

"we serialize the deletes, which is happening because we start the task in the handle_delete,"

Correction: we serialise the deletes, always (regardless of whether they occur in handle_delete or check_delete_complete), because we are running in a single (green)thread.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat (master)

Change abandoned by Steven Hardy (<email address hidden>) on branch: master
Review: https://review.openstack.org/109027

Steven Hardy (shardy)
Changed in heat:
milestone: juno-3 → none
assignee: Steven Hardy (shardy) → nobody
importance: High → Undecided
status: In Progress → Invalid
Revision history for this message
Robert Collins (lifeless) wrote :

Why was this abandoned? latest heat still shows the problem.

Revision history for this message
Robert Collins (lifeless) wrote :

(and stevens patch *fixed it*)

Changed in heat:
status: Invalid → New
Revision history for this message
Robert Collins (lifeless) wrote :

Did more digging, sorry for the noise, trunk is indeed fixed in this regard already.

Changed in heat:
status: New → Invalid
Revision history for this message
Steven Hardy (shardy) wrote :

Robert - yes, after some confusion, we realized my patch actually didn't fix it, and that the key change was this patch from Randall:

https://review.openstack.org/#/c/99800/

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.