Bug 1013151 - Mount of Samba shares using glusterfs vfs plugin fail from a new smb client after glusterfs update
Summary: Mount of Samba shares using glusterfs vfs plugin fail from a new smb client a...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: samba
Version: 2.1
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ---
: ---
Assignee: rjoseph
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: package
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-27 22:37 UTC by Harshavardhana
Modified: 2015-12-03 17:17 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Accessing a Samba share may fail if GlusterFS is updated while Samba is running. Workaround: On each node where GlusterFS is updated, restart Samba services after GlusterFS is updated.
Clone Of:
Environment:
Last Closed: 2015-12-03 17:17:38 UTC
Embargoed:


Attachments (Terms of Use)

Description Harshavardhana 2013-09-27 22:37:05 UTC
Description of problem:

Dynamic linking to 'gfapi.so.0' is necessary. A static compilation leads to issues like when gfapi makes a new release, so Samba VFS plugin has to be updated and released as well. This is a problem a static buggy code or a regression would reside in samba vfs until it an eventual re-release is made compiling against the newest. It would be ideally better to have a dynamic dependency so that only 'gfapi' would need updates and all samba needs is a 'restart' 

Version-Release number of selected component (if applicable):
samba-glusterfs-3.6.9-160.3.el6rhs.x86_64.rpm (71,196 bytes)
samba-3.6.9-160.3.el6rhs.src.rpm (29,500,289 bytes)

How reproducible:
Always

Steps to Reproduce:
1. # ldd /usr/lib64/samba/vfs/glusterfs.so
        linux-vdso.so.1 =>  (0x00007fff9e1ff000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fa98aab1000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003ecca00000)

2. # strings /usr/lib64/samba/vfs/glusterfs.so | grep -v struct | grep glfs | wc -l
63


Actual results:
No dynamic linking

Expected results:
Dynamic linking with libgfapi.so.0

Comment 5 surabhi 2015-02-11 12:07:59 UTC
When we upgrade RHS where RHS upgrade happens but there is no samba upgrade , the mount of gluster volume fail on the new client and the error seen is as follows:
[2015-02-11 11:19:57.901463] W [xlator.c:191:xlator_dynload] 0-xlator: /usr/lib64/glusterfs/3.6.0.40/xlator/mount/api.so: cannot open shared object file: No such file or directory
[2015-02-11 11:19:57.901505] E [glfs.c:191:create_master] 0-glfs: master xlator for volume1 initialization failed

But the access of volume from the same clients would still work and any new mounts on the same client would work fine.
The issue is seen only when the new client tries to mount the volume.
The workaround for the issue is to restart smb service.

This needs to be fixed for 3.0.4.

Comment 6 Jose A. Rivera 2015-02-11 15:12:41 UTC
Updated the doc text with suggested changes from me, Ira, and Günther.

Comment 7 Bhavana 2015-02-11 16:58:15 UTC
The suggested information is added in the Release notes as a known issue:

http://docbuilder.usersys.redhat.com/22629/#Red_Hat_Storage

Do review the same.

Thanks.

Comment 8 Jose A. Rivera 2015-02-11 17:13:45 UTC
Looks good to me! :)

Comment 10 Vivek Agarwal 2015-12-03 17:17:38 UTC
Thank you for submitting this issue for consideration in Red Hat Gluster Storage. The release for which you requested us to review, is now End of Life. Please See https://access.redhat.com/support/policy/updates/rhs/

If you can reproduce this bug against a currently maintained version of Red Hat Gluster Storage, please feel free to file a new report against the current release.


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