VM flows are not getting completely flushed after VM deletion

Bug #1521938 reported by Aman Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-vsphere
Fix Committed
Undecided
Aman Kumar

Bug Description

VM related flows are not getting flushed completely after the VM deletion.
I have the following VM booted
stack@stack$ nova list
---------------------------------------------------------------------------------+
ID Name Status Task State Power State Networks
---------------------------------------------------------------------------------+
5dd5cdda-0002-49f5-805b-8e4c9d11df3c vm1 ACTIVE
Running net4=4.4.0.8
---------------------------------------------------------------------------------+
stack@stack$ neutron port-list | grep 4.4.0.8
b74f865c-d394-43da-baba-71855c44a1ae fa:16:3e:1b:59:33 {"subnet_id": "49a5af66-697b-446f-8808-f5dd7a6d83de", "ip_address": "4.4.0.8"}
Here are the flows from OVSvAPP for this specific VM.
root@stack:~# ovs-ofctl dump-flows br-eth2 | grep fa:16:3e:1b:59:33
cookie=0xebde604343dc9c7e, duration=1220.397s, table=0, n_packets=2, n_bytes=748, idle_age=1216, priority=20,udp,in_port=2,dl_vlan=20,dl_dst=fa:16:3e:1b:59:33,nw_src=4.4.0.2,tp_src=67,tp_dst=68 actions=resubmit(,2),output:1
cookie=0xebde604343dc9c7e, duration=1220.397s, table=0, n_packets=1, n_bytes=376, idle_age=1216, priority=20,udp,in_port=2,dl_vlan=20,dl_dst=fa:16:3e:1b:59:33,nw_src=4.4.0.3,tp_src=67,tp_dst=68 actions=resubmit(,2),output:1
cookie=0xa37b181603cbb466, duration=360.389s, table=0, n_packets=0, n_bytes=0, idle_age=360, priority=20,icmp,in_port=2,dl_vlan=20,dl_dst=fa:16:3e:1b:59:33 actions=resubmit(,2),output:1
cookie=0xa37b181603cbb466, duration=360.388s, table=1, n_packets=0, n_bytes=0, idle_age=360, priority=10,ipv6,in_port=1,dl_vlan=20,dl_src=fa:16:3e:1b:59:33 actions=resubmit(,2),NORMAL
cookie=0x0, duration=360.388s, table=1, n_packets=0, n_bytes=0, idle_age=1220, priority=1,ipv6,in_port=1,dl_vlan=20,dl_src=fa:16:3e:1b:59:33 actions=resubmit(,5)
cookie=0xa37b181603cbb466, duration=360.389s, table=1, n_packets=0, n_bytes=0, idle_age=360, priority=10,ip,in_port=1,dl_vlan=20,dl_src=fa:16:3e:1b:59:33,nw_src=4.4.0.8 actions=resubmit(,2),NORMAL
cookie=0x0, duration=360.389s, table=1, n_packets=0, n_bytes=0, idle_age=1220, priority=1,ip,in_port=1,dl_vlan=20,dl_src=fa:16:3e:1b:59:33,nw_src=4.4.0.8 actions=resubmit(,5)
root@stack:~#
After VM deletion,
stack@stack$ nova delete vm1
Request to delete server vm1 has been accepted.
stack@stack$ nova list
-------------------------------------------+
ID Name Status Task State Power State Networks
-------------------------------------------+
-------------------------------------------+
stack@stack$
I still see few VM flows in ovsvapp
root@stack:~# ovs-ofctl dump-flows br-eth2 | grep fa:16:3e:1b:59:33
cookie=0x0, duration=945.709s, table=1, n_packets=0, n_bytes=0, idle_age=1805, priority=1,ipv6,in_port=1,dl_vlan=20,dl_src=fa:16:3e:1b:59:33 actions=resubmit(,5)
cookie=0x0, duration=945.710s, table=1, n_packets=0, n_bytes=0, idle_age=1805, priority=1,ip,in_port=1,dl_vlan=20,dl_src=fa:16:3e:1b:59:33,nw_src=4.4.0.8 actions=resubmit(,5)
root@stack:~#

Aman Kumar (amank)
Changed in networking-vsphere:
assignee: nobody → Aman Kumar (amank)
Aman Kumar (amank)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vsphere (master)

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

Changed in networking-vsphere:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (master)

Reviewed: https://review.openstack.org/252322
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=92b3643307ba74b4581acdc55e0a1a5bff02ddb3
Submitter: Jenkins
Branch: master

commit 92b3643307ba74b4581acdc55e0a1a5bff02ddb3
Author: Aman Kumar <email address hidden>
Date: Wed Dec 2 02:22:35 2015 -0800

    Fixed VM flows deletion issue

    This patch set addresses the issue by calling
    the remove_flow method before popping out port_id
    from filtered_ports list.

    Change-Id: I10744f103f75a7aeac932be5344fac3b0626f19a
    Closes-Bug: #1521938

Changed in networking-vsphere:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vsphere (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/254566

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-vsphere (stable/liberty)

Reviewed: https://review.openstack.org/254566
Committed: https://git.openstack.org/cgit/openstack/networking-vsphere/commit/?id=aa58c62f8459afc882ea2fec07790a33c8133f9c
Submitter: Jenkins
Branch: stable/liberty

commit aa58c62f8459afc882ea2fec07790a33c8133f9c
Author: Aman Kumar <email address hidden>
Date: Wed Dec 2 02:22:35 2015 -0800

    Fixed VM flows deletion issue

    This patch set addresses the issue by calling
    the remove_flow method before popping out port_id
    from filtered_ports list.

    (cherry picked from commit 92b3643307ba74b4581acdc55e0a1a5bff02ddb3)

    Closes-Bug: #1521938
    Change-Id: I10744f103f75a7aeac932be5344fac3b0626f19a

tags: added: in-stable-liberty
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.