From 108035c32c6d9f4061e05b59a46530d87bb3172b Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Wed, 2 Aug 2017 15:32:46 +0800 Subject: [PATCH] Prevent check haproxy script from generating meaningless logs Redirect the logs into /dev/null. Otherwise, it will be collected by docker engine, which is meaningless. Change-Id: I7d1d4cac61e62144bc11c26e7b00fc21037eb8d1 Closes-Bug: #1708097 (cherry picked from commit 386825d6ff55fe1f4c753989c2552841da6c38af) --- docker/keepalived/check_alive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/keepalived/check_alive.sh b/docker/keepalived/check_alive.sh index 9bb87d7b78..929bb221a9 100644 --- a/docker/keepalived/check_alive.sh +++ b/docker/keepalived/check_alive.sh @@ -3,4 +3,4 @@ # This will return 0 when it successfully talks to the haproxy daemon via the socket # Failures return 1 -echo "show info" | socat unix-connect:/var/lib/kolla/haproxy/haproxy.sock stdio +echo "show info" | socat unix-connect:/var/lib/kolla/haproxy/haproxy.sock stdio > /dev/null