summaryrefslogtreecommitdiffstats
path: root/tests/bugs/snapshot/bug-1316437.t
blob: 30a221e3171cb98577ea48614e003afe6e70d503 (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

. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc
. $(dirname $0)/../../snapshot.rc

cleanup;

TEST glusterd

# Intentionally not carving lvms for this as we will not be taking
# snapshots in this testcase
TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}{1,2,3,4,5,6};

TEST $CLI volume start $V0;

TEST $CLI volume set $V0 features.uss enable;

EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Y' check_if_snapd_exist

killall glusterd glusterfsd glusterfs

SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}');
TEST ! [ $SNAPD_PID -gt 0 ];

glusterd

EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Y' check_if_snapd_exist

cleanup;