Bug 1973041 - [ovn] Missing/wrong openflow rules after ofport change (localnet,l2gateway,vtep)
Summary: [ovn] Missing/wrong openflow rules after ofport change (localnet,l2gateway,vtep)
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn2.13
Version: FDP 21.E
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
: ---
Assignee: OVN Team
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 07:44 UTC by Fei Liu
Modified: 2023-07-13 07:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Fei Liu 2021-06-17 07:44:35 UTC
Description of problem:
 [ovn] Missing/wrong openflow rules after ofport change (localnet,l2gateway,vtep) 

Version-Release number of selected component (if applicable):
ovn2.13-20.12.0-135

How reproducible:
always

Steps to Reproduce:
When the tyep are localnet,l2gateway,vtep, the issue exist

#ovn-nbctl ls-add sw
#ovn-nbctl lsp-add sw lsp1 -- lsp-set-type lsp1 l2gateway
#ovn-nbctl lsp-add sw lsp2
#ovs-vsctl add-port br-int vm1 -- set Interface vm1 type=internal  external_ids:iface-id=lsp1 ofport-request=1
#ovs-vsctl add-port br-int vm2 -- set Interface vm2 type=internal  external_ids:iface-id=lsp2 ofport-request=2
#sleep 5
#ovs-ofctl dump-flows br-int | grep output
 cookie=0xb9768735, duration=4.140s, table=65, n_packets=0, n_bytes=0, idle_age=4, priority=100,reg15=0x2,metadata=0x1 actions=output:2
 cookie=0xb2ca0323, duration=4.140s, table=65, n_packets=0, n_bytes=0, idle_age=4, priority=100,reg15=0x1,metadata=0x1 actions=output:1
# 
#ovs-vsctl del-port vm1
#ovs-vsctl add-port br-int vm1 -- set Interface vm1 type=internal external_ids:iface-id=lsp1 ofport-request=5
#sleep 5
#ovs-ofctl dump-flows br-int | grep output
 cookie=0xb9768735, duration=9.180s, table=65, n_packets=0, n_bytes=0, idle_age=9, priority=100,reg15=0x2,metadata=0x1 actions=output:2
 cookie=0xb2ca0323, duration=9.180s, table=65, n_packets=0, n_bytes=0, idle_age=9, priority=100,reg15=0x1,metadata=0x1 actions=output:1      <<< This is STALE.
# 
# ovn-appctl -t ovn-controller recompute
#ovs-ofctl dump-flows br-int | grep output
 cookie=0xb9768735, duration=11.136s, table=65, n_packets=0, n_bytes=0, idle_age=11, priority=100,reg15=0x2,metadata=0x1 actions=output:2
 cookie=0xb2ca0323, duration=11.136s, table=65, n_packets=0, n_bytes=0, idle_age=11, hard_age=1, priority=100,reg15=0x1,metadata=0x1 actions=output:5


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