]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Add a DB API to swap two resources between stacks
authorZane Bitter <zbitter@redhat.com>
Mon, 26 Aug 2013 19:11:59 +0000 (21:11 +0200)
committerZane Bitter <zbitter@redhat.com>
Mon, 26 Aug 2013 19:11:59 +0000 (21:11 +0200)
commitfbd598b9ab5fdcb1db253a1e9115d65112989775
tree2618bfc7d39efda17aa4129ea2fd8d308b4c0421
parent83bbb975cab56ffa452e41ccfe9e965b939b66e6
Add a DB API to swap two resources between stacks

When rolling back a stack update, we will need to swap the current and
previous (backup) resources so that the former moves to the backup stack
while the latter returns to the current stack. This API allows us to effect
the switch using a database transaction (thus avoiding having to create a
*third* stack).

Change-Id: I2b7247e384e3914778179260e198e5ae5c701525
heat/db/api.py
heat/db/sqlalchemy/api.py