summaryrefslogtreecommitdiffstats
path: root/tests/bugs/snapshot/bug-1279327.t
blob: de1b3885a1cc7f2714f3f52bcd9bf78e5daa0ce1 (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)/../../snapshot.rc
. $(dirname $0)/../../volume.rc

cleanup;
TEST verify_lvm_version;
TEST glusterd;
TEST pidof glusterd;

TEST init_n_bricks 3
TEST setup_lvm 3

TEST $CLI volume create $V0 $H0:$L1
TEST $CLI volume start $V0
TEST $CLI volume quota $V0 enable
TEST $CLI volume tier $V0 attach replica 2 $H0:$L2 $H0:$L3

TEST $CLI snapshot create snap1 $V0 no-timestamp
TEST $CLI snapshot activate snap1

EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Yes" get_snap_brick_status snap1

#Take a clone and verify it inherits snapshot's snap-max-hard-limit
TEST $CLI snapshot clone clone1 snap1
TEST $CLI volume start clone1
EXPECT 'Started' volinfo_field clone1 'Status';

cleanup;