Property values in nested stacks are no longer validated prior to creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Zane Bitter |
Bug Description
In bug 1645336 I assumed that the validation for a tree of nested stacks went like this:
create
-> validate ----------> validate --------------> validate
-> Resource.create ===> create
but in fact there is a piece of hidden state (sigh) to control whether the validation actually validates property values or not. So the real flow looked like:
create
-> validate ----------> validate* -------------> validate*
-> Resource.create ===> create
(where 'validate*' doesn't check the property values.)
So the fix for bug 1645336 actually changed it to this:
create
-> validate ----------> validate* -------------> validate*
-> Resource.create ===> create
but what we really want is probably:
create
-> validate ----------> validate* -------------> validate*
-> Resource.create ===> create
which does exactly 2 passes on nested stacks (instead of one per level of depth, as it originally did).
Alternatively, we'd need to find a way to validate the property values in nested stacks at the beginning (i.e. revert https:/
Fix proposed to branch: master /review. openstack. org/452307
Review: https:/