Bug 1028978 - Samba update creating multiple entries of rhs-samba.conf in smb.conf
Summary: Samba update creating multiple entries of rhs-samba.conf in smb.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: samba
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 2.1.2
Assignee: Jose A. Rivera
QA Contact: Lalatendu Mohanty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-11 12:04 UTC by Lalatendu Mohanty
Modified: 2015-05-13 16:30 UTC (History)
6 users (show)

Fixed In Version: samba-3.6.9-167.6.el6rhs
Doc Type: Bug Fix
Doc Text:
Previously after a Red Hat Storage update, multiple entries of the configuration line "include = /etc/samba/rhs-samba.conf" were seen in smb.conf file. With this update, the update process ensures that only a single entry of this line is present in the smb.conf file.
Clone Of:
Environment:
Last Closed: 2014-02-25 08:02:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC

Description Lalatendu Mohanty 2013-11-11 12:04:55 UTC
Description of problem:

Samba package update is creating multiple entries of rhs-samba.conf in smb.conf
ie. each samba update it is creating additional entries of "include = /etc/samba/rhs-samba.conf" in smb.conf where as it should just create one entry
and if the entry is there it should more entries for subsequent updates.

Issue is in the spec file of samba (rhs). The grep string should have been grep -vq "include = $RHSCONF" instead of grep -vq 'include = $RHSCONF' as below code snippet.  

%post
# bug fix rhbz#1012711
SMBCONF="%{_sysconfdir}/samba/smb.conf"
RHSCONF="%{_sysconfdir}/samba/rhs-samba.conf"

if grep -vq 'include = $RHSCONF' $SMBCONF
then


Version-Release number of selected component (if applicable):

samba-3.6.9-160.7.el6

How reproducible:

Always

Steps to Reproduce:
1. Install RHS with samba version samba-3.6.9-160.6.el6 and update samba package tosamba-3.6.9-160.7.el6
2. 
3.

Actual results:

you can find two entries of include = /etc/samba/rhs-samba.conf

Expected results:

There should only one entry

Additional info:

Comment 1 Lalatendu Mohanty 2013-11-11 12:23:50 UTC
IMO this bug is a must fix bug for U2 because when we will update samba package in U2 (if any) it will create more entries and it will look ugly

Comment 3 Vivek Agarwal 2013-12-19 05:25:55 UTC
Fixed with new samba build: samba-3.6.9-167.5.el6rhs

Comment 4 Gowrishankar Rajaiyan 2013-12-19 06:24:42 UTC
Please set priority.

Comment 5 Lalatendu Mohanty 2013-12-26 11:03:12 UTC
Verified the bug with samba-common.x86_64 0:3.6.9-167.9.el6rhs (updated from samba-common.x86_64 0:3.6.9-167.8.el6rhs) and samba update is no more creating multiple entries. Hence marking this bug as verified.

Comment 6 Pavithra 2014-01-06 11:01:18 UTC
Can you please review the doc text for technical accuracy?

Comment 7 Raghavendra Talur 2014-01-06 11:09:58 UTC
Doc text is accurate.

Comment 9 errata-xmlrpc 2014-02-25 08:02:45 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/RHEA-2014-0208.html


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