Keepalived update from 1.2.19 to 1.2.24 breaks support for /dev/tcp health check
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keepalived (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Won't Fix
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned | ||
Cosmic |
Won't Fix
|
High
|
Unassigned |
Bug Description
Previous configuration that works fine:
vrrp_script chk_trigger_port {
script "</dev/
interval 5
weight 30
}
This syntax is documented all over, and worked properly in 1.2.19, but update to 1.2.24 package broke it.
Resulting symptom is that keepalived will continuously fail with a FATAL error and respawn, and will not ever come online fully.
Tracing the service, it is getting a no such file or directory on the /dev/tcp script. I have not looked at the code changes, but I suspect there was some optimization to not use bash, or change in how the script is executed - breaking support for that syntax.
I was able to work around with:
script "/bin/bash -c '</dev/
but that still leaves all of the incorrect documentation.
Looks like it may have already been corrected upstream - please backport this fix to ubuntu 16.04 package train please:
https:/
tags: | added: regression-update |
Changed in keepalived (Ubuntu): | |
assignee: | Karl Stenerud (kstenerud) → nobody |
Changed in keepalived (Ubuntu Bionic): | |
assignee: | nobody → Paride Legovini (paride) |
Changed in keepalived (Ubuntu Xenial): | |
status: | Triaged → Won't Fix |
summary: |
- [SRU] Keepalived update from 1.2.19 to 1.2.24 breaks support for - /dev/tcp health check + Keepalived update from 1.2.19 to 1.2.24 breaks support for /dev/tcp + health check |
Thanks for filing this bug in Ubuntu, and providing a link to a patch. This will need some backporting, but it's an excellent start.
Looks like even cosmic is affected, at version 1.3.9.