I have setup a VRRP cluster with two nodes. I wrote some transition scripts to disable or reenable a zabbix-proxy container, whenever a node changes its state. The transition scripts are configured for the VRRP sync group:
set high-availability vrrp sync-group main transition-script backup "/config/scripts/ha/vrrp-backup.sh" set high-availability vrrp sync-group main transition-script master "/config/scripts/ha/vrrp-master.sh"
The scripts look like this:
vrrp-backup.sh:
#!/bin/vbash source /opt/vyatta/etc/functions/script-template configure set container name zabbix-proxy disable commit comment "VRRP backup transition" exit
vrrp-master.sh:
#!/bin/vbash source /opt/vyatta/etc/functions/script-template configure delete container name zabbix-proxy disable commit comment "VRRP master transition" exit
Whenever a VRRP transition has occured and the scripts were executed, no config changes can be made while the error message set failed is displayed. This lasts until I reboot the machine which let me to believe that the cause for this might be that the VRRP transition scripts are currently not called with the vyattacfg group.