Failed to preview stack with template resource nested in resource group

Bug #1548802 reported by Oleksii Chuprykov
12
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://paste.openstack.org/show/487884/
inner.yaml: http://paste.openstack.org/show/487885/

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/286229
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=a7d63111a386895a62147d70ead5f2b46fea52d6
Submitter: Jenkins
Branch: master

commit a7d63111a386895a62147d70ead5f2b46fea52d6
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: Ia1097940db983721c8b5116db7ee0a2c4c45339d
    Closes-Bug: #1548802

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0rc1

This issue was fixed in the openstack/heat 6.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.