aboutsummaryrefslogtreecommitdiff
path: root/tests/get_logs.sh
diff options
context:
space:
mode:
authorRadosław Piliszek <radoslaw.piliszek@gmail.com>2022-02-04 22:32:23 +0100
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2022-02-04 22:32:23 +0100
commit654edefca3061a9e61183544f71bc41ab7a61600 (patch)
tree15bec8fb835f14ae41877e9942b6e3d4b4402092 /tests/get_logs.sh
parenta82028e3e83836d65813d906a7229a6d1ea5cf7f (diff)
downloadkolla-ansible-654edefca3061a9e61183544f71bc41ab7a61600.tar.gz
kolla-ansible-654edefca3061a9e61183544f71bc41ab7a61600.zip
[CI] Replace parted with lsblk
parted hangs waiting for user input (see examples below) on Debian and Ubuntu nodes which have created a cinder volume on lvm, causing POST_FAILURE of the entire CI job. Zun (Cinder iSCSI LVM) jobs are affected. parted seemingly tries to interpret contents of the created volume and fails miserably. Since there is no reason why we would need to see the output of parted specifically, this patch is switching to use lsblk to simply list visible block devices. Along with the rest of the commands, this should be just the right level of detail. And we avoid having parted interpret internals of otherwise opaque block devices. Example issues: Warning: Not all of the space available to /dev/mapper/cinder--volumes-cinder--volumes--pool appears to be used, you can fix the GPT to use all of the space (an extra 9732096 blocks) or continue with the current setting? Fix/Ignore? Warning: Not all of the space available to /dev/mapper/cinder--volumes-cinder--volumes--pool-tpool appears to be used, you can fix the GPT to use all of the space (an extra 9732096 blocks) or continue with the current setting? Fix/Ignore? Warning: Not all of the space available to /dev/mapper/cinder--volumes-cinder--volumes--pool_tdata appears to be used, you can fix the GPT to use all of the space (an extra 9732096 blocks) or continue with the current setting? Fix/Ignore? Change-Id: I7beecf2dd6c49c8934722cf22efa74e920ecb060
Diffstat (limited to 'tests/get_logs.sh')
-rw-r--r--tests/get_logs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/get_logs.sh b/tests/get_logs.sh
index a6e471cb4..9919ff12a 100644
--- a/tests/get_logs.sh
+++ b/tests/get_logs.sh
@@ -29,7 +29,7 @@ copy_logs() {
df -h > ${LOG_DIR}/system_logs/df.txt
free > ${LOG_DIR}/system_logs/free.txt
- parted -l > ${LOG_DIR}/system_logs/parted-l.txt
+ lsblk > ${LOG_DIR}/system_logs/lsblk.txt
mount > ${LOG_DIR}/system_logs/mount.txt
env > ${LOG_DIR}/system_logs/env.txt
systemctl status > ${LOG_DIR}/system_logs/systemctl_status.txt