rollback fails when updating stack if the parameters changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
lvdongbing |
Bug Description
I had a stack, and for some reasons update failed, then rollback failed because template validation failed.
traceback:
-> oldstack = Stack(self.context, self.name, self.t, self.env)
(Pdb)
Traceback (most recent call last):
File "/usr/lib64/
readers.
File "/usr/lib64/
result = function(*args, **kwargs)
File "/usr/lib64/
updater()
File "/usr/lib64/
self.
File "/usr/lib64/
while not self.step():
File "/usr/lib64/
next(
File "/usr/lib64/
subtask = parent.
File "/usr/lib64/
yield self.update_
File "/usr/lib64/
step = next(subtask)
File "/usr/lib64/
subtask = next(parent)
File "/usr/lib64/
oldstack = Stack(self.context, self.name, self.t, self.env)
File "/usr/lib64/
user_
File "/usr/lib64/
self.
File "/usr/lib64/
raise exception.
UnknownUserPara
the reason is when we update a stack, we will replace the self.env with new_stack.env, but if update fails,
we use the new_env but the old_template, the validating will fail.
oldstack = Stack(self.context, self.name, self.t, self.env)
try:
updater = scheduler.
Changed in heat: | |
assignee: | nobody → lvdongbing (dbcocle) |
Changed in heat: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/88306
Review: https:/