stack delete cancelled on a volume resource

Bug #1638485 reported by Removed by request
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
New
Undecided
Unassigned

Bug Description

After I hit https://bugs.launchpad.net/heat/+bug/1638476 I wanted to delete the stack (some more info on that bug).
The nova server has a volume resource attached to it

nested_server.yaml:

heat_template_version: 2016-04-08
description: Nova Server

parameters:
  image:
    type: string
  key_name:
    type: string
  flavor:
    type: string
  private_network:
    type: string
  private_subnet:
    type: string
  availability_zone:
    type: string
    default: nova
  flavor:
    type: string
    default: heat.tiny

resources:
  server:
    type: OS::Nova::Server
    properties:
      availability_zone: { get_param: availability_zone }
      flavor: { get_param: flavor }
      image: { get_param: image }
      key_name: { get_param: key_name }
      networks:
        - port: { get_resource: server_port }
    depends_on: server_port

  server_port:
    type: OS::Neutron::Port
    properties:
      network: { get_param: private_network }
      fixed_ips:
        - subnet_id: { get_param: private_subnet }

  volume:
    type: Test::Volume
    properties:
      nova_instance: {get_resource: server}
      availability_zone: { get_param: availability_zone }

outputs:
  instance_ip:
    value: { get_attr: [server, first_address] }

LOG:

2016-11-02 07:26:52.633 3164 DEBUG heat.engine.scheduler [req-0c463d72-3099-4094-8a9c-4ad7fb52a0af 2e44c8e9d6c3418db3f78655bba7bb80 9e4cdbb57f2b41f2ae30a3b154843bab - - -] Task delete from TemplateResource "volume" [76de4720-e0c3-4f5d-9c7e-9bb0f7d261e1] Stack "test007-server-f5cpup3tsphx" [1ec273e5-ac6d-4e00-a911-b0d4d96fe15b] running step /usr/lib/python2.7/site-packages/heat/engine/scheduler.py:216
2016-11-02 07:26:52.638 3164 INFO heat.engine.resource [req-0c463d72-3099-4094-8a9c-4ad7fb52a0af 2e44c8e9d6c3418db3f78655bba7bb80 9e4cdbb57f2b41f2ae30a3b154843bab - - -] DELETE: TemplateResource "volume" [76de4720-e0c3-4f5d-9c7e-9bb0f7d261e1] Stack "test007-server-f5cpup3tsphx" [1ec273e5-ac6d-4e00-a911-b0d4d96fe15b]
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource Traceback (most recent call last):
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 753, in _action_recorder
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource yield
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 1669, in delete
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource *action_args)
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 353, in wrapper
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource step = next(subtask)
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 806, in action_handler_task
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource done = check(handler_data)
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/stack_resource.py", line 540, in check_delete_complete
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource return self._check_status_complete(self.DELETE)
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/stack_resource.py", line 404, in _check_status_complete
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource action=action)
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource ResourceFailure: resources.volume: Stack DELETE cancelled
2016-11-02 07:26:52.638 3164 ERROR heat.engine.resource
2016-11-02 07:26:52.708 3164 DEBUG oslo_messaging._drivers.amqpdriver [req-0c463d72-3099-4094-8a9c-4ad7fb52a0af 2e44c8e9d6c3418db3f78655bba7bb80 9e4cdbb57f2b41f2ae30a3b154843bab - - -] CAST unique_id: 40b896827ed947feafa6887bee367546 NOTIFY exchange 'heat' topic 'notifications.error' _send /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:432
2016-11-02 07:26:52.740 3164 INFO heat.engine.stack [req-0c463d72-3099-4094-8a9c-4ad7fb52a0af 2e44c8e9d6c3418db3f78655bba7bb80 9e4cdbb57f2b41f2ae30a3b154843bab - - -] Stack DELETE FAILED (test007-server-f5cpup3tsphx): Resource DELETE failed: resources.volume: Stack DELETE cancelled

Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.