Bug 1268092 - samba-vfs-glusterfs share problems
samba-vfs-glusterfs share problems
Product: GlusterFS
Classification: Community
Component: gluster-smb (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Michael Adam
: Triaged
Depends On:
  Show dependency treegraph
Reported: 2015-10-01 15:36 EDT by Steve D
Modified: 2016-08-23 08:50 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-08-23 08:50:53 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 Steve D 2015-10-01 15:36:09 EDT
Description of problem:

I've shared a gluster volume using samba vfs with the options:
vfs objects = glusterfs
glusterfs:volume = test
path = /

I can do the following:
(Windows client):
-Create new directory
-Create new file -- an error pops up "Unable to create the file 'New Test Document.txt' The system cannot find the file specified.' BUT the file is created anyways and shows up in the directory immediately
-Create a new sub directory in the above directory
-Delete or rename any file
(Linux client)
-Create new directory
-Create a new file under sub-directory -- "Device or resource busy" BUT the file is created anyways - must refresh to see file in GUI
-Delete or rename any file

Can not do the following:
(Windows client)
-Edit the new txt file in notepad -- file opens but popup says 'The process cannot access the file because it is being used by another process.'
-Create a new file in the above new directory -- "Unable to create the file 'New Text Document.txt' The system cannot find the file specified", refreshing the directory doesn't list the file, but if samba is restarted the client can see the file.
(Linux client)
-Edit the new file -- "Unexpected error: Device or resource busy"

I've also shared the same volume with samba via a fuse mount, and have no issues performing any file operations.

Version-Release number of selected component (if applicable):
gluster 3.6.6
CentOS 7.1

How reproducible:

Steps to Reproduce:
1. Create Gluster volume
2. install samba-vfs-glusterfs
3. configure share for vfs (see below for share config)
4. configure 2nd share pointing to gluster fuse mount point to verify

Additional info:

smb.conf shares

comment = exporting gluster filesystem via fuse mount
path = /mnt/gluster/test
read only = no
writable = yes
write list = +users
browseable = yes
guest ok = yes
create mask = 0660
;directory mask = 0770
force directory mode = 0770
force group = users

comment = exporting gluster filesystem via gfapi
vfs objects = glusterfs
glusterfs:volume = test
glusterfs:logfile = /var/log/samba/glusterfs-test.%M.log
glusterfs:loglevel = 7
path = /
writable = yes
write list = +users
browseable = yes
guest ok = yes
create mask = 0660
;directory mask = 0770
force directory mode = 0770
force group = users

I have a default ACL on the gluster volume, as well as setgid.

# getfacl mount-test/
# file: mount-test/
# owner: root
# group: users
# flags: -s-
Comment 1 Michael Adam 2015-11-13 08:39:53 EST
I would need more info:
- full Samba configuration (all files, our output of 'testparm')
- log files of samba, especially also the vfs-gluster log

Could you also repeat the test on a vfs-glusterfs share
without the 'force group' and 'write list' options?
Just to check whether these are related.
Comment 2 Steve D 2015-11-13 11:35:34 EST
I was missing
"kernel share modes = No"
under the share definition.

I think the biggest hurdle is hard to find documentation. Someone on the mailing list helped me out with this, but it should be easy to find. With a Google search I can find the info in a couple blog posts(1)(2), but not in the Gluster docs.

Can you change this bug to a documentation bug so this gets fixed?

1. http://jonarcher.info/2014/09/gluster-cifs-zfs-kind-part-2/
2. https://lalatendumohanty.wordpress.com/2014/02/11/using-glusterfs-with-samba-and-samba-vfs-plugin-for-glusterfs-on-fedora-20/
Comment 3 Michael Adam 2015-11-15 15:54:57 EST
Recent versions of the vfs_glusterfs manual page have that documented:


It has also been brought to Samba 4.1 and 4.2:


Does that help?
Comment 4 rjoseph 2016-08-23 08:50:53 EDT
This bug is being closed as GlusterFS-3.6 is nearing its End-Of-Life and only important security bugs will be fixed. If you still face this bug with the newer GlusterFS versions, please open a new bug.

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