Bug 858434 - multiple entries in smb.conf
Summary: multiple entries in smb.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: samba
Version: 2.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Raghavendra Talur
QA Contact: Lalatendu Mohanty
URL:
Whiteboard:
Depends On: 844895 852140 994727
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-18 22:22 UTC by Scott Haines
Modified: 2015-01-22 15:29 UTC (History)
8 users (show)

Fixed In Version: glusterfs-3.4.0.35.1u2rhs-1
Doc Type: Bug Fix
Doc Text:
Previously, when a volume was started or stopped, Samba hook scripts modified gluster share entries in Samba configuration file. When user force starts a volume and it is in the started state, a second entry was added to the configuration file without checking for existing entry. This led to duplicate entries which led to configuration inconsistencies. Now, with this fix a check for existing entries is done before an entry is added to the Samba configuration file.
Clone Of: 844895
Environment:
Last Closed: 2013-11-27 15:20:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1769 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #1 2013-11-27 20:17:39 UTC

Comment 2 Amar Tumballi 2012-11-29 10:31:13 UTC
https://code.engineering.redhat.com/gerrit/#/c/124/

Comment 5 Raghavendra Talur 2013-10-18 10:20:52 UTC
Patch posted for review at
https://code.engineering.redhat.com/gerrit/14241 - rhs-2.1-u1 branch
https://code.engineering.redhat.com/gerrit/14240 - rhs-2.1 branch

Comment 7 Lalatendu Mohanty 2013-10-28 11:56:48 UTC
Tested with glusterfs-server-3.4.0.36rhs-1.el6rhs.x86_64, 

Created two volumes named dis-rep1, dis-rep12, started these volumes multiple times with force as below. There is only single entry for each volume in smb.conf. Hence marking the bug as verfied.

[root@bvt-rhs1 .unsupported]# gluster v start dis-rep12 force
volume start: dis-rep12: success
[root@bvt-rhs1 .unsupported]# gluster v start dis-rep12 force
volume start: dis-rep12: success
[
[root@bvt-rhs1 .unsupported]# gluster v start dis-rep1 force
volume start: dis-rep1: success
[root@bvt-rhs1 .unsupported]# gluster v start dis-rep1 force


less /etc/samba/smb.conf

[gluster-dis-rep1]
comment = For samba share of volume dis-rep1
vfs objects = glusterfs
glusterfs:volume = dis-rep1
glusterfs:logfile = /var/log/samba/glusterfs-dis-rep1.log
glusterfs:loglevel = 7
path = /
read only = no
guest ok = yes






[gluster-dis-rep12]
comment = For samba share of volume dis-rep12
vfs objects = glusterfs
glusterfs:volume = dis-rep12
glusterfs:logfile = /var/log/samba/glusterfs-dis-rep12.log
glusterfs:loglevel = 7
path = /
read only = no
guest ok = yes

Comment 10 errata-xmlrpc 2013-11-27 15:20:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1769.html


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