The /etc/samba/smb.conf file is set immutable. This need to be taken into account in the spec file when doing an update or remove action.
Version-Release number of selected component (if applicable):
All versions of samba-common on the RHEL5.x baseline that I can think of
How reproducible:
Steps to Reproduce:
1. Do a yum update on samba-common
2.
3.
Actual results:
[~]# yum update samba-common
Loaded plugins: changelog, downloadonly, kmod, protectbase, rhnplugin, security,
: versionlock
0 packages excluded due to repository protections
Skipping security plugin, no data
Reading version lock configuration
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package samba-common.i386 0:3.0.33-3.15.el5_4.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
samba-common i386 3.0.33-3.15.el5_4.1 rhel-i386-server-5 8.7 M
Total size: 8.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : samba-common 1/2
Error unpacking rpm package samba-common-3.0.33-3.15.el5_4.1.i386
error: unpacking of archive failed on file /etc/samba/smb.conf: cpio: rename
Failed:
samba-common.i386 0:3.0.33-3.15.el5_4.1
Complete!
Expected results:
root@CPK01R-02 ~]# yum update samba-common
Loaded plugins: changelog, downloadonly, kmod, protectbase, rhnplugin, security,
: versionlock
0 packages excluded due to repository protections
Skipping security plugin, no data
Reading version lock configuration
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package samba-common.i386 0:3.0.33-3.15.el5_4.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
samba-common i386 3.0.33-3.15.el5_4.1 rhel-i386-server-5 8.7 M
Total size: 8.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : samba-common 1/2
Cleanup : samba-common 2/2
Description of problem:
The /etc/samba/smb.conf file is set immutable. This need to be taken into account in the spec file when doing an update or remove action.
Version-Release number of selected component (if applicable):
All versions of samba-common on the RHEL5.x baseline that I can think of
How reproducible:
Steps to Reproduce:
1. Do a yum update on samba-common
2.
3.
Actual results:
[~]# yum update samba-common 3.15.el5_ 4.1 set to be updated
Loaded plugins: changelog, downloadonly, kmod, protectbase, rhnplugin, security,
: versionlock
0 packages excluded due to repository protections
Skipping security plugin, no data
Reading version lock configuration
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package samba-common.i386 0:3.0.33-
--> Finished Dependency Resolution
Dependencies Resolved
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
Package Arch Version Repository Size
=======
Updating:
samba-common i386 3.0.33-3.15.el5_4.1 rhel-i386-server-5 8.7 M
Transaction Summary ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
=======
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total size: 8.7 M 3.0.33- 3.15.el5_ 4.1.i386 smb.conf: cpio: rename
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : samba-common 1/2
Error unpacking rpm package samba-common-
error: unpacking of archive failed on file /etc/samba/
Failed: 3.15.el5_ 4.1
samba-common.i386 0:3.0.33-
Complete!
Expected results:
root@CPK01R-02 ~]# yum update samba-common 3.15.el5_ 4.1 set to be updated
Loaded plugins: changelog, downloadonly, kmod, protectbase, rhnplugin, security,
: versionlock
0 packages excluded due to repository protections
Skipping security plugin, no data
Reading version lock configuration
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package samba-common.i386 0:3.0.33-
--> Finished Dependency Resolution
Dependencies Resolved
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= === ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
Package Arch Version Repository Size
=======
Updating:
samba-common i386 3.0.33-3.15.el5_4.1 rhel-i386-server-5 8.7 M
Transaction Summary ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
=======
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total size: 8.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : samba-common 1/2
Cleanup : samba-common 2/2
Updated: 3.15.el5_ 4.1
samba-common.i386 0:3.0.33-
Complete!
Additional info:
[ ~]# chattr -i /etc/samba/smb.conf
[ ~]# yum update samba-common