OpenStack Orchestration (Heat)
Go to file
Steve Baker acb2c56fe0 Use atomic_key for deployment metadata updates
This change switches _push_metadata_software_deployments over to
using db_api.resource_update for deployment resource metadata
updates.

Using the atomic_key filter of resource_update allows this code
to detect if another transaction has updated the metadata, and
the wrap_db_retry decorator is used to perform retry attempts. No actual
resource locking is required since we just need to detect if another
transaction performed an update, so the engine_id is not specified.

This change uses db_api directly rather than the Resource object since
this change will need to be backported to Kilo (db_api.resource_update
was created for convergence, and is in Kilo, but Resource object using
it is not). This change can switch back to using the Resource object once the
backport is complete.

This rows_updated/RetryRequest/wrap_db_retry technique is used by other
OpenStack projects for concurrent transaction detection (such as nova,
for floating IP allocation).

Change-Id: Ibf9dd58a66a77d9ae9d4b519b0f11567977f416c
Closes-Bug: #1477329
2015-08-14 09:17:28 +12:00
bin Update wsgi.py to support reload from conf on SIGHUP 2015-07-06 17:27:28 +03:00
contrib Do not use rich server objects in servers' create 2015-07-27 14:52:45 +03:00
devstack/upgrade In-tree grenade support for Heat 2015-07-02 17:23:22 +05:30
doc Add default value for boolean type to pluginguide 2015-08-13 18:29:09 +03:00
etc/heat Add template-function-list 2015-07-10 09:39:39 -04:00
heat Use atomic_key for deployment metadata updates 2015-08-14 09:17:28 +12:00
heat_integrationtests Merge "Adds option to skip specific tests" 2015-08-13 10:04:54 +00:00
heat_upgradetests In-tree grenade support for Heat 2015-07-02 17:23:22 +05:30
rally-scenarios Add config file for performance gate job 2014-08-08 02:22:59 +04:00
tools Add a way to run py34 tests from file 2015-07-09 07:15:37 +00:00
.coveragerc Enabled source code coverage for contrib directory 2014-01-28 21:49:40 +08:00
.gitignore Ignore .eggs directory (created by the new pbr) 2015-07-22 10:35:25 +10:00
.gitreview Update .gitreview for org move. 2012-12-02 17:46:15 +00:00
.testr.conf Add separate requirements.txt to integration tests 2015-04-01 09:02:13 +00:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:36 +00:00
HACKING.rst cleanup of hacking.rst heat doc 2015-04-28 16:47:07 -04:00
LICENSE Initial commit (basics copied from glance) 2012-03-13 21:48:07 +11:00
README.rst Merge "changed heat dev docs to comply with conventions" 2015-05-08 08:54:19 +00:00
babel.cfg Add setup.py and friends 2012-03-14 09:25:54 +11:00
bandit.yaml tox environment for `bandit` 2015-07-08 09:13:35 -04:00
config-generator.conf Fix config generator for oslo.service 2015-06-27 05:33:07 -04:00
install.sh Merge "Switch from MySQL-python to PyMySQL" 2015-06-22 10:32:35 +00:00
openstack-common.conf Switch to oslo.service 2015-06-23 08:30:39 +02:00
py3-testlist heat.tests.aws.* 2015-08-13 13:59:18 +05:30
pylintrc Directives to not use variable names that conflict with pdb 2012-03-20 07:16:16 -04:00
requirements.txt Updated from global requirements 2015-08-13 02:12:00 +00:00
setup.cfg Monasca client plugin 2015-08-11 10:04:03 +05:30
setup.py Updated from global requirements 2015-07-15 07:33:24 +00:00
test-requirements.txt Updated from global requirements 2015-08-04 00:53:02 +00:00
tox.ini Use OS_TEST_PATH for integration tests 2015-08-03 11:00:22 +12:00
uninstall.sh Add uninstall script for Heat 2012-06-23 22:41:30 -04:00