heat/heat
Zane Bitter 0abf43535d Don't use wrap_db_retry on subtransaction in resource_create_replacement()
The wrap_db_retry decorator must be used outside the outermost DB
transaction. Using it on a subtransaction means that the main
transaction gets marked for rollback but not closed, leaving the session
in the 'inactive' state.

This change ensures that the decorator is not used when we update the
previous resource from within a subtransaction as part of creating a
replacement resource, and instead the retry happens outside the main
transaction.

Change-Id: I28bfcc43b108d4d907098b2f0cf3553aab399553
Task: 36957
(cherry picked from commit 2398191be9)
2019-10-18 15:30:01 +00:00
..
api middleware: return HTTPBadRequest when path is invalid 2018-09-11 11:23:46 +02:00
cloudinit Validate that python3 is ready for loguserdata 2016-08-26 11:49:30 +00:00
cmd Merge "change import order" 2019-09-26 06:45:08 +00:00
common Add retries when loading keystone data and fetching endpoints 2019-08-23 21:34:31 +05:30
db Don't use wrap_db_retry on subtransaction in resource_create_replacement() 2019-10-18 15:30:01 +00:00
engine Support Ignition for userdata 2019-10-01 05:51:55 +00:00
hacking Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
httpd Remove unnecessary shebangs from service scripts 2018-08-01 10:53:51 +05:30
locale Imported Translations from Zanata 2019-10-02 08:40:12 +00:00
objects Streamline conversion of resources to convergence 2018-12-17 16:59:25 +13:00
policies Add a Blazar Host resource 2019-02-18 06:41:23 +00:00
rpc Option for retrieving child templates and env files from swift 2018-07-26 09:50:51 +05:30
scaling Merge "Eliminate nested stack loading in InstanceGroup/ASG scaling" 2018-04-02 04:35:47 +00:00
tests Don't use wrap_db_retry on subtransaction in resource_create_replacement() 2019-10-18 15:30:01 +00:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py change the dist name to 'openstack-heat' 2018-11-01 11:54:05 -04:00