aboutsummaryrefslogtreecommitdiff
path: root/tests/get_logs.sh
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-03-03 16:35:34 +0000
committerGerrit Code Review <review@openstack.org>2022-03-03 16:35:34 +0000
commit9a1bd06098f23a4ea771a3b8d14b9c11c3050786 (patch)
tree91bb6fce3caf53ea19a60ef8c43e5abc11d9dedf /tests/get_logs.sh
parent44517dd7b76baf14a449320b0dafefecf45a40a8 (diff)
parente6edec78e58afe89150adef8decd587db1b7e18e (diff)
downloadkolla-ansible-9a1bd06098f23a4ea771a3b8d14b9c11c3050786.tar.gz
kolla-ansible-9a1bd06098f23a4ea771a3b8d14b9c11c3050786.zip
Merge "[CI] Collect info about environment before deploy"
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 1e84aebae..5e567fbce 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