Stack delete fails after wrong attribute in template

Bug #1340126 reported by sab
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Alexey Ivanitskiy

Bug Description

While creating a LoadBalancer resource with a template like below:

   LBpool:
      type: OS::Neutron::LoadBalancer
      properties:
          members: [{get_attr: [autoscaling_group, InstanceList]}]
          protocol_port: 8080
          pool_id: lb_autoscaling_pool

Here autoscaling_group is a AutoScalingGroup resource, Since there is no 'InstanceList' attribute in AutoScalingGroup it will fail with a StackValidationFailed exception.

While if we try to delete the stack, the deletion fails throwing a "ValueError: LBpool: members The Referenced Attribute (instance_group InstanceList) is incorrect." .

 I think on a stack deletion it's desirable to recover from such errors.

Changed in heat:
assignee: nobody → Alexey Ivanitskiy (aivanitskiy)
Revision history for this message
Alexey Ivanitskiy (aivanitskiy) wrote :

There is a patch, which fixes this bug.
https://review.openstack.org/#/c/82488/
It validates a template before and raises an error, if some attributes are incorrect, and doesn't create a stack

Angus Salkeld (asalkeld)
Changed in heat:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Song Li (lisong-cruise) wrote :

What's the status of the issue? @sab Does the patch works for the issue?

Angus Salkeld (asalkeld)
Changed in heat:
milestone: none → kilo-rc1
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: kilo-rc1 → 2015.1.0
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.