Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / qa / mds / test_mdstable_failures.sh
1 #!/bin/bash -x
2
3 for f in `seq 1 8`
4 do
5     echo testing failure point $f
6     pushd . ; cd $bindir ; ./ceph -c $conf mds tell \* injectargs "--mds_kill_mdstable_at $f" ; popd
7     sleep 1  # wait for mds command to go thru
8     bash -c "pushd . ; cd $bindir ; sleep 10 ; ./init-ceph -c $conf start mds ; popd" &
9     touch $f
10     ln $f $f.link
11     sleep 10
12 done
13