-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
None
-
None
-
False
-
-
False
-
-
rhel-9
-
None
-
rhel-net-ovn
-
-
-
ssg_networking
Problem Description: Clearly explain the issue.
static route is not advertised when there is no ip address on LRP
Impact Assessment: Describe the severity and impact (e.g., network down,availability of a workaround, etc.).
Software Versions: Specify the exact versions in use (e.g.,openvswitch3.1-3.1.0-147.el8fdp).
ovn25.03-25.03.1-60.el10fdp.x86_64
Issue Type: Indicate whether this is a new issue or a regression (if a regression, state the last known working version).
new issue
Reproducibility: Confirm if the issue can be reproduced consistently. If not, describe how often it occurs.
always
Reproduction Steps: Provide detailed steps or scripts to replicate the issue.
vrf=10 ip link add vrf$vrf type vrf table $vrf ip link set vrf$vrf up systemctl start openvswitch systemctl start ovn-northd ovn-nbctl set-connection ptcp:6641 ovn-sbctl set-connection ptcp:6642 ovs-vsctl set open . external_ids:system-id=hv1 external_ids:ovn-remote=tcp:127.0.0.1:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=127.0.0.1 systemctl restart ovn-controller ovs-vsctl add-br br-ex \ -- set open . external-ids:ovn-bridge-mappings=phys:br-ex ovn-nbctl \ -- ls-add public \ -- lsp-add public lsp-localnet-port \ -- lsp-set-type lsp-localnet-port localnet \ -- lsp-set-addresses lsp-localnet-port unknown \ -- lsp-set-options lsp-localnet-port network_name=phys ovs-vsctl add-port br-int local-bgp-port \ -- set interface local-bgp-port type=internal \ -- set interface local-bgp-port external_ids:iface-id=local-bgp-port ip link set local-bgp-port master vrf$vrf ip link set local-bgp-port address 00:00:00:00:00:03 ip addr add dev local-bgp-port 20.0.0.3/8 ip link set local-bgp-port up #-- lrp-add lr-frr lrp-local-bgp-port 00:00:00:00:00:03 20.0.0.2/8 \ ovn-nbctl \ -- lr-add lr-frr \ -- set logical_router lr-frr options:chassis=hv1 \ -- lrp-add lr-frr lrp-local-bgp-port 00:00:00:00:00:03 \ -- lsp-add public public-lr-frr \ -- set logical_switch_port public-lr-frr type=router options:router-port=lrp-local-bgp-port \ -- lsp-set-addresses public-lr-frr router ovn-nbctl \ -- set Logical_Router lr-frr options:dynamic-routing=true \ options:requested-tnl-key=$vrf \ options:dynamic-routing-maintain-vrf=false ovn-nbctl \ -- set logical_router lr-frr \ options:dynamic-routing-redistribute=static ovn-nbctl \ -- lr-add lr-tenant \ -- lrp-add lr-tenant lr-tenant-public 00:00:00:00:00:42 20.0.0.42/8 \ -- lsp-add public public-lr-tenant \ -- set logical_switch_port public-lr-tenant type=router options:router-port=lr-tenant-public \ -- lsp-set-addresses public-lr-tenant router ovn-nbctl \ -- lrp-set-gateway-chassis lr-tenant-public hv1 ovn-nbctl \ -- ls-add ls-tenant \ -- lrp-add lr-tenant lr-tenant-ls 00:00:00:00:01:01 192.168.1.1/24 \ -- lsp-add ls-tenant ls-tenant-lr \ -- set logical_switch_port ls-tenant-lr \ type=router options:router-port=lr-tenant-ls \ -- lsp-set-addresses ls-tenant-lr router ovn-nbctl \ -- lsp-add ls-tenant vm1 \ -- lsp-set-addresses vm1 "00:00:00:00:01:10 192.168.1.10" ovs-vsctl \ -- add-port br-int vm1 -- set interface vm1 type=internal \ -- set interface vm1 external_ids:iface-id=vm1 ip netns add vm1 ip link set vm1 netns vm1 ip netns exec vm1 ip link set vm1 address 00:00:00:00:01:10 ip netns exec vm1 ip addr add dev vm1 192.168.1.10/24 ip netns exec vm1 ip link set vm1 up ip netns exec vm1 ip route add default via 192.168.1.1 ovn-nbctl lr-nat-add lr-tenant dnat_and_snat 20.0.0.88 192.168.1.10 ovn-nbctl lr-route-add lr-tenant 10.10.1.1 20.0.0.2 lr-tenant-public ovn-nbctl lr-route-add lr-frr 10.10.2.1 20.0.0.42 lrp-local-bgp-port ovn-nbctl --wait=hv sync sleep 1 ovn-sbctl list Advertised_Route ip route list vrf vrf10 ip route add 10.10.3.1 via 20.0.0.25 vrf vrf10 sleep 1 ovn-sbctl list Learned_Route ovn-nbctl --wait=sb set Logical_Router lr-frr options:dynamic-routing=true sleep 1 ovn-sbctl list Learned_Route ip route list vrf vrf10
Expected Behavior: Describe what should happen under normal circumstances.
static route is advertised to sb
Observed Behavior: Explain what actually happens.
static route is not advertised to sb
Troubleshooting Actions: Outline the steps taken to diagnose or resolve the issue so far.
Logs: If you collected logs please provide them (e.g. sos report, /var/log/openvswitch/* , testpmd console)
[root@wsfd-advnetlab20 bgp]# rpm -qa | grep -E "openvswitch|ovn"
openvswitch-selinux-extra-policy-1.0-39.el10fdp.noarch
openvswitch3.5-3.5.2-41.el10fdp.x86_64
python3-openvswitch3.5-3.5.2-41.el10fdp.x86_64
openvswitch3.5-ipsec-3.5.2-41.el10fdp.x86_64
ovn25.03-25.03.1-60.el10fdp.x86_64
ovn25.03-central-25.03.1-60.el10fdp.x86_64
ovn25.03-host-25.03.1-60.el10fdp.x86_64
+ ovn-nbctl lr-nat-add lr-tenant dnat_and_snat 20.0.0.88 192.168.1.10 + ovn-nbctl lr-route-add lr-tenant 10.10.1.1 20.0.0.2 lr-tenant-public + ovn-nbctl lr-route-add lr-frr 10.10.2.1 20.0.0.42 lrp-local-bgp-port + ovn-nbctl --wait=hv sync + sleep 1 + ovn-sbctl list Advertised_Route + ip route list vrf vrf10 20.0.0.0/8 dev local-bgp-port proto kernel scope link src 20.0.0.3 + ip route add 10.10.3.1 via 20.0.0.25 vrf vrf10 <== static route is not advertised to sb
if the ip is added for lrp, the route is advertised to sb