Closed geotransformer closed 8 months ago
The correct way to disable preempt is to specify nopreempt
in the VRRP instance.
If you need any further assistance, you will need to post the keepalived configurations for each of your three systems, and the full keepalived system logs from each of the three systems from the time that keepalived started on those systems. We can then reopen this issue.
I have tested your configuration and nopreempt
works for me as expected.
The correct way to disable preempt is to specify
nopreempt
in the VRRP instance.If you need any further assistance, you will need to post the keepalived configurations for each of your three systems, and the full keepalived system logs from each of the three systems from the time that keepalived started on those systems. We can then reopen this issue.
I have tested your configuration and
nopreempt
works for me as expected.
@pqarmitage For "nopreempt" in the posted config above, VIP switches over as expected when the node (with VIP) is completely down. However, the VIP did not switch over when node (with VIP) is alive but the track_script keeps failing. Is this expected behavior?
The track script has a weight of 50, so when the script fails it subtracts 50 from the vrrp priority. To make a vrrp instance go to fault state on failure, weight must not be specified.
The track script has a weight of 50, so when the script fails it subtracts 50 from the vrrp priority. To make a vrrp instance go to fault state on failure, weight must not be specified.
This is exactly what we are looking for. Thanks a lot @pqarmitage
Describe the bug Use nopreempt option. However, vip is not switching into other healthy node although first node with VIP goes fault state . States are tracked by track_script in my case.
Initial asking https://access.redhat.com/discussions/3029791
To Reproduce vrrp_script check_api { script "/etc/keepalived/check_api.sh" interval 1 #check every second weight 50 rise 3 # required number of successes for OK transition fall 2 # required number of successes for KO transition init_fail # assume script initially is in failed state }
track_script { check_api }
Expected behavior If the node with VIP consistently failed the track_script, the VIP should move
Keepalived version
Distro (please complete the following information): NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04" HOME_URL="https://
Details of any containerisation or hosted service (e.g. AWS) If keepalived is being run in a container or on a hosted service, provide full details
Configuration file:
Notify and track scripts
System Log entries
Did keepalived coredump?
Additional context Add any other context about the problem here.