Executing 'neutron purge tenantid' command returns a list in what delete ports doesn't calculate the port that device_owner is 'network: router_gateway'.

Bug #1595801 reported by xiewj
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Expired
Undecided
Unassigned

Bug Description

Executing the neutron purge command to delete all supported resources owned by a tenant returns a list of resources that were deleted, in what port number doesn't contain the port that device_owner is 'network: router_gateway'.

1)Creating a external network with a subnet;
2)Creating a router
3)Using router-gateway-set command sets a external gateway for the router created
4)Using port-list command returns one port whose device_owner is 'network: router_gateway'.
5)Using the neutron purge command to delete all supported resources owned by the tenant owning the network resources,the returned result contains no deleted port info.

The return info of this command is as follows:
Purging resources: 100% complete.
Deleted 1 security_group, 1 router, 1 network.

Detail operation process,please see:http://paste.openstack.org/show/521791/

xiewj (36429515-3)
Changed in neutron:
assignee: nobody → xiewj (36429515-3)
xiewj (36429515-3)
summary: Using the neutron purge command to delete all supported resources owned
- by a tenant,the returned result of deleted port number doesn't contain
- the port that device_owner is 'network: router_gateway'.
+ by a tenant returns a list of resources that were deleted, in what port
+ number doesn't contain the port that device_owner is 'network:
+ router_gateway'.
description: updated
summary: - Using the neutron purge command to delete all supported resources owned
- by a tenant returns a list of resources that were deleted, in what port
- number doesn't contain the port that device_owner is 'network:
+ Executing 'neutron purge tenantid' command returns a list in what delete
+ ports doesn't calculate the port that device_owner is 'network:
router_gateway'.
xiewj (36429515-3)
description: updated
affects: neutron → python-neutronclient
Revision history for this message
John Davidge (john-davidge) wrote :

The purge command only deletes resources with a tenant_id matching the one given by the user. The router gateway port has no tenant_id, so isn't deleted. If you run port-list after running purge does the port still exist? Or is it deleted when deleting the network/router? I believe it should be.

Revision history for this message
xiewj (36429515-3) wrote :

Firstly,I‘m very sorry for this,I‘m not on purpose.

I repeat reported because I can not find the bugs I reported in my bugs web page,I thought that there is something wrong with openstack website.It seems that I need to put the bug url preserved for querying progress

I'm very sorry caused you trouble and wasted your precious time,It won't happen again.

Thank you very much.

Running port-list after running purge,the router gateway port is deleted too.Sounds reasonable 'he purge command only deletes resources with a tenant_id matching the one given by the user. The router gateway port has no tenant_id'

Thank you again.

Changed in python-neutronclient:
assignee: xiewj (36429515-3) → bailin.zhang (bailin-zhang)
Changed in python-neutronclient:
assignee: bailin.zhang (bailin-zhang) → nobody
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is > 180 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

Changed in python-neutronclient:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-neutronclient because there has been no activity for 60 days.]

Changed in python-neutronclient:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.