Bug 1956748 - [ovn] Missing/wrong openflow rules after ofport change [NEEDINFO]
Summary: [ovn] Missing/wrong openflow rules after ofport change
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.13
Version: FDP 21.I
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: lorenzo bianconi
QA Contact: Fei Liu
URL:
Whiteboard:
Depends On: 1908391
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 10:59 UTC by Jakub Libosvar
Modified: 2021-05-13 22:11 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1908391
Environment:
Last Closed:
Target Upstream Version:
feliu: needinfo? (dceara)


Attachments (Terms of Use)

Comment 1 Dumitru Ceara 2021-05-04 12:15:55 UTC
This is related to localport incremental processing; OVN-only reproducer, in a sandbox:

$ ovn-nbctl ls-add ls
$ ovn-nbctl lsp-add ls lp1 -- lsp-set-type lp1 localport
$ ovn-nbctl lsp-add ls vm1
$ ovs-vsctl add-port br-int lp1 -- set interface lp1 external_ids:iface-id=lp1
$ ovs-vsctl add-port br-int vm1 -- set interface vm1 external_ids:iface-id=vm1
$ sleep 1

$ ovs-ofctl dump-flows br-int | grep output                                      
 cookie=0xf8c0fc0d, duration=40.301s, table=65, n_packets=0, n_bytes=0, idle_age=40, priority=100,reg15=0x1,metadata=0x1 actions=output:1
 cookie=0xb6c1703b, duration=40.301s, table=65, n_packets=0, n_bytes=0, idle_age=40, priority=100,reg15=0x2,metadata=0x1 actions=output:2

$ ovs-vsctl del-port lp1
$ ovs-vsctl add-port br-int lp1 -- set interface lp1 external_ids:iface-id=lp1
$ sleep 1
$ ovs-ofctl dump-flows br-int | grep output
 cookie=0xf8c0fc0d, duration=21.288s, table=65, n_packets=0, n_bytes=0, idle_age=21, priority=100,reg15=0x1,metadata=0x1 actions=output:1   <<< This is STALE.
 cookie=0xb6c1703b, duration=21.288s, table=65, n_packets=0, n_bytes=0, idle_age=21, priority=100,reg15=0x2,metadata=0x1 actions=output:2

$ ovn-appctl -t ovn-controller recompute
$ ovs-ofctl dump-flows br-int | grep output
 cookie=0xb6c1703b, duration=44.114s, table=65, n_packets=0, n_bytes=0, idle_age=44, priority=100,reg15=0x2,metadata=0x1 actions=output:2
 cookie=0xf8c0fc0d, duration=44.114s, table=65, n_packets=0, n_bytes=0, idle_age=44, hard_age=0, priority=100,reg15=0x1,metadata=0x1 actions=output:3

$ ovs-ofctl show br-int
OFPT_FEATURES_REPLY (xid=0x2): dpid:00002a0e5212c19b
n_tables:254, n_buffers:0
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
 2(vm1): addr:aa:55:aa:55:00:19
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 3(lp1): addr:aa:55:aa:55:00:1a
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max


Note You need to log in before you can comment on or make changes to this bug.