Deletion of VNF is allowed while stack creation is still in CREATE_IN_PROGRESS status

Bug #1798726 reported by Tushar Patil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Undecided
Shubham Potale

Bug Description

VNF can be deleted while stack creation is still in progress which leads to orphan resources in heat. There is no way to delete such stacks from tacker anymore.

Steps to reproduce:

1. Create a VNF
2. Check the status of stack in heat, it should be in "CREATE_IN_PROGRESS".
3. Delete the VNF

The VNF is deleted and it's not listed anymore in the vnf-list command but the stack is not deleted. After some time, when the stack is created successfully, it remains there for ever. There is no way operator can delete the stack from tacker.

Expected result: If tacker couldn't delete the stack, it should set the status of VNF to "error" or it should give an 400 error if the VNF status is in "PENDING_CREATE" status.

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/618086

Changed in tacker:
assignee: nobody → Shubham Potale (shubhamp)
status: New → In Progress
Changed in tacker:
assignee: Shubham Potale (shubhamp) → Cong Phuoc Hoang (hoangphuoc)
Changed in tacker:
assignee: Cong Phuoc Hoang (hoangphuoc) → Shubham Potale (shubhamp)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.opendev.org/618086
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=938262073f11913169c79299941d9c5c4d4b0645
Submitter: Zuul
Branch: master

commit 938262073f11913169c79299941d9c5c4d4b0645
Author: Shubham Potale <email address hidden>
Date: Thu Nov 21 20:40:56 2019 +0530

    Delete VNF should fail with 409 error

    If user deletes VNF in "PENDING_CREATE" status, VNF is deleted from
    tacker but the resources created by VIM driver are not cleaned up
    properly. This patch doesn't allow VNF to be deleted if the status is
    in "PENDING_CREATE" status. It will raise 409 error.

    APIImpact
    Return 409 error instead of 200 when VNF is deleted in
    "PENDING_CREATE" status.

    Change-Id: I2de9c3dce5a4b3795119e2550aa8acea68940c45
    Closes-Bug: #1798726

Changed in tacker:
status: In Progress → Fix Released
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.