deb-murano/murano
Alexander Tivelkov 5c7e20a742 Retry-on-deadlock added to modify package db api
On some HA database deployments such as MySQL Galera the transaction
locks are optimistic, and if the same data gets modifyed concurrently
DB server may throw a DBDeadlock error which is intended to be handled
by the caller app.

This patch adds appropriate retrying logic into the catalog db api
methods, so the operation to upload, modify or delete the package gets
retryed if the deadlock occurs due to this optimistic locking behavior.
It uses oslo_db_api.wrap_db_retry helper decorator from oslo library.

Closes-Bug: #1502589
Change-Id: I8d7b3dfb02a31eba6d55ba0bf89ac0cf05f1313d
2015-10-08 15:49:51 +03:00
..
api Merge "Add 'acquired_by' property to Environment resource" 2015-10-02 15:21:49 +00:00
cmd Fix the run_test unchecked pep8 W503 and E402 errors 2015-09-26 13:43:55 +08:00
common Enable H233: Python 3.x incompatible use of print operator 2015-09-28 13:36:56 +00:00
db Retry-on-deadlock added to modify package db api 2015-10-08 15:49:51 +03:00
dsl Python method results were not converted to immutable values 2015-10-05 11:14:34 +03:00
engine Murano waited indefinitely for UPDATE_COMPLETE stack status 2015-09-27 18:22:40 +03:00
locale Rename muranoapi to murano 2014-05-27 15:14:44 +04:00
packages Test hot package files with sets instead of lists 2015-10-01 14:18:35 +03:00
policy Fix the run_test unchecked pep8 W503 and E402 errors 2015-09-26 13:43:55 +08:00
services Fixed 500 error in get_result API handler 2015-03-26 15:59:19 +00:00
tests Replace deprecated tempest config option 2015-10-07 19:54:22 +03:00
__init__.py Extract version definition to a separate file 2014-11-10 13:02:56 +04:00
context.py Inherit RequestContext from oslo_context's RequestContext 2015-08-13 15:12:59 +03:00
opts.py Allow setting eventlet.wsgi.MAX_HEADER_LINE 2015-07-21 13:54:15 +03:00
utils.py Log refactoring close to new logging spec 2015-09-09 20:54:26 +03:00
version.py Extract version definition to a separate file 2014-11-10 13:02:56 +04:00