Clean up resources when a tenant is deleted

Registered by Assaf Muller

It was suggested that a simple 'neutron purge <tenant_id>' command or similar would simplify the process of cleaning up these stray resources by removing everything associated with the given tenant.

The expectation is that this command would be admin-only, and neutron should not be responsible for deciding whether the action is 'safe'. It should work regardless of whether the given tenant is active or not.

Blueprint information

Status:
Complete
Approver:
Assaf Muller
Priority:
High
Drafter:
Assaf Muller
Direction:
Approved
Assignee:
John Davidge
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-3
Started by
Henry Gessau
Completed by
Armando Migliaccio

Whiteboard

Feb-01-2016(armax): no code posted by owner:

https://review.openstack.org/#/q/owner:jodavidg%2540cisco.com+status:open

Jan-18-2016(armax): no major code nor documentation as of today. Changes of getting in Mitaka are getting slim.

September-3 (mestery): Moving out of Juno, the last patch in this series will need to be proposed again for Kilo.

20-July (mestery): Juno-2 as medium.

Gerrit topic: https://review.openstack.org/#q,topic:bp/tenant-delete,n,z

Addressed by: https://review.openstack.org/98097
    Clean up tenant resources when one is deleted

You should not set a milestone target unless the blueprint has been properly prioritized by the project drivers.

Addressed by: https://review.openstack.org/115966
    [5/5] Clean up Neutron resources upon tenant deletion

Addressed by: https://review.openstack.org/115965
    [4/5] Clean up Neutron resources upon tenant deletion

Addressed by: https://review.openstack.org/115964
    [3/5] Clean up Neutron resources upon tenant deletion

Addressed by: https://review.openstack.org/92600
    [2/5] Clean up Neutron resources upon tenant deletion

Addressed by: https://review.openstack.org/92599
    [1/5] Clean up Neutron resources upon tenant deletion

Addressed by: https://review.openstack.org/#/c/276541
    Support cleanup of tenant resources with a single API call

(?)

Work Items