From dbdc896671d9abfbdce83829b7b638426101b304 Mon Sep 17 00:00:00 2001 From: Anush Shetty Date: Tue, 17 Nov 2009 23:29:30 -0800 Subject: Bug #339 Signed-off-by: Vijay Bellur --- 339/regr/spec_files/server1.vol | 22 ++++++++++++++++++++++ 339/regr/testcase | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 339/regr/spec_files/server1.vol create mode 100755 339/regr/testcase 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. +# 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 +# . + + +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 -- cgit