aboutsummaryrefslogtreecommitdiff
path: root/tests/get_logs.sh
diff options
context:
space:
mode:
authorRadosław Piliszek <radoslaw.piliszek@gmail.com>2021-09-25 20:10:15 +0000
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2021-09-25 20:10:15 +0000
commite6edec78e58afe89150adef8decd587db1b7e18e (patch)
tree6d4abd4560faea2417cff7396362f3f9f63459f3 /tests/get_logs.sh
parentd85af34ccdad7ba572356dc2e6dfc90cc3ce75c0 (diff)
downloadkolla-ansible-e6edec78e58afe89150adef8decd587db1b7e18e.tar.gz
kolla-ansible-e6edec78e58afe89150adef8decd587db1b7e18e.zip
[CI] Collect info about environment before deploy
And also collect lsmod listing. These both are useful to have a clearer picture of the original environment and the effect kolla ansible had on it. Change-Id: I5d87cfd45e4369df40b8195124535e59d24700c3
Diffstat (limited to 'tests/get_logs.sh')
-rw-r--r--tests/get_logs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/get_logs.sh b/tests/get_logs.sh
index 0c0e5a8be..b3c3bdac7 100644
--- a/tests/get_logs.sh
+++ b/tests/get_logs.sh
@@ -3,7 +3,7 @@
set +o errexit
copy_logs() {
- LOG_DIR=/tmp/logs
+ LOG_DIR=${LOG_DIR:-/tmp/logs}
cp -rnL /var/lib/docker/volumes/kolla_logs/_data/* ${LOG_DIR}/kolla/
cp -rnL /etc/kolla/* ${LOG_DIR}/kolla_configs/
@@ -69,6 +69,7 @@ copy_logs() {
getent ahostsv6 $(hostname)) &> ${LOG_DIR}/system_logs/getent_ahostsvX.txt
sysctl -a &> ${LOG_DIR}/system_logs/sysctl.txt
+ lsmod &> ${LOG_DIR}/system_logs/lsmod.txt
if [ `command -v dpkg` ]; then
dpkg -l > ${LOG_DIR}/system_logs/dpkg-l.txt