facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if ! do_node $CLIENT1 $CHECKSTAT -a $DIR/$tdir/$tfile; then
error "open succeeded unexpectedly"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if ! do_node $CLIENT1 $CHECKSTAT -a $DIR/$tdir/$tfile; then
error "create succeeded unexpectedly"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if do_node $CLIENT1 $CHECKSTAT -a $DIR/$tdir/$tfile; then
error "unlink succeeded unexpectedly"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if ! do_node $CLIENT1 $CHECKSTAT -u \\\#$UID $file; then
error "setattr of UID succeeded unexpectedly"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if ! do_node $CLIENT1 $CHECKSTAT -g \\\#$UID $file; then
error "setattr of GID succeeded unexpectedly"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if ! do_node $CLIENT1 $CHECKSTAT -p 0644 $file; then
error "setattr of permission succeeded unexpectedly"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if ! do_node $CLIENT1 $CHECKSTAT -a $DIR/$tdir/$tfile; then
error "link should fail"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if ! do_node $CLIENT1 $CHECKSTAT -a $DIR/$tdir/$tfile; then
error "link should fail"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if do_node $CLIENT1 $CHECKSTAT -a $DIR/$tfile; then
error "rename should fail"
fi
facet_failover mds
client_evicted $CLIENT1 || error "$CLIENT1 not evicted"
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
if do_node $CLIENT1 $CHECKSTAT -a $DIR/$tfile; then
error "rename should fail"
fi
# recovery should fail due to missing client 2
client_evicted $CLIENT1 || return 1
+ wait_clients_import_state $CLIENT1 mds FULL || error "$CLIENT1 not up"
do_node $CLIENT1 $CHECKSTAT -p 0755 $DIR/$tfile && return 2
zconf_mount $CLIENT2 $DIR || error "mount $CLIENT2 $DIR fail"
vbr_activate_client $CLIENT2
client_evicted $CLIENT2 || return 4
# file from client2 should fail
+ wait_clients_import_state $CLIENT2 mds FULL || error "$CLIENT2 not up"
do_node $CLIENT2 $CHECKSTAT $DIR/$tfile-2-0 && error "$tfile-2-0 exists"
# All 50 files from client 1 should have been replayed