Neutron floatingip delete does not delete the fip_agent_gw_port for DVR

Bug #1351066 reported by Swaminathan Vasudevan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Swaminathan Vasudevan

Bug Description

Neutron floatingip-delete "id" does not delete the associated "fip_agent_gw_port".

tags: added: l3-dvr-backlog
Revision history for this message
Swaminathan Vasudevan (swaminathan-vasudevan) wrote :
Download full text (6.6 KiB)

stack@ubuntu:~/devstack$ source openrc demo demo

stack@ubuntu:~/devstack$ neutron floatingip-create public
Created a new floatingip:
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| fixed_ip_address | |
| floating_ip_address | 192.168.3.15 |
| floating_network_id | f50a960a-89e8-4df8-ad75-5f47326ae7a9 |
| id | 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1 |
| port_id | |
| router_id | |
| status | DOWN |
| tenant_id | 2371a34769f145f4bfbdd636c155ddf7 |
+---------------------+--------------------------------------+
stack@ubuntu:~/devstack$ nova list
+--------------------------------------+----------+--------+------------+-------------+------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------+--------+------------+-------------+------------------+
| 127d8f40-5da0-4b56-bde6-622205de9e6c | mycirros | ACTIVE | - | Running | private=10.0.0.3 |
+--------------------------------------+----------+--------+------------+-------------+------------------+
stack@ubuntu:~/devstack$ neutron floatingip-associate 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1 b41d2008-49c2-4b74-948e-d2577c0c757f
Associated floating IP 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1

stack@ubuntu:~/devstack$ neutron floatingip-disassociate 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1
Disassociated floating IP 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1
stack@ubuntu:~/devstack$ neutron floatingip-associate 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1 b41d2008-49c2-4b74-948e-d2577c0c757f
Associated floating IP 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1
stack@ubuntu:~/devstack$
stack@ubuntu:~/devstack$ neutron floatingip-delete 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1
Deleted floatingip: 09ce6dcb-bdbf-40e9-946c-b883b5a1dab1
stack@ubuntu:~/devstack$ source openrc admin adminstack@ubuntu:~/devstack$ neutron port-list
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| 5b187c3e-e780-4271-a20e-87b1b3e8fbc4 | | fa:16:3e:3b:28:6d | {"subnet_id": "3a5783b1-7736-416e-a5c8-26cb8f503e05", "ip_address": "192.168.3.11"} |
| 5bc0abe5-ffe2-48fd-a808-19ae106af9cb | | fa:16:3e:a5:8c:eb | {"subnet_id": "3dcede44-226b-4aa1-91ff-8ce479d55448", "ip_address": "10.0.0.2"} |
| a6e7dda1-e879-43f8-934c-645bc741f254 | | fa:16:3e:93:fc:ab | {"subnet_id": "3dcede44-226b-4aa1-91ff-8ce479d55448", "ip_address": "10.0.0.1"} |
| b41d2008-49c2-...

Read more...

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

I also noticed that the status of the floating ip does not change. But I am not sure this is related.

Changed in neutron:
status: New → Confirmed
Stephen Ma (stephen-ma)
Changed in neutron:
assignee: nobody → Stephen Ma (stephen-ma)
Revision history for this message
Swaminathan Vasudevan (swaminathan-vasudevan) wrote :

Hi stephen, I have a fix for it.

Stephen Ma (stephen-ma)
Changed in neutron:
assignee: Stephen Ma (stephen-ma) → nobody
Changed in neutron:
assignee: nobody → Swaminathan Vasudevan (swaminathan-vasudevan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: Confirmed → In Progress
Changed in neutron:
importance: Undecided → Medium
Changed in neutron:
milestone: none → juno-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/111421
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=6994ade726f4a33753a11b2b2c24454160c96d31
Submitter: Jenkins
Branch: master

commit 6994ade726f4a33753a11b2b2c24454160c96d31
Author: Swaminathan Vasudevan <email address hidden>
Date: Thu Jul 31 14:57:08 2014 -0700

    Fix for floatingip-delete not removing fip_gw port

    fip_agent_gateway_port is created dynamically on a
    compute node where FIP namespace is created. When
    floatingip-disassociate is called this 'port' is
    deleted.

    But when we call floatingip-delete this port is
    not deleted.

    This patch fixes the issue mentioned above.

    Closes-Bug: #1351066

    Change-Id: I1aa51680394547390546fe362abfae7a5d25425b

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-3 → 2014.2
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.