[RFE]: neutron purge- shared network without ports in non owner tenant

Bug #1580437 reported by Alex Stafeyev
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ospurge
New
Undecided
Unassigned
python-neutronclient
New
Wishlist
harishchandra
python-openstackclient
New
Undecided
Unassigned

Bug Description

When we execute "neutron purge tenantID" on a tenant who has shared its network, and that network is in use by another tenant, the network will not be deleted.

When we execute "neutron purge tenantID" on a tenant who has shared its network, and that network is NOT in use by another tenant (seen by it but no ports attached to VMs nor routers), the network will be deleted without any warning message to the user.

We believe that there should be a message verifying the action:

Something like: "This network <ID> may be used by tenants <tenants ID>, are you sure you want to delete this network?

BR
Alex

Changed in neutron:
importance: Undecided → Wishlist
Changed in neutron:
assignee: nobody → Reedip (reedip-banerjee)
assignee: Reedip (reedip-banerjee) → nobody
affects: neutron → python-neutronclient
Revision history for this message
John Davidge (john-davidge) wrote :

The list of tenants who MIGHT be using the network would likely just be every other tenant that exists. Would a message simply saying "Network <ID> is shared. Are you sure you wish to delete it?" be acceptable to you?

Revision history for this message
Alex Stafeyev (astafeye) wrote :

Yes, seems fine by me.

BR

Changed in python-neutronclient:
assignee: nobody → harishchandra (cogniharish)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

"ospurge" project provides a tool to purge a project for various services. It looks better to improve it based on the bug reported here.

OpenStack client (OSC) is also implementing 'purge' command in https://review.openstack.org/#/c/367673/ .

Revision history for this message
Akihiro Motoki (amotoki) wrote :

I added OSC and ospurge to the affected projects. This bug report was filed against 'neutron purge' command, but OSC and ospurge has / will have similar feature and it is worth considered.

Regarding neutron purge command, neutron CLI is deprecated and the neutron team has no clear plan on fixing this bug. If a nice approach is proposed, we can accept it.

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.