Failure to delete port when using DVR

Bug #1659910 reported by sean redmond
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ospurge
New
Undecided
Unassigned

Bug Description

Replicate:

-) Setup neutron to use DRV
-) connect a tenant network to a DRV router
-) Call ospurge to purge the project

You will notice it fails when trying to delete the port connected to the DVR router, if you delete the port manually the rest of the ospurge operation including clearing the gateway and deleting the router work as expected.

I will try and trace this back in the code when time permits to help further.

Revision history for this message
sean redmond (sean-redmond1) wrote :

Just to quickly add to the above, It seem to have an issue with the device_owner being detected as 'network:router_interface_distributed'

INFO:root:2017-01-27 17:57:11,843:Going to delete Port (id='4eedd709-5f89-4284-83c7-02a423f2c68f', network_id='8e209f39-12c8-4d87-95aa-8bca74c4a207, device_owner='network:router_interface_distributed')'

ERROR:root:2017-01-27 17:57:49,012:Can't deal with Ports: OpenStackCloudException("Error deleting port 4eedd709-5f89-4284-83c7-02a423f2c68f: Port 4eedd709-5f89-4284-83c7-02a423f2c68f cannot be deleted directly via the port API: has device owner network:router_interface_distributed.\nNeutron server returns request_ids: ['req-79cbfb93-1db4-46a7-b95c-975bacd79fb7']",)

ERROR:root:2017-01-27 17:57:47,006:Can't deal with Routers: OpenStackCloudException("Error deleting router a29af1f7-944c-4308-b4a5-b64cd1948f5c: Router a29af1f7-944c-4308-b4a5-b64cd1948f5c still has ports\nNeutron server returns request_ids: ['req-b678979b-5f68-4804-8eeb-994f5df1ee44']",)

Revision history for this message
Juha Rajamaki (jurajama) wrote :

You are probably using such old version that does not have fix https://github.com/openstack/ospurge/commit/d18f6617b476ca667c468104d76b0c205551d6a1

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.