- Bug. After executing transition scripts by VRRP, the configuration is locked and I can't change any value.
- Bug. Timeouts on MASTER (show vrrp) clear every ~3 sec and high cpu utilization on the master. 80-100 %
To reproduce
Router01:
set interfaces ethernet eth1 vif 99 address '10.0.0.254/24' set high-availability vrrp group lan hello-source-address '10.0.0.254' set high-availability vrrp group lan interface 'eth1.99' set high-availability vrrp group lan no-preempt set high-availability vrrp group lan peer-address '10.0.0.253' set high-availability vrrp group lan priority '250' set high-availability vrrp group lan transition-script backup '/config/scripts/vrrp-trans-fail.sh' set high-availability vrrp group lan transition-script fault '/config/scripts/vrrp-trans-fail.sh' set high-availability vrrp group lan transition-script master '/config/scripts/vrrp-trans-master.sh' set high-availability vrrp group lan virtual-address '10.0.0.1/24' set high-availability vrrp group lan vrid '99'
Router02:
set interfaces ethernet eth1 vif 99 address '10.0.0.253/24' set high-availability vrrp group lan hello-source-address '10.0.0.253' set high-availability vrrp group lan interface 'eth1.99' set high-availability vrrp group lan no-preempt set high-availability vrrp group lan peer-address '10.0.0.254' set high-availability vrrp group lan transition-script backup '/config/scripts/vrrp-trans-fail.sh' set high-availability vrrp group lan transition-script fault '/config/scripts/vrrp-trans-fail.sh' set high-availability vrrp group lan transition-script master '/config/scripts/vrrp-trans-master.sh' set high-availability vrrp group lan virtual-address '10.0.0.1/24' set high-availability vrrp group lan vrid '99'
Transition script fail
vyos@r1-roll# sudo cat /config/scripts/vrrp-trans-fail.sh #!/bin/vbash source /opt/vyatta/etc/functions/script-template configure set interfaces ethernet eth1 vif 99 description BACKUP_by_script commit exit
Transition master
#!/bin/vbash source /opt/vyatta/etc/functions/script-template configure set interfaces ethernet eth1 vif 99 description MASTER_by_script commit exit
Router 1 in master state.
vyos@r1-roll:~$ show int Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 192.168.122.11/24 u/u eth1 - u/u eth1.99 10.0.0.254/24 u/u MASTER_by_script 10.0.0.1/24 lo 127.0.0.1/8 u/u ::1/128 vyos@r1-roll:~$ vyos@r1-roll:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 2s
Trying to add or del configuration
vyos@r1-roll# delete interfaces ethernet eth1 vif 99 description Failed to delete specified config path Delete failed [edit] vyos@r1-roll# vyos@r1-roll# delete interfaces ethernet eth1 vif 99 Failed to delete specified config path Delete failed [edit] vyos@r1-roll# vyos@r1-roll# set interfaces ethernet eth0 description FOO Set failed [edit] vyos@r1-roll#
Permissions
vyos@r1-roll# sudo ls -la /config/scripts/ total 20 drwxrwsr-x 2 root vyattacfg 4096 Jul 28 16:05 . drwxrwsr-x 8 root vyattacfg 4096 Jul 28 15:55 .. -rwxr-xr-x 1 root vyattacfg 154 Jul 28 16:05 vrrp-trans-fail.sh -rwxr-xr-x 1 root vyattacfg 153 Jul 28 16:05 vrrp-trans-master.sh -rwxr-xr-x 1 root vyattacfg 230 Jul 28 01:24 vyos-postconfig-bootup.script
Second bug with timeouts
vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 1s vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 6s vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 2s vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 3s vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 2s vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 1s vyos@vyos:~$ show vrrp Name Interface VRID State Last Transition ------ ----------- ------ ------- ----------------- lan eth1.99 99 MASTER 3s vyos@vyos:~$