Bug 1292751
Summary: | (RHEL7) hook script for CTDB should not change Samba config | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Michael Adam <madam> |
Component: | samba | Assignee: | Michael Adam <madam> |
Status: | CLOSED ERRATA | QA Contact: | surabhi <sbhaloth> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rhgs-3.1 | CC: | hgowtham, nlevinki, rcyriac, rhs-bugs, rjoseph, rtalur, sbhaloth, storage-qa-internal |
Target Milestone: | --- | Keywords: | Triaged, ZStream |
Target Release: | RHGS 3.1.2 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.7.5-13 | Doc Type: | Bug Fix |
Doc Text: |
Cause: S29CTDB hook scripts modify Samba's global configuration and restart Samba when the ctdb lock volume is started or stopped. Specifically 'clustering = yes' and 'idmap backend = tdb2' are added and removed.
Consequence: This can have undesired effects. Manual changes to the smb.conf file may get overwritten. It is not reliably possible to use a custom idmap configuration. More seriously, a samba installation is either clustered or not cluster. If this changes, data access may be lost, and data corruption can happen.
Fix: Stop the S29CTDB hook scripts from changing Samba configuration and restarting Samba.
Result: Manual changes to the global section of smb.conf are safe, and data corruption is prevented.
|
Story Points: | --- |
Clone Of: | 1292605 | Environment: | |
Last Closed: | 2016-03-01 06:14:06 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: | |||
Bug Depends On: | 1290151, 1292254, 1292605 | ||
Bug Blocks: |
Comment 3
rjoseph
2015-12-19 05:36:15 UTC
Please add the fixed in Version Verified the BZ on RHEL7 with following build : glusterfs-3.7.5-13.el7rhgs.x86_64 samba-4.2.4-12.el7rhgs.x86_64 Following steps are executed: 1.Create a ctdb lock volume as per admin guide instructions 2.Update the S29CTDBSetup and S29teardown hook scripts to add the ctdb volume name in meta=all. 3.started the ctdb volume 4.Verified the mount point /gluster/lock 5.Verified the entries in smb.conf , there should not be any entry created by ctdb volume start(via hook script): the clustering=yes, idmap-backend entry is not added to smb.conf via hook script. 6. Also verified after adding the clustering=yes in smb.conf and stopping ctdb volume does not remove the entry from smb.conf. 7.Started ctdb services , ctdb starts successfully and starts smb service. 8. Again stopped and started the ctdb volume , the smbd service is not restarted. Marking the BZ verified. 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. https://rhn.redhat.com/errata/RHBA-2016-0192.html |