Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inactive route width static if set route source #13585

Closed
2 tasks
ne-vlezay80 opened this issue May 23, 2023 · 4 comments
Closed
2 tasks

Inactive route width static if set route source #13585

ne-vlezay80 opened this issue May 23, 2023 · 4 comments
Labels
triage Needs further investigation

Comments

@ne-vlezay80
Copy link
Contributor

ne-vlezay80 commented May 23, 2023


Describe the bug

  • Did you check if this is a duplicate issue?
  • Did you test it on the latest FRRouting/frr master branch?

To Reproduce

Expected behavior

Install route from src attribute.

Versions

  • OS Version: alpine linux 3.18
  • Kernel:6.1.29-0-virt
  • FRR Version: 8.5.1

Additional context

Building configuration...

Current configuration:
!
frr version 8.5.1
frr defaults traditional
hostname alpine
log file /tmp/frr.log
no ip forwarding
no ipv6 forwarding
!
debug zebra rib
debug static events
debug static route
!
ip route 169.254.0.0/16 blackhole
ip route 192.168.1.4/30 192.168.1.2
!
interface ns-vrouter0
 ip ospf area 1
exit
!
router ospf
exit
!
ip prefix-list s4 seq 5 permit any
ip prefix-list s6 seq 5 permit any
!
route-map TEST permit 1
exit
!
route-map s4 permit 1
 match source-protocol static
 on-match next
 set src 192.168.1.1
exit
!
ip protocol any route-map s4
!
segment-routing
 traffic-eng
 exit
exit
!
end

Dump:

alpine# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

K>* 0.0.0.0/0 [0/0] via 192.168.1.2, ns-vrouter0, 00:07:16
S   169.254.0.0/16 [1/0] unreachable (blackhole) inactive, weight 1, 00:07:15
O   192.168.1.0/30 [110/10] is directly connected, ns-vrouter0 inactive, weight 1, 00:07:16
C>* 192.168.1.0/30 is directly connected, ns-vrouter0, 00:07:16
S   192.168.1.4/30 [1/0] via 192.168.1.2, ns-vrouter0 inactive, weight 1, 00:07:15

Log:

2023/05/23 14:25:51 ZEBRA: [V98V0-MTWPF] client 104 says hello and bids fair to announce only static routes vrf=0
2023/05/23 14:25:51 STATIC: [K32YH-0RHMH] Registering nexthop(192.168.1.2/32) for 192.168.1.4/30
2023/05/23 14:25:51 ZEBRA: [MFYWV-KH3MC] process_subq_early_route_add: (0:?):169.254.0.0/16: Inserting route rn 0x7f982bd14490, re 0x7f982bf12540 (static) existing 0x0, same_count 0
2023/05/23 14:25:51 ZEBRA: [MFYWV-KH3MC] process_subq_early_route_add: (0:?):192.168.1.4/30: Inserting route rn 0x7f982bd14590, re 0x7f982c05e280 (static) existing 0x0, same_count 0
2023/05/23 14:25:51 ZEBRA: [W6YRX-15B2S] 0:169.254.0.0/16: Filtering out with NH unreachable (blackhole) due to route map
2023/05/23 14:25:51 ZEBRA: [W6YRX-15B2S] 0:192.168.1.4/30: Filtering out with NH 192.168.1.2, via ns-vrouter0 due to route map
2023/05/23 14:25:51 STATIC: [S4MGP-4WQTA] route_notify_owner: Route 169.254.0.0/16 failed to install for table: 254
2023/05/23 14:25:51 STATIC: [S4MGP-4WQTA] route_notify_owner: Route 192.168.1.4/30 failed to install for table: 254
2023/05/23 14:25:51 ZEBRA: [V98V0-MTWPF] client 109 says hello and bids fair to announce only bfd routes vrf=0
2023/05/23 14:25:52 ZEBRA: [V98V0-MTWPF] client 114 says hello and bids fair to announce only openfabric routes vrf=0
2023/05/23 14:25:52 ZEBRA: [V98V0-MTWPF] client 119 says hello and bids fair to announce only vrrp routes vrf=0
2023/05/23 14:25:52 ZEBRA: [V98V0-MTWPF] client 124 says hello and bids fair to announce only srte routes vrf=0
2023/05/23 14:25:52 ZEBRA: [TAFZ7-2C7QV] client protocol instance 1
2023/05/23 14:25:52 ZEBRA: [V98V0-MTWPF] client 129 says hello and bids fair to announce only srte routes vrf=0
2023/05/23 14:25:52 PATH: [NN4XW-E4M3V] IPv4 Router Id updated for VRF 0: 192.168.1.1
@ne-vlezay80 ne-vlezay80 added the triage Needs further investigation label May 23, 2023
@donaldsharp
Copy link
Member

What happens if you remove the on-match next

@ne-vlezay80
Copy link
Contributor Author

ne-vlezay80 commented May 23, 2023

What happens if you remove the on-match next

yes.
Temp solution:
add sleep 10 from frr frrcomon.sh. Example:

/usr/lib/frr/frrcommon.sh:
-cmd="$all_wrap $wrap $bin $nsopt -d $frr_global_options $instopt $args"
+cmd="sleep 10; $all_wrap $wrap $bin $nsopt -d $frr_global_options $instopt $args"

Copy link

This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose label in order to avoid having this issue closed.

@frrbot
Copy link

frrbot bot commented Nov 20, 2023

This issue will be automatically closed in the specified period unless there is further activity.

@frrbot frrbot bot closed this as completed Nov 27, 2023
@frrbot frrbot bot closed this as completed Nov 27, 2023
@frrbot frrbot bot removed the autoclose label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

2 participants