collect-logs: Remove collection of docker etc/ dirs

This commit removes the collection of docker etc/ dirs. The majority of
this content should not be necessary and presents a burden on
OpenStack-Infra's log servers. If specific logs should be kept from here
they should be explicit.

Change-Id: I4d0de6539dd42e2291a33acd84bec586d0d62d4a
This commit is contained in:
Ben Kero 2017-03-17 18:17:00 -07:00
parent c16d247666
commit 57c8af3105

View File

@ -170,7 +170,6 @@
echo "+ docker inspect $cont" >> $INFO_FILE;
docker inspect $cont &>> $INFO_FILE;
docker logs $cont &> $INFO_DIR/stdout.log;
docker cp $cont:/etc $INFO_DIR/etc;
docker cp $cont:/var/lib/kolla/config_files/config.json $INFO_DIR/config.json;
# NOTE(flaper87): This should go away. Services should be
# using a `logs` volume
@ -182,6 +181,9 @@
cp -r /var/lib/docker/volumes/logs/_data $BASE_DOCKER_EXTRA/logs;
fi
- name: Collect config-data
shell: cp -r /var/lib/config-data /var/log/config-data
- name: Collect text version of the journal from last four hours
shell: journalctl --since=-4h --lines=100000 > /var/log/journal.txt