Can not delete the stack: TypeError: 'NoneType' object has no attribute '__getitem__'

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

Bug Description

convergence_engine = false

1. create a stack with the snippet:
******************
resources:
  th_server:
    type: OS::Nova::Server
    properties:
      name: si_ser
      flavor: {get_param: flavor}
      image: {get_param: image}
      networks:
        - port: {get_resource: port}
      tags:
        - t1
  port:
    type: OS::Neutron::Port
    properties:
      network: private
********************
2. snapshot for the stack
3. update the stack to add a external server resource:
**************
resources:
  th_server:
    type: OS::Nova::Server
    properties:
      name: si_ser
      flavor: {get_param: flavor}
      image: {get_param: image}
      networks:
        - port: {get_resource: port}
      tags:
        - t1
  external_ser:
    type: OS::Nova::Server
    external_id: 1c002884-4675-4791-82ec-cd3ee81ff86a
  port:
    type: OS::Neutron::Port
    properties:
      network: private
******************
4. to delete the stack, then an error raised: TypeError: 'NoneType' object has no attribute '__getitem__'

Changed in heat:
assignee: nobody → huangtianhua (huangtianhua)
importance: Undecided → High
milestone: none → queens-1
Revision history for this message
huangtianhua (huangtianhua) wrote :
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/503892

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/503892
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=1861ad88670581e0658c8010950edd54ea4de422
Submitter: Jenkins
Branch: master

commit 1861ad88670581e0658c8010950edd54ea4de422
Author: huangtianhua <email address hidden>
Date: Thu Sep 14 10:16:01 2017 +0800

    Remove the existing snapshots from the backend

    We only have to remove the existing snapshots
    for resources when stack delete.

    Change-Id: Ia195f3c3380fe71e0888c8291209dd4562318951
    Closes-Bug: #1716612

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/507005

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/pike)

Reviewed: https://review.openstack.org/507005
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=0d06c9674a8ce415ee2eb20e6518c06a0668a242
Submitter: Jenkins
Branch: stable/pike

commit 0d06c9674a8ce415ee2eb20e6518c06a0668a242
Author: huangtianhua <email address hidden>
Date: Thu Sep 14 10:16:01 2017 +0800

    Remove the existing snapshots from the backend

    We only have to remove the existing snapshots
    for resources when stack delete.

    Change-Id: Ia195f3c3380fe71e0888c8291209dd4562318951
    Closes-Bug: #1716612
    (cherry picked from commit 1861ad88670581e0658c8010950edd54ea4de422)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/508382

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

This issue was fixed in the openstack/heat 10.0.0.0b1 development milestone.

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

This issue was fixed in the openstack/heat 9.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/ocata)

Reviewed: https://review.openstack.org/508382
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=647c0df185a6bf20f1ddf1e83fb591adb090d200
Submitter: Zuul
Branch: stable/ocata

commit 647c0df185a6bf20f1ddf1e83fb591adb090d200
Author: huangtianhua <email address hidden>
Date: Thu Sep 14 10:16:01 2017 +0800

    Remove the existing snapshots from the backend

    We only have to remove the existing snapshots
    for resources when stack delete.

    Change-Id: Ia195f3c3380fe71e0888c8291209dd4562318951
    Closes-Bug: #1716612
    (cherry picked from commit 1861ad88670581e0658c8010950edd54ea4de422)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 8.0.6

This issue was fixed in the openstack/heat 8.0.6 release.

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.