Page MenuHomeVyOS Platform

Show VRRP leads to warning message
Closed, ResolvedPublicBUG

Description

show vrrp shows the following warning:

Argument "1526314929 (Mon May 14 18:22:09 2018)" isn't numeric in subtraction (-) at /opt/vyatta/share/perl5/Vyatta/VRRP/OPMode.pm line 158.
Argument "1526314929 (Mon May 14 18:22:09 2018)" isn't numeric in subtraction (-) at /opt/vyatta/share/perl5/Vyatta/VRRP/OPMode.pm line 158.

might be because the new keepalived versions adds a date to the timestamp of 'last-transition'

possible fix:

my $seconds = $stop - substr($start, 0, index($start, ' ')); at line 158 in OPMode.pm

Details

Difficulty level
Easy (less than an hour)
Version
1.2.0-rolling+201805141749
Why the issue appeared?
Will be filled on close

Event Timeline

syncer triaged this task as Normal priority.
syncer edited projects, added VyOS 1.2 Crux (VyOS 1.2.0-rc1); removed VyOS 1.2 Crux.

The root cause was here:

vyos@vyos-test-1# cat /tmp/keepalived.data
------< VRRP Topology >------
 VRRP Instance = vyatta-eth1-1
   VRRP Version = 2
   State = MASTER
   Last transition = 1527993744 (Sun Jun  3 02:42:24 2018) 
   Listening device = eth1
   Using src_ip = 10.10.10.1