Page MenuHomeVyOS Platform

VRRP stops working with VRF
Closed, ResolvedPublicBUG

Description

Tested on VyOS 1.4-rolling-202110180513

A router with an eth1 interface. VRRP is configured on the interface (with unicast VRRP peer's address configuration)
The interface eth1 is assigned to VRF.

set system host-name 'R-1'
set high-availability vrrp group VLAN11 address '10.0.11.254/24'
set high-availability vrrp group VLAN11 hello-source-address '10.0.11.1'
set high-availability vrrp group VLAN11 interface 'eth1'
set high-availability vrrp group VLAN11 peer-address '10.0.11.2'
set high-availability vrrp group VLAN11 priority '200'
set high-availability vrrp group VLAN11 vrid '11'
set interfaces ethernet eth1 address '10.0.11.1/24'
set interfaces ethernet eth1 description 'VLAN11'
set interfaces ethernet eth1 vrf 'VL11'
set vrf name VL11 table '111'

VRRP is working. But only until reboot:

vyos@R-1:~$ sh vrrp
Name    Interface      VRID  State      Priority  Last Transition
------  -----------  ------  -------  ----------  -----------------
VLAN11  eth1             11  MASTER          200  9m40s
VLAN12  eth2             12  BACKUP          100  9m31s

VRRP stops working after the reboot:

vyos@R-1:~$ sh vrrp
Name    Interface      VRID  State      Priority  Last Transition
------  -----------  ------  -------  ----------  -----------------
VLAN11  eth1             11  FAULT           200  5m1s
VLAN12  eth2             12  FAULT           100  5m1s

If you remove Unicast peer addresses from VRRP settings (change to multicast mode), VRRP starts working again:

delete high-availability vrrp group VLAN11 hello-source-address '10.0.11.1'
delete high-availability vrrp group VLAN11 peer-address '10.0.11.2'

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.4-rolling-202110180513
Why the issue appeared?
Issues in third-party code
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

StatusSubtypeAssignedTask
ResolvedBUGc-po
ResolvedBUGc-po

Event Timeline

Unknown Object (User) created this task.Oct 21 2021, 12:12 PM
Unknown Object (User) created this object in space S1 VyOS Public.
Viacheslav changed the subtype of this task from "Task" to "Bug".Oct 21 2021, 1:48 PM
Unknown Object (User) changed the task status from Open to Confirmed.Oct 25 2021, 10:44 AM

keepalived was upgraded to include the above mentioned commits.

Can you please retry with the newest rolling ISO after vyos-1.4-rolling-202201020317-amd64.iso

[email protected]# run show vrrp
Name    Interface      VRID  State      Priority  Last Transition
------  -----------  ------  -------  ----------  -----------------
VLAN11  eth1             11  MASTER          200  33s
c-po changed the task status from Confirmed to Needs testing.Jan 3 2022, 7:20 PM
Unknown Object (User) closed this task as Resolved.Jan 7 2022, 1:30 AM

Tested in VyOS 1.4-rolling-202201060842
Works

c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Issues in third-party code.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus ( 1.3.1) board.