ospurge doesn't remove DVR router interfaces

Bug #1552336 reported by Jonas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ospurge
Fix Released
Undecided
Unassigned

Bug Description

When DVR is enabled in Neutron (router_distributed = True), ospurge doesn't remove the router interfaces and as a consequence fails to remove the routers.

The reason as far as I can see is in line 213 in client.py. Rather than:

    if port["device_owner"] == "network:router_interface"

it should look something like

 if port["device_owner"] in ("network:router_interface", "router_interface_distributed")

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

The proposed fix is otherwise ok, but it has a little bug of the second item of dictionary missing "network:" prefix. It should be:

  if port["device_owner"] in ("network:router_interface", "network:router_interface_distributed")

Revision history for this message
Juha Rajamaki (jurajama) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ospurge (master)

Reviewed: https://review.openstack.org/399963
Committed: https://git.openstack.org/cgit/openstack/ospurge/commit/?id=d18f6617b476ca667c468104d76b0c205551d6a1
Submitter: Jenkins
Branch: master

commit d18f6617b476ca667c468104d76b0c205551d6a1
Author: jurajama <email address hidden>
Date: Mon Nov 7 14:47:13 2016 +0200

    Fix to delete router interfaces with DVR enabled

    Now also interfaces with owner "network:router_interface_distributed" are deleted.
    Before this fix, interface and router deletion failed if DVR is enabled.

    Change-Id: I33c5304845d4d7c2eee729aa334ec745dcac970e
    Closes-Bug: #1552336

Changed in ospurge:
status: New → Fix Released
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.