Fix some tests to be more robust
This commit is contained in:
parent
b6bec45d60
commit
c50e7dffa1
@ -26,6 +26,7 @@ trun "service multipathd stop"
|
||||
rpm -q device-mapper-multipath || yum install -y device-mapper-multipath
|
||||
trun "mpathconf --enable --with_multipathd y --user_friendly_names y"
|
||||
trun "service multipathd status"
|
||||
sleep 5
|
||||
|
||||
trun "multipath -F"
|
||||
sleep 5
|
||||
@ -44,6 +45,7 @@ trun "multipath -r"
|
||||
sleep 5
|
||||
tok "[[ -b /dev/mapper/$new_alias ]]"
|
||||
tok is_mpath $new_alias
|
||||
sleep 5
|
||||
|
||||
trun "multipath -F"
|
||||
sleep 5
|
||||
@ -51,4 +53,5 @@ trun "modprobe -r scsi_debug"
|
||||
trun "service multipathd stop"
|
||||
sleep 3
|
||||
trun "multipath -W"
|
||||
trun "rm /etc/multipath/bindings"
|
||||
tend
|
||||
|
@ -159,6 +159,7 @@ AA
|
||||
sleep 5s #multipathd return premature
|
||||
multipath -r
|
||||
multipathd -k'reconfigure'
|
||||
sleep 5s
|
||||
mpath_name_list=$(dmsetup table \
|
||||
| perl -ne 'print "$1 " if /(mpath[a-z0-9]+):[0-9 ]+multipath.*/')
|
||||
fi
|
||||
@ -217,6 +218,7 @@ AA
|
||||
service multipathd restart
|
||||
sleep 5s #multipathd return premature
|
||||
multipathd -k'reconfig'
|
||||
sleep 5s
|
||||
|
||||
mpath_name_list=$(dmsetup table | perl -ne 'print "$1 " if /(mpath[a-z0-9]+):[0-9 ]+multipath.*/')
|
||||
if [ "CHK${mpath_name_list}" != "CHK" ];then
|
||||
|
Loading…
Reference in New Issue
Block a user