diff options
| author | Michal Nasiadka <michal.nasiadka@nokia.com> | 2019-02-21 11:03:42 +0100 |
|---|---|---|
| committer | Michal Nasiadka <michal.nasiadka@nokia.com> | 2019-02-21 12:55:54 +0100 |
| commit | 3f01c7c7cd2d482153d46d4448c6a329bd89951a (patch) | |
| tree | 69de829450439f2b66023d0361aa16a99df714c4 /tests/get_logs.sh | |
| parent | 4a127d4bd92769843c3593c7f1653c3395e61bcf (diff) | |
| download | kolla-ansible-3f01c7c7cd2d482153d46d4448c6a329bd89951a.tar.gz kolla-ansible-3f01c7c7cd2d482153d46d4448c6a329bd89951a.zip | |
Add haproxy stats to gate logs
Change-Id: Iebd98acf03418817d3707c4a117771b73da80166
Diffstat (limited to 'tests/get_logs.sh')
| -rw-r--r-- | tests/get_logs.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/get_logs.sh b/tests/get_logs.sh index bce497794..390a0e04a 100644 --- a/tests/get_logs.sh +++ b/tests/get_logs.sh @@ -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 |
