summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnush Shetty <anush@gluster.com>2009-11-17 23:29:30 -0800
committerVijay Bellur <vijay@gluster.com>2009-12-01 18:27:16 +0530
commitdbdc896671d9abfbdce83829b7b638426101b304 (patch)
treedfdd226770f5e5ba73eccdf9073a37de29c2a5f8
parent79f87dcc8e97b3eec283be94c725b074287e6e00 (diff)
Bug #339
Signed-off-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--339/regr/spec_files/server1.vol22
-rwxr-xr-x339/regr/testcase38
2 files changed, 60 insertions, 0 deletions
diff --git a/339/regr/spec_files/server1.vol b/339/regr/spec_files/server1.vol
new file mode 100644
index 0000000..fd013b6
--- /dev/null
+++ b/339/regr/spec_files/server1.vol
@@ -0,0 +1,22 @@
+volume posix
+ type storage/posix
+ option directory /share/tickets/339/regr/export/export1
+end-volume
+
+volume locks
+ type features/locks
+ subvolumes posix
+end-volume
+
+volume brick
+ type performance/io-threads
+ option thread-count 8
+ subvolumes locks
+end-volume
+
+volume server
+ type protocol/server
+ option transport-type tcp
+ option auth.addr.brick.allow *
+ subvolumes brick
+end-volume \ No newline at end of file
diff --git a/339/regr/testcase b/339/regr/testcase
new file mode 100755
index 0000000..b90d54b
--- /dev/null
+++ b/339/regr/testcase
@@ -0,0 +1,38 @@
+#!/bin/bash
+#
+# Copyright (c) 2006-2009 Gluster, Inc. <http://www.gluster.com>
+# This file is part of GlusterFS.
+#
+# GlusterFS is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published
+# by the Free Software Foundation; either version 3 of the License,
+# or (at your option) any later version.
+#
+# GlusterFS is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
+
+
+description="# [ 339 ] glusterfsd fails to start when there are no active interfaces having address in the address family configured"
+comments="# [ 339 ] glusterfsd fails to start when there are no active interfaces having address in the address family configured"
+
+source ../../init
+
+start_glusterfs --no-clients
+
+LOG_MSG=$(tail $LOGDIR/$(hostname)-server1.log | grep 'glusterfs: Successfully started' | wc -l)
+
+
+if [ $LOG_MSG -eq 0 ]; then
+ not_ok $description
+ comment $comments
+else
+ ok $description
+fi
+
+cleanup_glusterfs \ No newline at end of file