Bug 1431098

Summary: [Neutron] Resources owned by a project/tenant are not cleaned up after that project is deleted from keystone
Product: Red Hat OpenStack Reporter: Chaitanya Shastri <cshastri>
Component: openstack-neutronAssignee: Assaf Muller <amuller>
Status: CLOSED DUPLICATE QA Contact: Toni Freger <tfreger>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: amuller, chrisw, nyechiel, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-10 12:15:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chaitanya Shastri 2017-03-10 11:52:36 UTC
Description of problem:
I am opening this RFE for Neutron as a part of RFE's for cleanup of resources under a project after the project is deleted. I am opening similar RFEs for Cinder, Glance, Nova.

Currently the resources (nova instances, glance images, tenant networks etc...) that are created under a project / tenant are not cleaned by default when we remove a project. They remain as orphaned resources. The project id is still displayed when we list the resources.


Version-Release number of selected component (if applicable):
All the OpenStack releases. I can reproduce this in RHOS10 as well

How reproducible:
Always

Steps to Reproduce:
1. Create a new project / tenant say A 
2. Create instances, tenant networks, routers, subnets etc..
3. Delete the project
4. All the resources under that project are still available.

Actual results:
The resources under the project are still available after deleting the project.

Expected results:
The resources should be cleaned up after deleting the project.

Additional info:

I found these upstream bugs regarding this issue:

https://bugs.launchpad.net/nova/+bug/967832
https://bugs.launchpad.net/nova/+bug/1288230

I also found the following blueprint and discussion on the upstream regarding this:

https://blueprints.launchpad.net/horizon/+spec/tenant-deletion
http://lists.openstack.org/pipermail/openstack-operators/2015-February/006118.html

Comment 1 Assaf Muller 2017-03-10 12:15:42 UTC

*** This bug has been marked as a duplicate of bug 1325678 ***