blob: e29cbe43db6cc5513bb54e7b5aa8325becf04dd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
## Test case for BZ-1168803 - snapd option validation should not fail if the
#snapd is not running
. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
cleanup;
## Start glusterd
TEST glusterd;
TEST pidof glusterd;
## create volume
TEST $CLI volume create $V0 $H0:$B0/${V0}{1,2};
TEST $CLI volume set $V0 features.uss enable
## Now set another volume option, this should not fail
TEST $CLI volume set $V0 features.file-snapshot on
## start the volume
TEST $CLI volume start $V0
## Kill snapd daemon and then try to stop the volume which should not fail
kill $(ps aux | grep glusterfsd | grep snapd | awk '{print $2}')
TEST $CLI volume stop $V0
cleanup;
|