Copy Ceph logs from running containers
We need to copy from each container the /var/log/ceph directory if that exists. Change-Id: I9969693aa2e46fa66e26213b59e23a225daec1af
This commit is contained in:
parent
6860a9967c
commit
8fe793b124
|
@ -36,7 +36,10 @@ if command -v docker && systemctl is-active docker; then
|
|||
# using a `logs` volume
|
||||
# Removing the following line as openstack infra needs our log size reduced
|
||||
# docker cp $cont:/var/log $INFO_DIR/log
|
||||
|
||||
# NOTE(gfidente): Just copy Ceph
|
||||
if docker exec --user root $cont stat /var/log/ceph > /dev/null; then
|
||||
docker cp $cont:/var/log/ceph $INFO_DIR/log
|
||||
fi
|
||||
# Delete symlinks because they break log collection and are generally
|
||||
# not useful
|
||||
find $INFO_DIR -type l -delete
|
||||
|
|
Loading…
Reference in New Issue