Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1973041

Summary: [ovn] Missing/wrong openflow rules after ofport change (localnet,l2gateway,vtep)
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Fei Liu <feliu>
Component: ovn2.13Assignee: OVN Team <ovnteam>
Status: CLOSED WONTFIX QA Contact: Jianlin Shi <jishi>
Severity: unspecified Docs Contact:
Priority: low    
Version: FDP 21.ECC: ctrautma, jiji, mmichels, ralongi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-14 21:12:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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

Comment 1 OVN Bot 2024-02-14 21:12:55 UTC
This issue is being closed as an automatic process due to the issue's age. If you wish to re-open this issue, please do so in Jira (https://issues.redhat.com) in the 'FDP' project. Please be sure to set the component to the latest OVN version where this issue is known to occur. If this is a feature request or improvement, please set the component to 'OVN'.