<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Alessandro,</p>
<p><br>
</p>
<p>I did neutron work flow check on controllers 1,2 hosting HA neutron router.<br>
</p>
<p><br>
</p>
<p>FIRST<br>
</p>
<p><br>
</p>
<p>[root@hacontroller1 ~(keystone_admin)]# ovs-ofctl show br-eth0<br>
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000baf0db1a854f<br>
n_tables:254, n_buffers:256<br>
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP<br>
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst<br>
1(eth0): addr:52:54:00:aa:0e:fc<br>
config: 0<br>
state: 0<br>
speed: 0 Mbps now, 0 Mbps max<br>
</p>
<p> 2(phy-br-eth0): addr:46:c0:e0:30:72:92 <======<br>
</p>
config: 0<br>
state: 0<br>
speed: 0 Mbps now, 0 Mbps max<br>
LOCAL(br-eth0): addr:ba:f0:db:1a:85:4f<br>
config: 0<br>
state: 0<br>
speed: 0 Mbps now, 0 Mbps max<br>
<p>OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0</p>
<p><br>
</p>
[root@hacontroller1 ~(keystone_admin)]# ovs-ofctl dump-flows br-eth0<br>
NXST_FLOW reply (xid=0x4):<br>
<p> cookie=0x0, duration=15577.057s, table=0, n_packets=50441, n_bytes=3262529, idle_age=2, priority=4,in_port=2,<span style="color: #b45f06;">dl_vlan=3 actions=strip_vlan,</span>NORMAL <=====<br>
</p>
cookie=0x0, duration=15765.938s, table=0, n_packets=31225, n_bytes=1751795, idle_age=0, priority=2,in_port=2 actions=drop<br>
cookie=0x0, duration=15765.974s, table=0, n_packets=39982, n_bytes=42838752, idle_age=1, priority=0 actions=NORMAL<br>
<br>
Check `ovs-vsctl show`<br>
<br>
Bridge br-int<br>
fail_mode: secure<br>
Port "tapc8488877-45"<br>
tag: 4<br>
Interface "tapc8488877-45"<br>
type: internal<br>
Port br-int<br>
Interface br-int<br>
type: internal<br>
Port patch-tun<br>
Interface patch-tun<br>
type: patch<br>
options: {peer=patch-int}<br>
Port "tap14aa6eeb-70"<br>
tag: 2<br>
Interface "tap14aa6eeb-70"<br>
type: internal<br>
Port "qr-8f5b3f4a-45"<br>
tag: 2<br>
Interface "qr-8f5b3f4a-45"<br>
type: internal<br>
Port "int-br-eth0"<br>
Interface "int-br-eth0"<br>
type: patch<br>
options: {peer="phy-br-eth0"}<br>
<span style="color: #b45f06;">Port "qg-34893aa0-17" <=====<br>
tag: 3</span><br>
<p></p>
<p><br>
</p>
<p>SECOND<br>
<br>
[root@hacontroller2 ~(keystone_demo)]# ovs-ofctl show br-eth0<br>
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000b6bfa2bafd45<br>
n_tables:254, n_buffers:256<br>
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP<br>
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst<br>
1(eth0): addr:52:54:00:73:df:29<br>
config: 0<br>
state: 0<br>
speed: 0 Mbps now, 0 Mbps max<br>
2(phy-br-eth0): addr:be:89:61:87:56:20 <=======<br>
config: 0<br>
state: 0<br>
speed: 0 Mbps now, 0 Mbps max<br>
LOCAL(br-eth0): addr:b6:bf:a2:ba:fd:45<br>
config: 0<br>
state: 0<br>
speed: 0 Mbps now, 0 Mbps max<br>
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0<br>
<br>
[root@hacontroller2 ~(keystone_demo)]# ovs-ofctl dump-flows br-eth0<br>
NXST_FLOW reply (xid=0x4):<br>
cookie=0x0, duration=15810.746s, table=0, n_packets=0, n_bytes=0, idle_age=15810, priority=4,in_port=2,<span style="color: #b45f06;">dl_vlan=2 actions=strip_vlan</span>,NORMAL <========<br>
cookie=0x0, duration=16105.662s, table=0, n_packets=31849, n_bytes=1786827, idle_age=0, priority=2,in_port=2 actions=drop<br>
cookie=0x0, duration=16105.696s, table=0, n_packets=39762, n_bytes=2100763, idle_age=0, priority=0 actions=NORMAL<br>
<br>
Check `ovs-vsctl show`<br>
<br>
Bridge br-int<br>
fail_mode: secure<br>
Port "qg-34893aa0-17"<br>
<span style="color: #b45f06;"> tag: 2 <=====</span><br>
Interface "qg-34893aa0-17"<br>
type: internal<br>
</p>
<div class="post-footer"><br>
<div class="post-footer-line post-footer-line-1"><span class="post-author vcard"><span class="fn" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"><a id="LPlnk620464" data-gapiattached="true" data-onload="true" data-gapiscan="true" class="g-profile" href="https://www.blogger.com/profile/08011293873468656575" rel="author" title="author profile"><span itemprop="name"></span></a></span></span><span class="post-timestamp"></span></div>
</div>
<p></p>
<p>It looks like qrouter's namespace output interface qg-xxxxxx sends vlan tagged packets to eth0 (which has VLAN=yes) ,</p>
<p>but OVS bridge br-eth0 is not aware of vlan tagging (as you wrote) , it strips tags before sending<br>
</p>
<p>packets outside into external flat network. In case of external network provider qg-xxxxxx are on Br-int, that is normal.</p>
<p>That's why your patch works so stable. If my logic is wrong,please, let me know.</p>
<p><br>
</p>
<p>Thank you once again.</p>
<p>Boris.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>