parameter doesn't represent in template after stack update failed

Bug #1605485 reported by huangtianhua
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Sergey Kraynev

Bug Description

1. create a stack with template:
*****************************

heat_template_version: 2016-10-14
parameters:
  res_1_value:
    default: v1
    type: string
resources:
  test_res_1:
    type: OS::Heat::TestResource
    properties:
      value: {get_param: res_1_value}
*******************************

2. update the stack with a new template:
******************************
heat_template_version: 2016-10-14
parameters:
  res_1_value:
    default: v1
    type: string
  res_2_value:
    type: string
resources:
  test_res_1:
    type: OS::Heat::TestResource
    properties:
      value: {get_param: res_1_value}
      fail: True
  test_res_2:
    type: OS::Heat::TestResource
    properties:
      value: {get_param: res_2_value}
*****************************

3. the stack update failed(we expected), and the resource test_res_2 is created successful, but template-show we will get the template like:
****************************
heat_template_version: 2016-10-14
parameters:
  res_1_value:
    default: v1
    type: string
resources:
  test_res_1:
    type: OS::Heat::TestResource
    properties:
      value: {get_param: res_1_value}
      fail: True
  test_res_2:
    type: OS::Heat::TestResource
    properties:
      value: {get_param: res_2_value}
********************************

4. There is no definition of parameter 'res_2_value'

Changed in heat:
assignee: nobody → huangtianhua (huangtianhua)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/347123

Changed in heat:
status: New → In Progress
Changed in heat:
assignee: huangtianhua (huangtianhua) → Sergey Kraynev (skraynev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit 59476f63bc1d5da584d5d49cae44caa630a8efae
Author: huangtianhua <email address hidden>
Date: Tue Jul 26 10:58:33 2016 +0800

    Support condition for resource

    Support condition section in resource definition.

    Change-Id: Ic63debbf71c158e397ca3d9b9047eafdd598830b
    Blueprint: support-conditions-function
    Closes-Bug: #1605485

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
Thomas Herve (therve) wrote :

The merge doesn't seem to match the bug, was the reference incorrect in the commit message?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 7.0.0.0b3

This issue was fixed in the openstack/heat 7.0.0.0b3 development milestone.

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.