stack lock release when acquire
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
huangtianhua | ||
Juno |
Fix Released
|
Undecided
|
huangtianhua |
Bug Description
1. create a stack with a nova server
2. the stack in CREATE_IN_PROGRESS, the nova server in BUILD
3. try to update the stack
4. an error raised: ERROR: Stack ic already has an action (CREATE) in progress.
5. describe: stack in CREATE_IN_PROGRESS and the nova server in BUILD still
6. try to update again
7. then the stack change to UPDATE_FAILED
excepted: The step7 should raise the error as step4
I found in step4, the stack and engine lock is released due to the exception, and I think it's incorrect.
#######
@contextlib.
def thread_lock(self, stack_id):
try:
yield
except: # noqa
with excutils.
#################
Changed in heat: | |
assignee: | nobody → huangtianhua (huangtianhua) |
Changed in heat: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-3 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/153186
Review: https:/