Skip to content

Commit ac6051f

Browse files
committed
[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 (cherry picked from commit 654edef)
1 parent 501c8de commit ac6051f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/get_logs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ copy_logs() {
2929

3030
df -h > ${LOG_DIR}/system_logs/df.txt
3131
free > ${LOG_DIR}/system_logs/free.txt
32-
parted -l > ${LOG_DIR}/system_logs/parted-l.txt
32+
lsblk > ${LOG_DIR}/system_logs/lsblk.txt
3333
mount > ${LOG_DIR}/system_logs/mount.txt
3434
env > ${LOG_DIR}/system_logs/env.txt
3535

0 commit comments

Comments
 (0)