Bug 1020212 - Add Brick : "Permission denied error" for few files while file creation as non root user
Add Brick : "Permission denied error" for few files while file creation as no...
Status: CLOSED DEFERRED
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfs (Show other bugs)
2.1
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Bug Updates Notification Mailing List
storage-qa-internal@redhat.com
dht-add-brick
:
Depends On:
Blocks: 1286078
  Show dependency treegraph
 
Reported: 2013-10-17 05:56 EDT by senaik
Modified: 2015-11-27 05:38 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1286078 (view as bug list)
Environment:
Last Closed: 2015-11-27 05:36:44 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description senaik 2013-10-17 05:56:33 EDT
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 05:36:44 EST
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.