diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2014-12-04 07:20:35 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2014-12-09 22:17:58 -0800 |
commit | 48b4aa06f85f791efc66871007e7a5ed58b16237 (patch) | |
tree | 54d5437fecd73fcc3bd676872ae84600659102d7 /tests | |
parent | 1f67254c4d6e6b44a8deee47b66e57d92adeffde (diff) |
protocol/server: No root-squash checks for self-heal pid
Backport of http://review.gluster.org/9231
Problem:
Self-heal pid used to be -1 which was colliding with gsyncd. Gsyncd
was not checked for root-squash authentication. Recently self-heal
pid changed to -6, but root-squash authentication is not disabled
for this.
Fix:
disable root-squash authentication for self-heal
Change-Id: I594a732d800902ce805f849813631da36d8d3dc7
BUG: 1170514
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/9234
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Tested-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic/afr/root-squash-self-heal.t | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/basic/afr/root-squash-self-heal.t b/tests/basic/afr/root-squash-self-heal.t new file mode 100644 index 00000000000..36c65fcd230 --- /dev/null +++ b/tests/basic/afr/root-squash-self-heal.t @@ -0,0 +1,26 @@ +#!/bin/bash + +. $(dirname $0)/../../include.rc +. $(dirname $0)/../../volume.rc + +cleanup; + +TEST glusterd +TEST pidof glusterd +TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1} +TEST $CLI volume set $V0 performance.stat-prefetch off +TEST $CLI volume set $V0 self-heal-daemon off +TEST $CLI volume set $V0 server.root-squash on +TEST $CLI volume start $V0 +TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 --no-root-squash=yes --use-readdirp=no +TEST kill_brick $V0 $H0 $B0/${V0}0 +HEAL_FILES=0 +echo abc > $M0/a + +TEST $CLI volume start $V0 force +EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" afr_child_up_status $V0 0 +find $M0 | xargs stat > /dev/null +TEST $CLI volume set $V0 self-heal-daemon on +EXPECT_WITHIN $HEAL_TIMEOUT "0" afr_get_pending_heal_count $V0 + +cleanup |