Skip to content
Snippets Groups Projects
Commit 3f01c7c7 authored by Michal Nasiadka's avatar Michal Nasiadka
Browse files

Add haproxy stats to gate logs

Change-Id: Iebd98acf03418817d3707c4a117771b73da80166
parent 4a127d4b
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,12 @@ copy_logs() {
docker exec bifrost_deploy journalctl -u rabbitmq-server > ${LOG_DIR}/kolla/rabbitmq-server/rabbitmq.txt
fi
# haproxy related logs
if [[ $(docker ps --filter name=haproxy --format "{{.Names}}") ]]; then
mkdir -p ${LOG_DIR}/kolla/haproxy
docker exec haproxy bash -c 'echo show stat | socat stdio /var/lib/kolla/haproxy/haproxy.sock' > ${LOG_DIR}/kolla/haproxy/stats.txt
fi
for container in $(docker ps -a --format "{{.Names}}"); do
docker logs --tail all ${container} &> ${LOG_DIR}/docker_logs/${container}.txt
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment