Bug 1275507

Summary: CTDB hook script: idmap backend entry to be modified in ctdb hook script as per new samba settings
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: surabhi <sbhaloth>
Component: sambaAssignee: Michael Adam <madam>
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: madam, nlevinki
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-17 14:10:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description surabhi 2015-10-27 06:44:44 UTC
Description of problem:

When we start a ctdb volume , the following entries gets added to smb.conf handled by hook script.(/var/lib/glusterd/hooks/1/start/post/S29CTDBsetup.sh)

clustering = Yes
idmap backend = tdb2

When we do testparm it gives error WARNING: The "idmap backend" option is deprecated 

The option should be like :
idmap config * : backend = tdb2


Version-Release number of selected component (if applicable):
glusterfs-3.7.1-16.el7rhgs.x86_64
samba-4.2.4-4.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1.Do ctdb setup
2.start the volume
3.execute testparm

Actual results:
Warning from testparm for idmap backend option which is deprecated now.

Expected results:
the id map backend option should be modified to idmap config * : backend = tdb2

Additional info:

Comment 2 Michael Adam 2015-12-16 23:15:40 UTC
This (In reply to surabhi from comment #0)
> Description of problem:
> 
> When we start a ctdb volume , the following entries gets added to smb.conf
> handled by hook script.(/var/lib/glusterd/hooks/1/start/post/S29CTDBsetup.sh)
> 
> clustering = Yes
> idmap backend = tdb2

This is not done always but only if 'clustering = yes' is not found
in the smb.conf file. The whole mechanism is fragile though and
conceptually wrong and should be removed completely. This is treated
in upstream bug #1290151. They have already been pushed to upstream
master.

> When we do testparm it gives error WARNING: The "idmap backend" option is
> deprecated 
> 
> The option should be like :
> idmap config * : backend = tdb2

My assessment is that this is currently irrelevant:
It is only cosmetic (a warning), and we should rather
proceed with bringing bug #1290151 to downstream.

My 2 cents.