Description of problem: when I created ipfaiover pod using the customized check script. the default check script 'script \"</dev/tcp/${serviceip}/${port}\" still be using after the customized check script. then the customized script will never become effective. if [ "$port" = "0" ]; then echo " script \"true\"" else if [[ -n "${HA_CHECK_SCRIPT}" ]]; then echo " if [[ -f ${HA_CHECK_SCRIPT} ]]; then" echo " script \"${HA_CHECK_SCRIPT}\"" echo " fi" - fi + else echo " script \"</dev/tcp/${serviceip}/${port}\"" + fi fi Version-Release number of selected component (if applicable): openshift/origin-keepalived-ipfailover latest 72946971f1da How reproducible: always Steps to Reproduce: 1. touch 2 file '/root/check.sh' and '/root/notify.sh' 2. Create ipfailover pod with oadm ipfailover ipf --create --virtual-ips='172.18.3.100' --replicas=1 -w 80 --check-interval=4 --check-script='/root/check.sh' --latest-images --notify-script='/root/notify.sh' 3. mount the check.sh and notify to pod 4. check the keepalived.conf in pod Actual results: vrrp_script chk_ipf { if [[ -f /root/check.sh ]]; then script "sh /root/check.sh" fi script "</dev/tcp/172.18.3.141/80" interval 4 } Expected results: the default script ' script "</dev/tcp/172.18.3.141/80"' should not be shown vrrp_script chk_ipf { if [[ -f /root/check.sh ]]; then script "sh /root/check.sh" fi interval 4 } Additional info:
https://github.com/openshift/origin/pull/12509 MERGED
Verified this bug on openshift version openshift v1.5.0-alpha.2+0dfac7b-26 kubernetes v1.5.2+43a9be4 etcd 3.1.0-rc.0 with images: openshift/origin-keepalived-ipfailover latest 6da1e099dca9 the issue has been fixed. Marked as 'verified'