Bug 852580 - Change in files ownership and flags after re-balancing
Change in files ownership and flags after re-balancing
Status: CLOSED DUPLICATE of bug 852361
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd (Show other bugs)
x86_64 Linux
medium Severity high
: ---
: ---
Assigned To: shishir gowda
Sudhir D
Depends On: 840919
  Show dependency treegraph
Reported: 2012-08-28 21:23 EDT by Vidya Sakar
Modified: 2013-12-08 20:33 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 840919
Last Closed: 2012-09-13 05:52:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Vidya Sakar 2012-08-28 21:23:05 EDT
+++ This bug was initially created as a clone of Bug #840919 +++

Created attachment 598672 [details]
rebalancing log

Description of problem:
after rebalancing on a extended volume(bricks added) the rights of the files in the volume changed to- ownership:root
for example:
-rw-r--r--. 1 root root     589824 Jul 17 18:00 368a8bf9-9990-43a1-8b1c-34d30c740628
and they were like this, before the rebalancing:
-rwxrwxrwx. 1 qemu qemu     589824 Jul 17 11:57 e168ec07-a1e2-485d-aa9d-a07d508e9f6c
Also every new file created in that volume is created with 
-rw-r--r--. 1 root root, although the up directory is owned by qemu and before the rebalancing every new file was getting the proper flags and ownership.


Version-Release number of selected component (if applicable):
glusterfs-3.3.0-2.fc16- it is fedora package on Fedora 16

How reproducible:
add bricks to stripe-replicated-distributed volume and rebalance it.

Steps to Reproduce:
1.Add bricks to striped-replicated-distributed volume
2. Make volume layer-fix 
3. Make volume rebalance start
Actual results:
all the files in the volume and all the newly created change their owner to root and flags to "-rw-r--r--."- so 644.

Expected results:
to retain the behaviour before the rebalancing- every newly created file was owned by user:qemu, group:qemu. and flags 777.

Additional info:
all the time, i got:
[2012-07-17 13:08:38.671157] E [stripe-helpers.c:271:stripe_ctx_handle] 0-dis-magnetics-3-stripe-2: Failed to get stripe-size
[2012-07-17 13:08:38.671209] E [stripe.c:212:stripe_lookup_cbk] 0-dis-magnetics-3-stripe-2: Error getting fctx info from dict
but in the source rpm ChangeLog i saw that these two were already addressed in source commits. I'm not sure if these are related.

During the rebalancing there were some failures but i'm not sure if they're related to the root ownership thing- i'm sending the whole rebalancing log.

================All the failures on one host.
  Node Rebalanced-files          size       scanned      failures         status
                               ---------      -----------   -----------   -----------   -----------   ------------
                               localhost                0            0         1710          133      completed
                                   host1              151   1225920000         1857            0      completed
                                   host2              252   3509917696         2109           32      completed
Comment 2 Amar Tumballi 2012-09-03 23:47:01 EDT
shishir, can you check if this is the same bug which we fixed recently?
Comment 3 shishir gowda 2012-09-13 05:52:39 EDT
This seems to be a duplicate of bug 852361.
The issue was with rebalance creating destination files with root ownership. It would set the ownership to original after migration was complete.
But, since the user did not run with force option, the free space check (dst has less space than src) prevents migration, the link file would end up with wrong permissions.

*** This bug has been marked as a duplicate of bug 852361 ***

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