-
Task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
False
-
False
-
-
rhel-9
-
None
-
-
-
3
-
OVN FDP Sprint 12
-
1
This task is tracking the test case writing activities to cover the bug described below.
Problem Description: Clearly explain the issue.
This was originally reported upstream at:
https://bugs.launchpad.net/ubuntu/+source/ovn/+bug/2127934
Impact Assessment: Describe the severity and impact (e.g., network down,availability of a workaround, etc.).
Network down in the scenario described above.
Software Versions: Specify the exact versions in use (e.g.,openvswitch3.1-3.1.0-147.el8fdp).
OVN 25.03, including ovn25.03-25.03.1-86.el9fdp
Issue Type: Indicate whether this is a new issue or a regression (if a regression, state the last known working version).
Day one issue.
Reproducibility: Confirm if the issue can be reproduced consistently. If not, describe how often it occurs.
Yes.
Reproduction Steps: Provide detailed steps or scripts to replicate the issue.
Simplified reproducer:
ovn-nbctl lr-add lr1 \ -- set logical_router lr1 options:dynamic-routing=true \ options:chassis=chassis-1 \ options:requested-tnl-key=42 \ -- lrp-add lr1 lrp1 00:00:00:00:00:01 1.1.1.1/24 \ -- lrp-set-options lrp1 dynamic-routing-maintain-vrf=true \ -- ls-add ls1 \ -- lsp-add ls1 lsp1 \ -- lsp-set-type lsp1 router \ -- lsp-set-addresses lsp1 router \ -- lsp-set-options lsp1 router-port=lrp1 ip link add name lo-test type dummy ip link set dev lo-test master ovnvrf42 ip a a dev lo-test 1.1.1.2/24 ip link set dev lo-test up ip r a table 42 default via 1.1.1.2 metric 32 ip r a table 42 default via 1.1.1.2 metric 33
Expected Behavior: Describe what should happen under normal circumstances.
ovn-controller should not try to insert duplicate Learned_Route entries, it should only try to learn the one with the best metric.
Observed Behavior: Explain what actually happens.
This last route, metric 33, causes ovn-controller to try to insert duplicate SB.Learned_Route entries, e.g., from the ovn-controller logs:
2025-10-22T09:46:40.022Z|00057|ovsdb_idl|WARN|transaction error: {"details":"Transaction causes multiple rows in \"Learned_Route\" table to have identical values (b5972a38-818d-447f-b149-f73ad3e23449, 6ff3a131-fc2a-4b27-86a7-7203cd3700fb,
\"0.0.0.0/0\", and \"1.1.1.2\") for index on columns \"datapath\", \"logical_port\", \"ip_prefix\", and \"nexthop\". First row, with UUID e9558e35-016f-4bd5-886e-de3a35c14aa1, existed in the database before this transaction and was not
modified by the transaction. Second row, with UUID c23523e9-3a56-41de-9490-bb53ce4486f4, was inserted by this transaction.","error":"constraint violation"}
2025-10-22T09:46:40.023Z|00058|main|INFO|OVNSB commit failed, force recompute next time.
Troubleshooting Actions: Outline the steps taken to diagnose or resolve the issue so far.