failed to delete the stack due to unable to delete the AWS::EC2::EIP resource

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

Bug Description

failed to delete the stack due to unable to delete the AWS::EC2::EIP resource:

1. Create a stack with the template:
  {
  heat_template_version: 2013-05-23
  resources:
      eip:
          type: AWS::EC2::EIP
          properties:
          InstanceId: {Ref: my_server}
      my_server:
         type: OS::Nova::Server
         properties:
         name: th_test
         image: 2632aa6e-ecf9-4435-aff8-819dbc36a421
         flavor: '1'
}

2. The stack created failed. Because the network is not specified, the server will created at the first public-network, so unable to associated with a floatingip. An error msg: "Unable to associate floating ip"

--------It's ok.

3. Delete the stack failed, error msg is "Floating ip 172.24.4.13 is not associated with instance".

--------It's a bug

4. If not associated why try to disassociate?

Changed in heat:
assignee: nobody → huangtianhua (huangtianhua)
description: updated
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/102758

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

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

commit 05ae413e4009d6569370ed95717ce16b5e40c2e3
Author: huangtianhua <email address hidden>
Date: Thu Jun 26 16:12:03 2014 +0800

    Fix failed to delete the EIP resource

    When AWS::EC2::EIP is failed to associate with
    the server, it can't be delete. So we attempt
    to disassociate and to catch the exception, and to
    check if not associate we just ignore it while deletion.

    Change-Id: I6a34398f27d6b21de9209de70bf8cc3c77d27149
    Closes-Bug: #1334497

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: juno-3 → 2014.2
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.