Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1351536

Summary: [RFE] Don't communicate via DBus when daemon = 0
Product: Red Hat Enterprise Linux 7 Reporter: Tereza Cerna <tcerna>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: jeder, jskarvad
Target Milestone: rcKeywords: FutureFeature, Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.7.0-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 07:28:09 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 Tereza Cerna 2016-06-30 09:19:38 UTC
Description of problem:
=======================
When no daemon is in configuration file, it is useless to try communicate via DBus.

Version-Release number of selected component (if applicable):
=============================================================
tuned-2.5.1-4.el7_2.3.noarch

How reproducible:
=================
always

Steps to Reproduce:
===================
# systemctl status tuned | grep Active
   Active: active (running) since Thu 2016-06-30 04:29:24 EDT; 8min ago
# cat /etc/tuned/tuned-main.conf | grep daemon
daemon = 0
# systemctl restart tuned
# systemctl status tuned | grep Active
   Active: inactive (dead) since Thu 2016-06-30 05:10:13 EDT; 3s ago
# tuned-adm profile balanced
Cannot talk to Tuned daemon via DBus. Is Tuned daemon running?
Trying to (re)start tuned...
Tuned (re)started, changes applied.

Actual results:
===============
Tuned try to communicate via DBus

Expected results:
=================
When there is no daemon in configuration file, it can't communicate via dbus. So it can't try it, it is useless.

Comment 2 Jaroslav Škarvada 2016-07-14 16:07:34 UTC
It has been already implemented in the tuned-adm code, but unfortunately it didn't work due to silly typo in the code.

Fixed by the following upstream commit:
https://git.fedorahosted.org/cgit/tuned.git/commit/?id=b70a93dd8aea23759a5b273d4f36cdf4cdbb6ea9

Comment 3 Jaroslav Škarvada 2016-07-14 16:11:42 UTC
And also optimization of the check code:
https://git.fedorahosted.org/cgit/tuned.git/commit/?id=e9c8815c0e172fdf06aa71d419e7d4a15eb83726

Comment 7 errata-xmlrpc 2016-11-04 07:28:09 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-2016-2479.html