Confirmed.
Without the following patch, wrong exit status code would be reported.

  Fix reporting of script exit status
  
https://github.com/acassen/keepalived/commit/46121a8b7e4af439c5ad9e4589fb80d414e0eefc

Not a big issue, but it would be better to backport this patch together.


How to Reproduce The Problem

In our environment, we are using a misc-checker which exits with exit code 3.
Simply putting something like this should be enough to reproduce the problem.

/usr/local/sbin/our_misc_checker :
---
#!/bin/sh

exit 3
---

Then, within a standard keepalived.conf settings, selecting the above script 
file
will give you a necessary keepalived environment for reproducing the issue.
---
    real_server <IP ADDRESS> <PORT NUM> {
        MISC_CHECK {
            misc_path "/usr/local/sbin/our_misc_checker"
            misc_dynamic
        }
    }
---

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1792298

Title:
  keepalived: MISC healthchecker's exit status is erroneously treated as
  a permanent error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1792298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to