Stack validation (stack-update --dry-run) with --show-nested fails, while stack update itself works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
High
|
Oleksiy Molchanov |
Bug Description
Issue was previously reported as https:/
Error is:
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
2018-11-12 20:07:18.053 32589 ERROR oslo_messaging.
If "--show-nested" is not used, then validation works. Stack update also works, to the issue is only with the --dry-run method when --show-nested is used.
To Mirantis staff - I have a lab environment where I have reproduced this issue, can provide access, please contact me in Slack.
Changed in mos: | |
assignee: | MOS Maintenance (mos-maintenance) → Oleksiy Molchanov (omolchanov) |
Changed in mos: | |
milestone: | 9.x-updates → 9.2-mu-10 |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in mos: | |
status: | In Progress → Fix Committed |
I have identified that in:
File "/usr/lib/ python2. 7/dist- packages/ heat/engine/ resource. py", line 1062, in preview_update
The values for IDs which should be extracted from nested stacks are 'None' in the updated_stack structure:
http:// paste.openstack .org/show/ 734732/
If debug log is enabled, I can see that Heat tries to "GET" these resources via going to respective APIs and passes None as ID, fails several times.
Subsequently in:
File "/usr/lib/ python2. 7/dist- packages/ heat/engine/ resource. py", line 563, in prop_changed get(key)
return before != after_props.
Heat raises this error because after_props does not contain some of the keys.
Right now it seems that updated_stack does not get populated with any resource IDs known to current_stack, and I'm not sure how this should work.