The router interface cannot be deleted by using Quantum Metaplugin

Bug #1085276 reported by Jason
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Jason

Bug Description

The router interface cannot be deleted when testing the Metaplugin against Quantum stable/folsom with l3 agent configured using OVSInterfaceDriver or MetaInterfaceDriver.

1) Configured the l3_agent.ini as following,
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver

Run
$quantum net-create netA

$quantum subnet-create --name subnetA netA 10.0.1.0/24

$quantum router-create routerA

$quantum router-interface-add routeA subnetA

$quantum router-interface-delete routerA subnetA
L3PortInUse: Port bd7d261a-6a73-43ce-8cff-f531f7d8553b has owner network:router_interface and therefore cannot be deleted directly via the port API.

2) Configured the l3_agent.ini as following,
interface_driver = quantum.agent.linux.interface.MetaInterfaceDriver

Run
$quantum net-create netB

$quantum subnet-create --name subnetB netB 10.0.2.0/24

$quantum router-create routerB

$quantum router-list
+--------------------------------------+---------+-----------------------+
| id | name | external_gateway_info |
+--------------------------------------+---------+-----------------------+
| 8cf61fa5-b716-4df2-a02e-8f1fea0d0ae0 | routerB | null |
+--------------------------------------+---------+-----------------------+

$quantum router-interface-add routeB subnetB

$quantum router-interface-delete routerB subnetB

$ip netns list
qrouter-8cf61fa5-b716-4df2-a02e-8f1fea0d0ae0

$sudo ip netns exec qrouter-8cf61fa5-b716-4df2-a02e-8f1fea0d0ae0 ip link show
45: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
46: qr-b66a8aad-69: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:ed:49:85 brd ff:ff:ff:ff:ff:ff

The port:qr-b66a8aad-69 cannot be deleted

Tags: meta
Jason (zzs)
description: updated
Jason (zzs)
Changed in quantum:
assignee: nobody → Jason Zhang (bearovercloud)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/17571

Changed in quantum:
status: New → In Progress
tags: added: meta
Akihiro Motoki (amotoki)
tags: added: metaplugin
removed: meta
Akihiro Motoki (amotoki)
tags: added: meta
removed: metaplugin
Nachi Ueno (nati-ueno)
summary: - The router interface cannot be deleted by using Quantum Folsom
- Metaplugin
+ The router interface cannot be deleted by using Quantum Metaplugin
Nachi Ueno (nati-ueno)
Changed in quantum:
importance: Undecided → Critical
importance: Critical → Medium
importance: Medium → High
milestone: none → grizzly-rc1
dan wendlandt (danwent)
Changed in quantum:
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/17571
Committed: http://github.com/openstack/quantum/commit/c3d789d659840a3e0ddf78a5523d535866a98657
Submitter: Jenkins
Branch: master

commit c3d789d659840a3e0ddf78a5523d535866a98657
Author: Jason Zhang <email address hidden>
Date: Thu Dec 6 11:39:34 2012 -0800

    Setup device alias by device flavor information.

    The router interface cannot be deleted since the MetaPlugin
    cannot get the flavor information from the port which has
    been deleted.
    The solution is setting up the alias for each device based
    on the flavor information, so the MetaPlugin still can get
    the flavor information from the device itself even the
    port has been deleted.

    Also the router interface cannot be deleted since the
    l3_port_check flag is not passed by MetaPlugin.

    Fixes: bug #1085276

    Change-Id: I670aa45c804e660ee4afb5359e0ab1347f369986

Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-rc1 → 2013.1
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.