Possible race condition when two instances are deployed
Bug #1364824 reported by
Serg Melikyan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
High
|
Serg Melikyan |
Bug Description
Murano uses Heat to allocate OpenStack resources by creating and updating one Heat stack. All changes to stack are stored in shared variable exposed via call to environment.
Changed in murano: | |
status: | Confirmed → In Progress |
Changed in murano: | |
milestone: | juno-3 → juno-rc1 |
Changed in murano: | |
status: | Fix Committed → Fix Released |
Changed in murano: | |
milestone: | juno-rc1 → 2014.2 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/118570 /git.openstack. org/cgit/ stackforge/ murano/ commit/ ?id=9130ad2c740 8b3d15b48ab6f0d 37ee0dfec1ca65
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9130ad2c7408b3d 15b48ab6f0d37ee 0dfec1ca65
Author: Serg Melikyan <email address hidden>
Date: Wed Sep 3 12:37:26 2014 +0400
Fix race condition when two Instances are deployed
Murano uses Heat to allocate OpenStack resources by creating and stack.updateSta ck.
updating one Heat stack. All changes to stack are stored in shared
variable exposed via call to environment.
Allocation of resources needed by Instance class is done in several calls stack.updateSta ck therefor in case of simultaneous deployment
to environment.
of two instances of class Instance race condition is possible.
Instance class was rewritten to have only one call to stack.updateStack
that is going to eliminate possible race condition.
P.S. This change also introduce new function mergeWith that can merge
two dicts.
Change-Id: Ib3b0be04e7d0b6 107466bd5837278 a12f01cf766
Closes-Bug: #1364824