Bug 1012711
Summary: | upgrading from RHS-2.0 causes 'kernel oplocks = no' to remain in /etc/samba/smb.conf.rpmnew | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Anand Avati <aavati> |
Component: | samba | Assignee: | Raghavendra Talur <rtalur> |
Status: | CLOSED ERRATA | QA Contact: | Lalatendu Mohanty <lmohanty> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | unspecified | CC: | asriram, chrisw, grajaiya, sdharane, shaines, vagarwal |
Target Milestone: | --- | Keywords: | ZStream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | samba-3.6.9-160.6.el6rhs | Doc Type: | Bug Fix |
Doc Text: |
Previously, while upgrading from Red Hat Storage 2.0 to Red Hat Storage 2.1, new settings were only stored in smb.conf.rpmnew and were not applied. The new settings mentioned in smb.conf.rpmnew are critical and if they are not applied leads to poor performance of Red Hat Storage volume accessed using Samba. Now, all Red Hat Storage specific Samba settings are added to a secondary configuration file which will be automatically updated on every upgrade. This secondary configuration file overrides any settings that were defined in primary smb.conf file. With this update, upgrades will not require any manual intervention to do a manual merge of existing and new recommended settings for Samba every time a upgrade is done.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-27 15:40:52 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
Anand Avati
2013-09-27 01:13:11 UTC
Per bug triage 10/17. I am was testing this fix and come across a case where the "include = "/etc/samba/rhs-samba.conf"" got introduced in to a wrong place i.e. after [homes] where as it should be before the said section. Below are the steps to reproduce 1. Install RHS 2.0 U6 2. Yum update (LIVE) and reboot (as there was a kernel update) 3. Update to RHS2.1 4. Update to RHS2.1U1 (update Samba and gluster packages) The modified smb.conf after step #4 looks as below [homes] # ------------------------------- RHS Options ------------------------------- # # The following line includes RHS-specific configuration options. Be # careful with this line. include = "/etc/samba/rhs-samba.conf" comment = Home Directories browseable = no writable = yes ; valid users = %S ; valid users = MYDOMAIN\%S Because of the wrong entry "testparm -s" is also reports error. Look for "Can't find include file "/etc/samba/rhs-samba.conf"" in below ouput [root@rhsauto022 samba]# testparm -s Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[homes]" Can't find include file "/etc/samba/rhs-samba.conf" Processing section "[printers]" Loaded services file OK. Server role: ROLE_STANDALONE [global] workgroup = MYGROUP server string = Samba Server Version %v log file = /var/log/samba/log.%m max log size = 50 idmap config * : backend = tdb cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes print ok = Yes browseable = No Verified the bug with samba-3.6.9-160.6.el6rhs. It is working as expected Below are the steps to verify the fix case -1 1. Install RHS 2.0 U6 2. Yum update (LIVE) and reboot (as there was a kernel update) 3. Update to RHS2.1 and save testparm -s output 4. Update to RHS2.1U1 (update Samba and gluster packages). save testparm -s output 5. Check smb.conf and testparm -s output. 6. compare with testparm -s output from step #3 and #4 case -2 1. Install RHS 2.0 U6 , create volume, start it, verify that it is accessible. Save testparm -s output 2. Yum update (LIVE) and reboot (as there was a kernel update) 3. Update to RHS2.1. Create a volume, start it, verify that it is accessible. Save testparm -s output 4. Update to RHS2.1U1 (update Samba and gluster packages). save testparm -s output 5. Check smb.conf and testparm -s output. 6. compare with testparm -s output from step #1, #3 and #4 case -3 1. Install RHS 2.1, create volume, start it, verify that it is accessible. Save testparm -s output 2. Yum update (LIVE) and reboot (as there was a kernel update) 3. Update to RHS2.1U1 (update Samba and gluster packages). save testparm -s output. 4. Check smb.conf and testparm -s output. 5. compare with testparm -s output from step #1, and #3 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 |