[Gluster-users] Hint SETATTR() => -1 (Operation not permitted)

Ale ale975 at gmail.com
Tue Jun 23 08:02:47 UTC 2015


Executing the current command:

lxc-usernsexec -m u:0:165536:1 -m u:9869:9869:1 -m g:0:165536:1 -m
g:9869:9869:1 -- chown 0:9869 /mnt/vm/lxc/test1

tail -f briks/mnt-gluster-vm.log
[2015-06-23 07:03:23.849805] I [server-rpc-fops.c:1720:server_setattr_cbk]
0-gv0-server: 28302177: SETATTR /lxc/test1
(3f68f357-32c5-42d4-bc61-78c4ae38fa93) ==> (Operation not permitted)

tail -f mnt-vm.log
[2015-06-23 07:03:23.850023] W
[client-rpc-fops.c:2145:client3_3_setattr_cbk] 2-gv0-client-0: remote
operation failed: Operation not permitted
[2015-06-23 07:03:23.850204] W
[client-rpc-fops.c:2145:client3_3_setattr_cbk] 2-gv0-client-1: remote
operation failed: Operation not permitted
[2015-06-23 07:03:23.850830] W [fuse-bridge.c:1079:fuse_setattr_cbk]
0-glusterfs-fuse: 46678940: SETATTR() /lxc/test1 => -1 (Operation not
permitted)

Alessandro

On Tue, Jun 23, 2015 at 1:15 AM, Vijay Bellur <vbellur at redhat.com> wrote:

> On Monday 22 June 2015 01:21 PM, Atin Mukherjee wrote:
>
>> As far as I know we would need privileged container otherwise extended
>> attribute support becomes unavailable. And gluster is built on
>> underlying file system which has extended attribute support.
>>
>>
> The call that seems to fail here is setattr and setxattr. So could it be a
> different problem?
>
>
>  On Jun 22, 2015 10:45 PM, "Ale" <ale975 at gmail.com
>> <mailto:ale975 at gmail.com>> wrote:
>>  >
>>  > Hi all,
>>  >
>>  > I'm  new to gluster, and recently I setup two server  to use with lxc.
>>  > From both server I'm able to mount the volume and do normal operation.
>>  >
>>  > When I try to create a unprivileged container where the path is
>> inside the gluster volume,  the operation fail because unable to do
>> chown operation.
>>  >
>>  > In detail lxc execute the following command:
>>  >
>>  > lxc-usernsexec -m u:0:165536:1 -m u:9869:9869:1 -m g:0:165536:1 -m
>> g:9869:9869:1 -- chown 0:9869 /mnt/vm/lxc/test1
>>  >
>>  > and the gluster log report the following error:
>>  >
>>  > [2015-06-22 16:58:44.065941] W
>> [client-rpc-fops.c:2145:client3_3_setattr_cbk] 2-gv0-client-0: remote
>> operation failed: Operation not permitted
>>  > [2015-06-22 16:58:44.066213] W
>> [client-rpc-fops.c:2145:client3_3_setattr_cbk] 2-gv0-client-1: remote
>> operation failed: Operation not permitted
>>  > [2015-06-22 16:58:44.066928] W [fuse-bridge.c:1079:fuse_setattr_cbk]
>> 0-glusterfs-fuse: 36942426: SETATTR() /lxc/test1 => -1 (Operation not
>> permitted)
>>  >
>>  > If I exec the same  command on the local filesystem, all works fine,
>> I'm running glusterfs 3.6.3 on ubuntu 14.04.
>>  >
>>  > Do you have any suggestion?
>>
>
> Can you check the brick log to determine the translator that might be
> reporting this error? I suspect that it could be stemming from posix.
>
> -Vijay
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150623/f2179d47/attachment.html>


More information about the Gluster-users mailing list