test_suite: after split brain resolution wait for device to appear

This commit is contained in:
Frank Liepold 2014-03-31 08:36:16 +02:00
parent 6ef6998c02
commit acc1529954
1 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,8 @@ function switch2primary_correct_split_brain
sleep 15 sleep 15
marsadm_do_cmd $new_primary "log-purge-all --force" "$res" || lib_exit 1 marsadm_do_cmd $new_primary "log-purge-all --force" "$res" || lib_exit 1
fi fi
marsadm_do_cmd $new_primary "wait-resource" "$res is-device-on" || \
lib_exit 1
lib_vmsg " $switch2primary_flow_msg_prefix: check whether new primary $new_primary works standalone" lib_vmsg " $switch2primary_flow_msg_prefix: check whether new primary $new_primary works standalone"
switch2primary_check_standalone_primary $new_primary $res switch2primary_check_standalone_primary $new_primary $res
if [ $network_cut -eq 1 ]; then if [ $network_cut -eq 1 ]; then