VNF delete doesn't wait for stack_delete to complete

Bug #1554663 reported by Sridhar Ramaswamy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
dharmendra

Bug Description

VNF delete doesn't wait for stack_delete to complete. Instead it just issues heat stack_delete and if that call is successful tacker proceeds to delete the entry from Tacker VNF db.

However under heavy usage, a following vnf-create might fail - due to resource unavailable - as the previous vnf-delete actually didn't wait for the heat stack to be completely removed.

Expected behavior:

Tacker need to hold the vnf in "PENDING_DELETE" state until the underlying heat stack report deletion complete.

Tags: mitaka-bugs
Changed in tacker:
assignee: nobody → dharmendra (dharmendra-kushwaha)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/291032

Changed in tacker:
status: New → In Progress
tags: added: mitaka-bugs
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tacker-horizon (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/308329

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.openstack.org/291032
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=dbbf891fd2043b5c1ec367b89b2bec13b500ee38
Submitter: Jenkins
Branch: master

commit dbbf891fd2043b5c1ec367b89b2bec13b500ee38
Author: dharmendra <email address hidden>
Date: Wed Mar 30 10:02:08 2016 +0530

    Remove premature vnf delete from db

    Hold the vnf in "PENDING_DELETE" state until underlying heat-stack
    deletion is complete.
    Closes-bug: #1554663

    Change-Id: I5c52a9fc55950355f9122cc907f41cb8b9217a5c

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tacker-horizon (master)

Reviewed: https://review.openstack.org/308329
Committed: https://git.openstack.org/cgit/openstack/tacker-horizon/commit/?id=f51ec2cf363357866563d812c57c3687b4419728
Submitter: Jenkins
Branch: master

commit f51ec2cf363357866563d812c57c3687b4419728
Author: dharmendra <email address hidden>
Date: Mon Apr 25 17:33:03 2016 +0530

    Raise correct error when api.tacker.get_vnf fail

    When api.tacker.get_vnf fail with not found error, raise a correct
    error for handler(i.e. django.http.Http404)

    Change-Id: Ib3b251a59e4306a73f02e56404ee64cea5133471
    Related-Bug: #1554663

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tacker 0.4.0

This issue was fixed in the openstack/tacker 0.4.0 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.