RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 841050 - Updating from RHEL 6.2 to 6.3 overwrites KSM config files without warning
Summary: Updating from RHEL 6.2 to 6.3 overwrites KSM config files without warning
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Michal Novotny
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-18 01:21 UTC by David Kovalsky
Modified: 2014-07-01 12:01 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-08 13:34:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Kovalsky 2012-07-18 01:21:04 UTC
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)


qemu-kvm-0.12.1.2-2.295.el6.x86_64

Comment 1 Suqin Huang 2012-07-19 02:14:20 UTC
Hi David,

I don't think this is qemu-kvm bug, change component to kernel.

Thanks
Suqin

Comment 2 David Kovalsky 2012-07-19 09:38:35 UTC
I believe it is qemu-kvm, RPM thinks the same :)

# rpm -qf /etc/ksmtuned.conf
qemu-kvm-0.12.1.2-2.295.el6.x86_64

# rpm -qf /etc/sysconfig/ksm 
qemu-kvm-0.12.1.2-2.295.el6.x86_64


To be clear, I haven't checked the specfile, but I believe this is a packaging bug in qemu-kvm specfile.

Comment 3 Ademar Reis 2012-07-27 14:03:41 UTC
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?

Comment 4 Suqin Huang 2012-08-08 05:25:00 UTC
Hi Devid,
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

result:
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

Comment 5 Ademar Reis 2012-08-08 13:34:58 UTC
- 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.


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