Reviewed: https://review.opendev.org/655422 Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=638ba0b92d881623483d2bc968c474bca1f2fc49 Submitter: Zuul Branch: stable/rocky
commit 638ba0b92d881623483d2bc968c474bca1f2fc49 Author: Damien Ciabrini <email address hidden> Date: Thu Apr 18 15:29:33 2019 +0200
Fix keepalived VIP monitoring script
Currently keepalived monitors VIPs by running some shell commands that target HAProxy. The generated shell command is invalid, which makes keepalived log errors.
Tue Apr 16 11:55:57 2019: Command = '/usr/bin/test' '-S' '/var/lib/haproxy/stats' '&&' 'echo' 'show' Tue Apr 16 11:55:57 2019: Script `haproxy` now returning 2 Tue Apr 16 11:55:57 2019: VRRP_Script(haproxy) failed (exited with status 2)
Fix quoting and invoke /bin/sh explicitely to fix the error:
Thu Apr 18 13:16:35 2019: Command = '/usr/bin/sh' '-c' 'test -S /var/lib/haproxy/stats && echo show info | socat /var/lib/haproxy/stats stdio' Thu Apr 18 13:16:35 2019: VRRP_Script(haproxy) succeeded
Change-Id: I5a757f88963270e77c8ec411cd292a30f89c6bc0 Closes-Bug: #1825366 (cherry picked from commit f5d6110a79ca11f00728429660428ab99f5292d1)
Reviewed: https:/ /review. opendev. org/655422 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=638ba0b92d8 81623483d2bc968 c474bca1f2fc49
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 638ba0b92d88162 3483d2bc968c474 bca1f2fc49
Author: Damien Ciabrini <email address hidden>
Date: Thu Apr 18 15:29:33 2019 +0200
Fix keepalived VIP monitoring script
Currently keepalived monitors VIPs by running some shell commands
that target HAProxy. The generated shell command is invalid, which
makes keepalived log errors.
Tue Apr 16 11:55:57 2019: Command = '/usr/bin/test' '-S' '/var/lib/ haproxy/ stats' '&&' 'echo' 'show' haproxy) failed (exited with status 2)
Tue Apr 16 11:55:57 2019: Script `haproxy` now returning 2
Tue Apr 16 11:55:57 2019: VRRP_Script(
Fix quoting and invoke /bin/sh explicitely to fix the error:
Thu Apr 18 13:16:35 2019: Command = '/usr/bin/sh' '-c' 'test -S /var/lib/ haproxy/ stats && echo show info | socat /var/lib/ haproxy/ stats stdio' haproxy) succeeded
Thu Apr 18 13:16:35 2019: VRRP_Script(
Change-Id: I5a757f88963270 e77c8ec411cd292 a30f89c6bc0 00728429660428a b99f5292d1)
Closes-Bug: #1825366
(cherry picked from commit f5d6110a79ca11f