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 1191775 - ERROR tuned.utils.commands: Executing hdparm error: [Errno 2] No such file or directory
Summary: ERROR tuned.utils.commands: Executing hdparm error: [Errno 2] No such file...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tuned
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: Tereza Cerna
URL:
Whiteboard:
Depends On:
Blocks: 1190654
TreeView+ depends on / blocked
 
Reported: 2015-02-11 23:26 UTC by Scott Dodson
Modified: 2019-02-12 16:28 UTC (History)
4 users (show)

Fixed In Version: tuned-2.5.1-1.el7
Doc Type: Bug Fix
Doc Text:
Cause: Tuned requires hdparm tool for some functionality, but Tuned is noarch package and hdparm tool doesn't exist on all architectures. That's why hdparm cannot be specified as Tuned dependency in RPM and calls of hdparm can fail. Consequence: If hdparm package is not installed, Tuned could output a lot of errors that hdparm tool is missing. Fix: Handling of hdparm was improved in Tuned disk plugin. Result: Now if hdparm tool is missing, Tuned outputs one warning to its log and all future hdparm settings are ignored.
Clone Of:
Environment:
Last Closed: 2015-11-19 12:21:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch (838 bytes, application/mbox)
2015-02-11 23:26 UTC, Scott Dodson
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2375 0 normal SHIPPED_LIVE tuned bug fix and enhancement update 2015-11-19 10:51:42 UTC

Description Scott Dodson 2015-02-11 23:26:15 UTC
Created attachment 990699 [details]
patch

Description of problem:
Several tuned profiles adjust harddrive spindown intervals via the hdparm command. There's a note in the specfile that hdparm isn't available on s390x but it's available on x86_64 and should be included as a dependency or the code updated not to call it.

Version-Release number of selected component (if applicable):
tuned-2.4.1-1.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. yum remove hdparm
2. yum install tuned
3. tuned-adm profile throughput-performance
4. grep ERROR /var/log/tuned/tuned.log


Actual results:
2015-02-11 10:26:51,689 ERROR    tuned.utils.commands: Executing hdparm error: [Errno 2] No such file or directory
2015-02-11 10:26:51,717 ERROR    tuned.utils.commands: Executing hdparm error: [Errno 2] No such file or directory
2015-02-11 10:26:51,721 ERROR    tuned.utils.commands: Executing hdparm error: [Errno 2] No such file or directory
2015-02-11 10:48:18,016 ERROR    tuned.utils.commands: Executing hdparm error: [Errno 2] No such file or directory



Expected results:
no errors, hdparm is installed

Additional info:

Comment 2 Jaroslav Škarvada 2015-02-12 09:14:29 UTC
Unfortunately it is not as easy as it seems. Tuned is noarch, and we want to keep it noarch as long as possible. Thus the non arch package can be build on any arch and conditionals proposed in your patch maybe useless/wrong in this case. AFAIK there is no support in RPM for optional deps so there are probably two possibilities:

- keep it as loose deps, i.e. as is
- make it arch package, it means build/package/store the same binary bits multiple times just with different deps in header.

Comment 3 Jaroslav Škarvada 2015-06-16 16:03:41 UTC
I improved it a bit in upstream commmit:
https://git.fedorahosted.org/cgit/tuned.git/commit/?id=f35bdee22efc9b280e2a953d4264f6e1afa8d4d6

It reports now first error:
ERROR    tuned.utils.commands: Executing hdparm error: [Errno 2] No such file or directory
INFO     tuned.plugins.plugin_disk: hdparm command not found, ignoring future set_apm / set_spindown commands

and all future hdparms related command are ignored in the session.

Spindown and APM is not concern with SSDs, so maybe better not to bother users with this error. I will probably change INFO to WARN and drop the error completely, I am not 100% sure now. This is probably the best we can currently do about it.

Comment 4 Jaroslav Škarvada 2015-06-18 08:01:23 UTC
(In reply to Jaroslav Škarvada from comment #3)
> Spindown and APM is not concern with SSDs, so maybe better not to bother
> users with this error. I will probably change INFO to WARN and drop the
> error completely, I am not 100% sure now. This is probably the best we can
> currently do about it.

Fixed in upstream commit:
https://git.fedorahosted.org/cgit/tuned.git/commit/?id=e2837a5dfa20a8181b66db82da5722ebb60e8b02

Comment 8 errata-xmlrpc 2015-11-19 12:21:23 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-2375.html


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