Page MenuHomeVyOS Platform

WAN Load Balancing failover route tables aren't created
Closed, ResolvedPublicBUG

Description

Version: 1.4-202311052338

This issue is very similar to T4362 I think.

Load balancing config:

set load-balancing wan disable-source-nat
set load-balancing wan enable-local-traffic
set load-balancing wan flush-connections
set load-balancing wan interface-health eth0.11 failure-count '4'
set load-balancing wan interface-health eth0.11 nexthop 'dhcp'
set load-balancing wan interface-health eth0.11 test 10 target '8.8.8.8'
set load-balancing wan interface-health eth0.11 test 10 type 'ping'
set load-balancing wan interface-health eth0.12 failure-count '4'
set load-balancing wan interface-health eth0.12 nexthop 'dhcp'
set load-balancing wan interface-health eth0.12 test 10 target '8.8.4.4'
set load-balancing wan interface-health eth0.12 test 10 type 'ping'
set load-balancing wan rule 30 failover
set load-balancing wan rule 30 inbound-interface 'eth2.90'
set load-balancing wan rule 30 interface eth0.11 weight '2'
set load-balancing wan rule 30 interface eth0.12 weight '1'
set load-balancing wan sticky-connections inbound
mhamzahkhan@gw01:~$ ip rule show
0:      from all lookup local
32764:  from all fwmark 0xca lookup 202
32765:  from all fwmark 0xc9 lookup 201
32766:  from all lookup main
32767:  from all lookup default
mhamzahkhan@gw01:~$ ip route show table all  | grep "table 201"
mhamzahkhan@gw01:~$ ip route show table all  | grep "table 202"

It's still looking for the DHCP lease in /var/lib/dhcp/: https://github.com/vyos/vyatta-wanloadbalance/blob/5a3ab6c426928644dc9ad9a70296263781523919/src/lbdata.cc#L335

But DHCP leases now appear to be created in /run/dhclient:

mhamzahkhan@gw01:~$ ls -l /var/lib/dhcp/ /run/dhclient/
/run/dhclient/:
total 36
-rw-r--r-- 1 root vyattacfg  719 Nov  9 10:53 dhclient_eth0.11.conf
-rw-r--r-- 1 root root       669 Nov 14 17:57 dhclient_eth0.11.lease
-rw-r--r-- 1 root root      3248 Nov 14 17:57 dhclient_eth0.11.leases
-rw-r--r-- 1 root root         5 Nov 14 17:57 dhclient_eth0.11.pid
-rw-r--r-- 1 root vyattacfg  719 Nov  9 10:53 dhclient_eth0.12.conf
-rw-r--r-- 1 root root       665 Nov 14 18:49 dhclient_eth0.12.lease
-rw-r--r-- 1 root root      4620 Nov 14 18:49 dhclient_eth0.12.leases
-rw-r--r-- 1 root root         5 Nov 14 18:49 dhclient_eth0.12.pid

/var/lib/dhcp/:
total 0

Details

Difficulty level
Unknown (require assessment)
Version
1.4-202311052338
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)