Failed to preview stack with template resource nested in resource group
Bug #1548802 reported by
Oleksii Chuprykov
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Oleksii Chuprykov |
Bug Description
Preview stack with such templates:
outer.yaml: http://
inner.yaml: http://
heat stack-preview abc -f outer.yaml
Heat responses with ERROR: The Parameter (fixed_network_id) was not provided.
It seems that preview_resources() is broken.
Changed in heat: | |
assignee: | nobody → Oleksii Chuprykov (ochuprykov) |
summary: |
- Failed to create stack with template resource nested in resource group + Failed to preview stack with template resource nested in resource group |
Changed in heat: | |
status: | New → In Progress |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → mitaka-rc1 |
description: | updated |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/286229 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=a7d63111a38 6895a62147d70ea d5f2b46fea52d6
Committed: https:/
Submitter: Jenkins
Branch: master
commit a7d63111a386895 a62147d70ead5f2 b46fea52d6
Author: Oleksii Chuprykov <email address hidden>
Date: Fri Mar 4 19:42:20 2016 +0200
Fix stack preview
Don't execute translation rule for property that contains
a GetParam function that can't be resolved at the moment.
Such situation happens when we try to resolve get_param function
that refer to parameter with None value. We receive parameter value
from parent stack, where this value is a reference to some resource
without resource_id, so this situation is legal for stack preview
and we shouldn't fail. Note, that we can reproduce this behaviour
only with resources with hidden parameters and overrided get_resource_id
method, that returns None if resoruce creation has not been started yet.
Change-Id: Ia1097940db9837 21c8b5116db7ee0 a2c4c45339d
Closes-Bug: #1548802