From 07a5d9e1e103c8e3ab69283711ee0832d469e145 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Thu, 10 Mar 2016 14:32:03 +0530 Subject: snapshot: Use svc->manager during glusterd restart Instead of using svc->start, we should use svc->manager as it takes care of initializing svc too, and both starts and stops snapd as needed. Change-Id: I3d3afdf4c4203bee3b790a017b820339fd376af6 BUG: 1316437 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/13665 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Rajesh Joseph --- tests/bugs/snapshot/bug-1316437.t | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/bugs/snapshot/bug-1316437.t (limited to 'tests') diff --git a/tests/bugs/snapshot/bug-1316437.t b/tests/bugs/snapshot/bug-1316437.t new file mode 100644 index 00000000000..30a221e3171 --- /dev/null +++ b/tests/bugs/snapshot/bug-1316437.t @@ -0,0 +1,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; -- cgit