-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CARP: leaving maintenance mode on unit1 after reboot doesn't change advskew #3671
Comments
Just as a note: as mentioned in https://www.thomas-krenn.com/en/wiki/OPNsense_HA_Cluster_configuration after the reboot, on firewall 1 "net.inet.carp.demotion" was 0 again (not 240). So when simple set advskew back to 0 with the refactoring, the "Enter Persistent CARP Maintenance Mode" would not be persistent for another reboot I assume. I think the wanted behaviour of the "Enter Persistent CARP Maintenance Mode" would be:
Would it be possible that demotion would stay at 240 on firewall 1 even after the reboot (when firewall 1 is the in "Persistent CARP Maintenance Mode"? |
@tk-wfischer to proposed change is to stop fiddling with advskew and set demotion on early boot, similar to what we're going todo for #3636 |
should do the trick. @mimugmail @tk-wfischer can you check on your end? |
@AdSchellevis first of all, thank you very much for your friendly and kind support. Now it works as expected. :-) Here is the full log:
I have only noticed, that the syshook has "openvpn" in it's name (I did not configure openvpn):
From a functional perspective, the patch fixes my problem :-) Thank you again for your fast support. |
@awerner your more than welcome, thanks for testing! The openvpn hook is an event that's triggered on a state change and reloads openvpn clients if needed. It's very practical, you can perform actions on these (devd) events. (in core only openvpn clients need this) |
Confirmed, also working as expected on my end :) |
[X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[X] I have searched the existing issues and I'm convinced that mine is new.
Describe the bug
As discussed via IRC it seems that after patch 0e9912c when setting unit 1 in maintenance mode, reboot, and leave again, it is still backup and not master because advskew is still on 254.
Idea of @AdSchellevis was to refactor
core/src/etc/inc/interfaces.inc
Lines 1711 to 1716 in c3ccc63
Reference https://forum.opnsense.org/index.php?topic=13987.msg64276#new
OPNsense is on latest 19.7.2
The text was updated successfully, but these errors were encountered: