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
This commit is contained in:
parent
ebc1bbb081
commit
12d6eeceb5
@ -6,9 +6,11 @@ type = "FileOutput"
|
||||
message_matcher = "Type == 'Syslog' && Fields[programname] =~ /(?i:haproxy)/"
|
||||
path = "/var/log/kolla/haproxy/haproxy.log"
|
||||
encoder = "syslog_encoder"
|
||||
folder_perm = "755"
|
||||
|
||||
[keepalived_file_output]
|
||||
type = "FileOutput"
|
||||
message_matcher = "Type == 'Syslog' && Fields[programname] =~ /(?i:keepalived)/"
|
||||
path = "/var/log/kolla/haproxy/keepalived.log"
|
||||
encoder = "syslog_encoder"
|
||||
folder_perm = "755"
|
||||
|
@ -6,3 +6,4 @@ type = "FileOutput"
|
||||
message_matcher = "Type == 'Syslog' && Fields[programname] == '{{ item }}'"
|
||||
path = "/var/log/kolla/swift/{{ item }}.log"
|
||||
encoder = "syslog_encoder"
|
||||
folder_perm = "755"
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user