Enter Persistent CARP Maintenance Mode - advskew 254 causes problems

Started by Werner Fischer, August 26, 2019, 12:36:55 PM

Previous topic - Next topic
Hi all,

I have some feedback regarding CARP:

Steps to reproduce issue b):

  • Build an OPNsense HA cluster with two nodes, firewall 1 as MASTER and firewall 2 as BACKUP
  • Click "Enter Persistent CARP Maintenance Mode" on firewall 1. The sysctl "net.inet.carp.demotion" will be set to 240. advskew is still 0 for all configured CARP interfaces.
  • Do a reboot of firewall 1.
  • After the reboot, on firewall 1 "net.inet.carp.demotion" is now 0 (not 240), but advskew for all CARP interfaces is set to 254 (query by "ifconfig | grep carp"). So advskew is set to 254, but the web interface shows still values of 0 in "Firewall -> Virtual IPs -> Settings".
  • Clicking "Leave Persistent CARP Maintenance Mode" on firewall 1 does _not_ switch back the CARP IPs to firewall 1. firewall 2 is still MASTER, although I would expect that now there should be a switch-back to firewall 1 - according to the doc https://docs.opnsense.org/manual/how-tos/carp.html#example-updating-a-carp-ha-cluster
  • Only after another reboot of firewall 1, advskew is again set to 0. But in my opinion this additional reboot of firewall 1 is unecessary when updating an OPNsense firewall cluster.

Best regards,
Werner