diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-03-04 23:49:01 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-03-09 09:34:59 +0800 |
| commit | 12d6eeceb5dc1021d66aa89930606cc9bc04e79f (patch) | |
| tree | 3b51b1be022873781390b10f368b83b67cd704ed /tools | |
| parent | ebc1bbb08132f1cc638ea3c18773ce95fbe421c4 (diff) | |
| download | kolla-12d6eeceb5dc1021d66aa89930606cc9bc04e79f.tar.gz kolla-12d6eeceb5dc1021d66aa89930606cc9bc04e79f.zip | |
Copy the logs out of the container
Heka logs almost done. When testing, The collected logs can copy
to the /tmp/logs folder, which will be handle by the gate. This
will be very useful for our gate debug.
TrivialFix
Change-Id: I06ca8ebd13933bfd15cb2fb5e53fc3038b17b8c3
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/deploy_aio.sh | 6 | ||||
| -rwxr-xr-x | tools/setup_gate.sh | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tools/deploy_aio.sh b/tools/deploy_aio.sh index e6ef5a11e..8f3c96222 100755 --- a/tools/deploy_aio.sh +++ b/tools/deploy_aio.sh @@ -9,7 +9,7 @@ export KOLLA_BASE=$1 export KOLLA_TYPE=$2 function copy_logs { - docker cp heka:/var/log/kolla /tmp/logs + cp -rnL /var/lib/docker/volumes/kolla_logs/_data/* /tmp/logs/kolla/ } function check_failure { @@ -41,9 +41,7 @@ function check_failure { nova list nova list | awk '/4/ {print $2}' | xargs -n1 nova show - # NOTE(SamYaple): The copy logs functions is put on hold until Heka is all - # merged in. At that point we will pull the logs from Heka's volume - #copy_logs + copy_logs } function write_configs { diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index 58c11802b..4d1173994 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -103,7 +103,7 @@ function setup_logging { # For ease of access we symlink that logs directory to a known path ln -s $(pwd)/logs /tmp/logs - mkdir -p /tmp/logs/{ansible,build} + mkdir -p /tmp/logs/{ansible,build,kolla} } setup_logging |
