# Pastebin c3amNV2m [root@amphora-0a7ece7f-2dde-4e68-b856-20d978567099 ~]# cat /var/lib/octavia/vrrp/check_scripts/lvs_udp_check.sh #!/bin/bash # Don't try to run the directory when it is empty shopt -s nullglob status=0 for file in /var/lib/octavia/lvs/* do file_ext=${file#*.} case $file_ext in pid) echo "Check keepalived pid file: " $file;; *) continue;; esac systemctl status ${file%.pid} status=$(( $status + $? )) done exit $status[root@amphora-0a7ece7f-2dde-4e68-b856-20d978567099 ~]# ls /var/lib/octavia/lvs/ check octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.conf octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.vrrp.pid octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.check.pid octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.pid [root@amphora-0a7ece7f-2dde-4e68-b856-20d978567099 ~]# lvs_udp_check.sh [root@amphora-0a7ece7f-2dde-4e68-b856-20d978567099 ~]# /var/lib/octavia/vrrp/check_scripts/lvs_udp_check.sh Check keepalived pid file: /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.pid Unit var-lib-octavia-lvs-octavia\x2dkeepalivedlvs\x2df3290131\x2d4314\x2d4bfb\x2d82eb\x2db0a09dde4d01.mount could not be found. [root@amphora-0a7ece7f-2dde-4e68-b856-20d978567099 ~]# cat /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.pid 25139 [root@amphora-0a7ece7f-2dde-4e68-b856-20d978567099 ~]# systemctl status 25139 ● octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/usr/lib/systemd/system/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2018-08-02 05:23:07 UTC; 51min ago Process: 25025 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Process: 25138 ExecStart=/sbin/ip netns exec amphora-haproxy /usr/sbin/keepalived -D -d -f /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.conf -p /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.pid -r /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.vrrp.pid -c /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.check.pid (code=exited, status=0/SUCCESS) Main PID: 25139 (keepalived) CGroup: /system.slice/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.service ├─25139 /usr/sbin/keepalived -D -d -f /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.conf -p /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82... ├─25140 /usr/sbin/keepalived -D -d -f /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.conf -p /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82... └─25141 /usr/sbin/keepalived -D -d -f /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82eb-b0a09dde4d01.conf -p /var/lib/octavia/lvs/octavia-keepalivedlvs-f3290131-4314-4bfb-82... Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: flag-3 = disabled Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: One packet scheduling = disabled Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: protocol = 0 Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: alpha is OFF, omega is OFF Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: quorum = 1, hysteresis = 0 Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: lb_kind = NAT Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: RIP = 10.0.0.25, RPORT = 2222, WEIGHT = 2 Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: -> Inhibit service on failure Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: RIP = 10.0.0.35, RPORT = 3333, WEIGHT = 2 Aug 02 05:23:08 amphora-0a7ece7f-2dde-4e68-b856-20d978567099.novalocal Keepalived_healthcheckers_amphora-haproxy[25140]: -> Inhibit service on failure [root@amphora-0a7ece7f-2dde-4e68-b856-20d978567099 ~]#