yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73170
[Bug 1773286] Re: In some specific case with dvr mode I found the l2pop flows is incomplete.
Reviewed: https://review.openstack.org/571920
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d0fa2c9ac50a783c410fab2df938974c4e829ffa
Submitter: Zuul
Branch: master
commit d0fa2c9ac50a783c410fab2df938974c4e829ffa
Author: Yang JianFeng <yjf1970231893@xxxxxxxxx>
Date: Sat Jun 2 05:10:59 2018 +0000
Don't skip DVR port while neutron-openvswitch-agent is restared.
neutron-openvswitch-agent will refresh flows when it's restarted.
But the port's binding status is not changed, update_port_postcommit
will be skipped at function '_update_individual_port_db_status' in
'neutron/plugins/ml2/plugin.py', l2pop don't handle DVR ports, the
fdb entries about DVR port will not be added.
So, we can't skip DVR port at notify_l2pop_port_wiring when agent
is restared.
Closes-Bug: #1773286
Change-Id: I54e3db4822830a0c83daf7b5150575f8d6e2497b
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1773286
Title:
In some specific case with dvr mode I found the l2pop flows is
incomplete.
Status in neutron:
Fix Released
Bug description:
As shown below,the network that's internal vlan is 4 only has 'qr-'
port in compute2
[root@compute2 ~]# ovs-vsctl show|grep "tag: 4" -C 2
type: internal
Port "qr-1862e19a-91"
tag: 4
Interface "qr-1862e19a-91"
type: internal
[root@compute2 ~]#
I checked the network's flow tables on br-tun,they are right.
[root@compute2 ~]# ovs-ofctl dump-flows br-tun|grep "dl_vlan=4"
cookie=0x56ca5c04010b5cea, duration=65.109s, table=1, n_packets=0, n_bytes=0, idle_age=69, priority=3,arp,dl_vlan=4,arp_tpa=10.10.122.1 actions=drop
cookie=0x56ca5c04010b5cea, duration=65.107s, table=1, n_packets=0, n_bytes=0, idle_age=69, priority=2,dl_vlan=4,dl_dst=fa:16:3e:67:d7:df actions=drop
cookie=0x56ca5c04010b5cea, duration=65.106s, table=1, n_packets=0, n_bytes=0, idle_age=69, priority=1,dl_vlan=4,dl_src=fa:16:3e:67:d7:df actions=mod_dl_src:fa:16:3f:aa:34:f9,resubmit(,2)
cookie=0x56ca5c04010b5cea, duration=65.544s, table=20, n_packets=0, n_bytes=0, idle_age=68, priority=2,dl_vlan=4,dl_dst=fa:16:3e:10:26:dc actions=strip_vlan,load:0x56->NXM_NX_TUN_ID[],output:2
cookie=0x56ca5c04010b5cea, duration=64.158s, table=20, n_packets=0, n_bytes=0, idle_age=67, priority=2,dl_vlan=4,dl_dst=fa:16:3e:f5:91:5e actions=strip_vlan,load:0x56->NXM_NX_TUN_ID[],output:3
cookie=0x56ca5c04010b5cea, duration=65.546s, table=21, n_packets=0, n_bytes=0, idle_age=68, priority=1,arp,dl_vlan=4,arp_tpa=10.10.122.8 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xfa163e1026dc->NXM_NX_ARP_SHA[],load:0xa0a7a08->NXM_OF_ARP_SPA[],move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],mod_dl_src:fa:16:3e:10:26:dc,IN_PORT
cookie=0x56ca5c04010b5cea, duration=64.161s, table=21, n_packets=0, n_bytes=0, idle_age=67, priority=1,arp,dl_vlan=4,arp_tpa=10.10.122.2 actions=load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xfa163ef5915e->NXM_NX_ARP_SHA[],load:0xa0a7a02->NXM_OF_ARP_SPA[],move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],mod_dl_src:fa:16:3e:f5:91:5e,IN_PORT
cookie=0x56ca5c04010b5cea, duration=64.164s, table=22, n_packets=0, n_bytes=0, idle_age=69, priority=1,dl_vlan=4 actions=strip_vlan,load:0x56->NXM_NX_TUN_ID[],output:2,output:3
[root@compute2 ~]#
But,after I restart neutron-openvswitch-agent,I found these flows in table 20,21,22 is lost.
systemctl restart neutron-openvswitch-agent
[root@compute2 ~]# ovs-ofctl dump-flows br-tun|grep "dl_vlan=4"
cookie=0x6c26ffbe1a6134eb, duration=11.442s, table=1, n_packets=0, n_bytes=0, idle_age=13, priority=3,arp,dl_vlan=4,arp_tpa=10.10.122.1 actions=drop
cookie=0x6c26ffbe1a6134eb, duration=11.441s, table=1, n_packets=0, n_bytes=0, idle_age=13, priority=2,dl_vlan=4,dl_dst=fa:16:3e:67:d7:df actions=drop
cookie=0x6c26ffbe1a6134eb, duration=11.440s, table=1, n_packets=0, n_bytes=0, idle_age=13, priority=1,dl_vlan=4,dl_src=fa:16:3e:67:d7:df actions=mod_dl_src:fa:16:3f:aa:34:f9,resubmit(,2)
[root@compute2 ~]#
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1773286/+subscriptions
References