Red Hat Bugzilla – Bug 841050
Updating from RHEL 6.2 to 6.3 overwrites KSM config files without warning
Last modified: 2014-07-01 08:01:05 EDT
I've upgraded a KVM host machine from 6.2 to 6.3 and come to notice that /etc/sysconfig/ksm and /etc/ksmtuned.conf were back at their defaults.
No warning, no .rpmnew/.rpmold files creaed.
Overwriting root config files is bad from user PoV, KSM config files should be marked as %config(noreplace)
I don't think this is qemu-kvm bug, change component to kernel.
I believe it is qemu-kvm, RPM thinks the same :)
# rpm -qf /etc/ksmtuned.conf
# rpm -qf /etc/sysconfig/ksm
To be clear, I haven't checked the specfile, but I believe this is a packaging bug in qemu-kvm specfile.
I checked the .spec file and both files are marked %config(noreplace) there since the package was imported into RHEL6, so this shouldn't happen.
Can someone from QE please try to reproduce it?
Testcase is simple:
- install RHEL6.2
- change something in the /etc/ksmtuned.conf and /etc/sysconfig/ksm files
- upgrade to RHEL6.3
- check if the files have been ovewritten and there are no .rpmsave or .rpmnew files
Maybe it's an installer bug?
I can not reproduce this bug.
1). edit /etc/ksmtuned.conf and /etc/sysconfig/ksm
2). update qemu-kvm-0.12.1.2-2.209.el6.x86_64 to qemu-kvm-0.12.1.2-2.295.el6.x86_64
or update all packages from rhel6.2 to rhel6.3
ksmtuned.conf and ksm is not overwritten, it keep the same as the one before update.
if I remove old qemu-kvm and install new one, .rpmsave will be created
- both files are marked %config(noreplace)
- QE couldn't reproduce it
If you reproduce it, please reopen this bug and let us know how to reproduce it.