bulk requests may fail to clean up created resources on failure

Bug #1597752 reported by Ihar Hrachyshka on 2016-06-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

When creating resources in bulk (either with native ml2 support, or with emulated support in the base api controller), when an exception occurs when creating one of requested resources, an effort is made to clean up resources that were successfully created before the failure.

Sadly, sometimes an exception may occur during cleanup, that will leave a resource in the database. For example, StaleDataError may be raised from SQLAlchemy, for one because of our usage of version_id_col; that state is fine and should be handled by retrying the operation, but we don't, instead we just swallow the exception and leave the resource to sit in the database.

We should apply retry mechanism to the cleanup phase to avoid that scenario.

Tags: api Edit Tag help
tags: added: api
Changed in neutron:
status: New → Confirmed
importance: Undecided → High
Lujin Luo (luo-lujin) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers