weights not being updated when using misc_dynamic #2423
Replies: 2 comments 3 replies
-
You need to check the keepalived log entries in the system logs. That will tell you if |
Beta Was this translation helpful? Give feedback.
-
Commit 291801d introduced this problem, and the first version this was in was v2.0.16. The problem was correct with commit e2b4d10 and the first version that was in was v2.2.0. Now that you have identified that you are running v2.1.5 it is clear that the version you are running has the problem where an exit code of 2 does not work properly. Your solution is to upgrade to a recent version of keepalived (e.g. v2.3.1) or to backport commit e2b4d10 to v2.1.5. |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone.
I have been trying to upgrade to ipvsadm v1.31 2019/12/24 (compiled with popt and IPVS v1.2.1). Long story short, I have a MISC_CHECK script which returns either a 2 if the checker fails or 3 upon success. In the end, I expect the weight to be either set to 0 or 1 without notifications of up/down. No matter what I return from the checker exit status, the weight is not being updated.
`
these are the global defaults I have set
global_defs
{
vrrp_version 3
enable_script_security
}
here's basically how I have the real_servers checks configured.
real_server xx.xx.xx.xx xxxxx {
weight 1
MISC_CHECK {
misc_path "/etc/keepalived/myscript myvip myrealhostname xx.xx.xx.xx xxxxx"
misc_dynamic
}
}
`
I believe this may be related to the new feature I have enabled, enable_script_security. It seems maybe the script has to run as a privileged user to adjust weights however I cannot find any documentation which refers to when escalated privileges are required.
TIA,
George.
Beta Was this translation helpful? Give feedback.
All reactions