Bug 1020212 - Add Brick : "Permission denied error" for few files while file creation as non root user
Summary: Add Brick : "Permission denied error" for few files while file creation as no...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfs
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bug Updates Notification Mailing List
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: dht-add-brick
Depends On:
Blocks: 1286078
TreeView+ depends on / blocked
 
Reported: 2013-10-17 09:56 UTC by senaik
Modified: 2015-11-27 10:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1286078 (view as bug list)
Environment:
Last Closed: 2015-11-27 10:36:44 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description senaik 2013-10-17 09:56:33 UTC
Description of problem:
=======================
After Add Brick , while creating files , few files give "Permission denied" error (as non root user)

Version-Release number of selected component (if applicable):
============================================================


How reproducible:
==================
Reproduced the issue twice till now 


Steps to Reproduce:
===================

1.Create a 2x2 dist-replicate volume and start it

2.Mount the volume and give permissions 

mkdir /mnt/sampl/
mount -t glusterfs 10.70.34.85:/sample /mnt/sampl/
chmod 777 /mnt/sampl/

3.Add 2 more bricks to the volume 

4.As non root user (ABC)create some files on the mount point . Few files give "permission denied" error 

[ABC@dhcp-0-180 sampl]$ for i in {1..150} ; do dd if=/dev/urandom of=z"$i" bs=10M count=1; done
dd: opening `z1': Permission denied
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 1.16157 s, 9.0 MB/s
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 1.1455 s, 9.2 MB/s
dd: opening `z4': Permission denied
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 1.14959 s, 9.1 MB/s
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 1.16159 s, 9.0 MB/s
1+0 records in
1+0 records out
10485760 bytes (10 MB) copied, 1.16912 s, 9.0 MB/s
dd: opening `z8': Permission denied


Actual results:
=============== 
Few files giving "permission denied" error after add brick 


Expected results:
================
Permissions must be retained after add brick and file creation must be successful. 


Additional info:
===============
[root@boost ~]# gluster v i sample
 
Volume Name: sample
Type: Distributed-Replicate
Volume ID: e581bc57-2079-4fce-bf08-e67cea0d484e
Status: Started
Number of Bricks: 3 x 2 = 6
Transport-type: tcp
Bricks:
Brick1: 10.70.34.86:/rhs/brick1/qw1
Brick2: 10.70.34.85:/rhs/brick1/qw2
Brick3: 10.70.34.88:/rhs/brick1/qw3
Brick4: 10.70.34.89:/rhs/brick1/qw4
Brick5: 10.70.34.89:/rhs/brick1/qw5
Brick6: 10.70.34.86:/rhs/brick1/qw6

Comment 4 Susant Kumar Palai 2015-11-27 10:36:44 UTC
Cloning to 3.1. To be fixed in future release.


Note You need to log in before you can comment on or make changes to this bug.