Stack create failed due launchconfig reference not found

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

Bug Description

1. create a stack with aws autoscaling group:
***************************************
heat_template_version: 2015-04-30
parameters:
  subnet:
    type: string
    default: 763ded43-05bc-4cfb-ba59-e0ff0bb80e5e
resources:
  my_asg:
    type: AWS::AutoScaling::AutoScalingGroup
    properties:
      AvailabilityZones: ['nova']
      LaunchConfigurationName: lc
      MaxSize: 4
      MinSize: 1
      VPCZoneIdentifier:
      - get_param: subnet
    depends_on: lc
  lc:
    type: AWS::AutoScaling::LaunchConfiguration
    properties:
      ImageId: cirros-0.3.0-x86_64-disk
      InstanceType: 1
***************************************************

2. I used 'depends_on' instead of {get_resource: lc}, but the stack created failed, a valueerror raised: ValueError: resources.my_asg: LaunchConfigurationName (lc) reference can not be found.

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/289762

Changed in heat:
status: New → In Progress
Changed in heat:
milestone: none → mitaka-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

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

commit ef27c7b582bb4698ae83e5c633e869dd2c40475b
Author: huangtianhua <email address hidden>
Date: Tue Mar 8 15:20:00 2016 +0800

    Allow resource name as reference if using depends_on

    We allow using 'depends_on' instead of 'get_resource'
    function to explictly indicate the dependency, and some
    resources override the get_reference_id() method to return
    the physical_resource_name, in this case the resource name
    won't match the physical_resource_name, so we should allow
    to find resource in stack with resource name as reference.

    Change-Id: Icd37e0d7b341c996f62d78d42cc81da00ec0e7d3
    Closes-Bug: #1554372

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.