Bug 1017366

Summary: rpm verify of tuned package fails
Product: Red Hat Enterprise Linux 6 Reporter: Hubert Kario <hkario>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.5CC: jeder, jskarvad, mnavrati, psklenar, rvokal, tcerna
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-0.2.19-15.el6 Doc Type: Bug Fix
Doc Text:
Previously, certain files from the tuned packages could be incorrectly considered to differ from the RPM database. As a consequence, RPM verification performed by running the "rpm -V tuned" command could fail and it could be indicated that the files were changed despite not being touched by the user. This update excludes several attributes, such as size, md5sum, and mtime, from the verification of the files, and RPM verification no longer fails.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 07:14:51 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 Hubert Kario 2013-10-09 17:43:17 UTC
Description of problem:
When verifying the package using rpm -V the verification fails

Version-Release number of selected component (if applicable):
tuned-0.2.19-11.el6.1.noarch
tuned-0.2.19-13.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. rpm -V tuned

Actual results:

for -11:
....L....  c /etc/ktune.d/tunedadm.conf
....L....  c /etc/sysconfig/ktune
S.5....T.  c /etc/tune-profiles/active-profile
....L....  c /etc/tuned.conf

for -13:
....L.... c /etc/sysconfig/ktune
S.5....T. c /etc/tune-profiles/active-profile
....L.... c /etc/tuned.conf

Expected results:
no errors

Additional info:

Comment 2 Jaroslav Škarvada 2013-10-10 08:25:30 UTC
(In reply to Hubert Kario from comment #0)
> for -11:
> ....L....  c /etc/ktune.d/tunedadm.conf
> ....L....  c /etc/sysconfig/ktune
> S.5....T.  c /etc/tune-profiles/active-profile
> ....L....  c /etc/tuned.conf
> 
> for -13:
> ....L.... c /etc/sysconfig/ktune
> S.5....T. c /etc/tune-profiles/active-profile
> ....L.... c /etc/tuned.conf
> 
I think there is no regression. It is caused by (non-optimal) design of the RHEL-6 tuned - it updates symlinks during profile change. So probably both versions behaves the same if same profile is selected. We can disable the check for the affected files.

Comment 3 Hubert Kario 2013-10-10 09:00:36 UTC
(In reply to Jaroslav Škarvada from comment #2)
> I think there is no regression. It is caused by (non-optimal) design of the
> RHEL-6 tuned - it updates symlinks during profile change. So probably both
> versions behaves the same if same profile is selected. We can disable the
> check for the affected files.

Yes, since the file are supposed to be changed, excluding them from the check would be good idea.

Comment 11 Tereza Cerna 2015-03-04 11:07:57 UTC
==============================
Verified in version:
    tuned-0.2.19-15.el6.noarch
PASSED
==============================

# rpm -V tuned
# echo $?
0

==================================
Reproduced in version:
    tuned-0.2.19-13.el6_6.1.noarch
FAIL
==================================

# rpm -V tuned
....L....  c /etc/ktune.d/tunedadm.conf
....L....  c /etc/sysconfig/ktune
S.5....T.  c /etc/tune-profiles/active-profile
....L....  c /etc/tuned.conf
# echo $?
1

Comment 12 errata-xmlrpc 2015-07-22 07:14:51 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.

https://rhn.redhat.com/errata/RHBA-2015-1376.html