Comment 8 for bug 1697243

Revision history for this message
MarginHu (margin2017) wrote :

I found the flow rules ware dropped from the log, but I don't know why.

Fri Jun 23 06:20:56 CST 2017

ovs-ofctl show provision
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000248a07554190
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
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
 1(bond0): addr:24:8a:07:55:41:90
     config: 0
     state: 0
     speed: 0 Mbps now, 0 Mbps max
 2(phy-provision): addr:02:66:68:17:37:71
     config: 0
     state: 0
     speed: 0 Mbps now, 0 Mbps max
 LOCAL(provision): addr:24:8a:07:55:41:90
     config: 0
     state: 0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
ovs-ofctl dump-flows provision
NXST_FLOW reply (xid=0x4):
 cookie=0x838540493f7eb89d, duration=116.540s, table=0, n_packets=1846, n_bytes=171564, idle_age=0, priority=0 actions=NORMAL

Fri Jun 23 06:21:57 CST 2017

ovs-ofctl show provision
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000248a07554190
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
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
 1(bond0): addr:24:8a:07:55:41:90
     config: 0
     state: 0
     speed: 0 Mbps now, 0 Mbps max
 2(phy-provision): addr:02:66:68:17:37:71
     config: 0
     state: 0
     speed: 0 Mbps now, 0 Mbps max
 LOCAL(provision): addr:24:8a:07:55:41:90
     config: 0
     state: 0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
ovs-ofctl dump-flows provision
NXST_FLOW reply (xid=0x4):

Please notice the following log:

18905:2017-06-23 06:21:07.514 7 DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-381c7dde-6c3d-4e3b-af32-ae20c75f59d9 - - - - -] Starting to process devices in:{'current': set([u'9d3250d4-c789-4bdd-b325-31145863050e', u'0d474f55-dfa7-4cbf-91e6-123b2757b2f9']), 'removed': set([]), 'added': set([u'9d3250d4-c789-4bdd-b325-31145863050e', u'0d474f55-dfa7-4cbf-91e6-123b2757b2f9'])} rpc_loop /usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py:2036

19066 2017-06-23 06:21:10.491 7 DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ofswitch [r eq-381c7dde-6c3d-4e3b-af32-ae20c75f59d9 - - - - -] ofctl request version=0x4,msg_type=0x12,msg_len=0x38,x id=0xc25b34bf,OFPFlowStatsRequest(cookie=0,cookie_mask=0,flags=0,match=OFPMatch(oxm_fields={}),out_group= 4294967295,out_port=4294967295,table_id=255,type=1) result [OFPFlowStatsReply(body=[OFPFlowStats(byte_cou nt=218570,cookie=9477051674213136541L,duration_nsec=874000000,duration_sec=129,flags=0,hard_timeout=0,idl e_timeout=0,instructions=[OFPInstructionActions(actions=[OFPActionOutput(len=16,max_len=0,port=4294967290 ,type=0)],len=24,type=4)],length=80,match=OFPMatch(oxm_fields={}),packet_count=2215,priority=0,table_id=0 )],flags=0,type=1)] _send_msg /usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/ag ent/openflow/native/ofswitch.py:93
19067 2017-06-23 06:21:10.492 7 WARNING neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ofswitch [req-381c7dde-6c3d-4e3b-af32-ae20c75f59d9 - - - - -] Deleting flow with cookie 0x838540493f7eb89d
19068 2017-06-23 06:21:10.493 7 DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ofswitch [r eq-381c7dde-6c3d-4e3b-af32-ae20c75f59d9 - - - - -] ofctl request version=0x4,msg_type=0xe,msg_len=0x38,xi d=0xc25b34c1,OFPFlowMod(buffer_id=4294967295,command=3,cookie=9477051674213136541L,cookie_mask=1844674407 3709551615L,flags=0,hard_timeout=0,idle_timeout=0,instructions=[],match=OFPMatch(oxm_fields={}),out_group =4294967295,out_port=4294967295,priority=0,table_id=255) result None _send_msg /usr/lib/python2.7/site-pa ckages/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py:93
19069 2017-06-23 06:21:10.493 7 INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-381c7 dde-6c3d-4e3b-af32-ae20c75f59d9 - - - - -] Cleaning stale provision flows

"Deleting flow with cookie 0x838540493f7eb89d" said that flow table was removed.