Bug 865302

Summary: tuned-adm Cannot read /var/run/tuned/tuned.pid: [Errno 2] No such file or director - should start
Product: [Fedora] Fedora Reporter: Jan Ščotka <jscotka>
Component: tunedAssignee: Jan Vcelak <jvcelak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 18CC: bugzilla, jkaluza, jskarvad, jvcelak, pknirsch, tsmetana, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.1.0-1.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-12 01:26:32 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:

Comment 1 Jan Ščotka 2012-10-11 07:58:15 UTC
Hi,
Sorry for noncomplete description :-)

When tuned not running
changing profiles (tuned-adm) causes error
Cannot read /var/run/tuned/tuned.pid: [Errno 2] No such file or directory: '/var/run/tuned/tuned.pid'

I think that command tuned-adm, should shouw better message (for example start tuned, before using tuned-adm)
or start tuned automatically when try to change profile, or other useful thing.
   Regards
   Honza

Comment 2 Jan Kaluža 2012-10-11 08:42:46 UTC
Do you run it as root?

Comment 3 Jan Ščotka 2012-10-11 08:48:54 UTC
Yes I do. I was root

Comment 5 Jaroslav Škarvada 2012-10-11 09:26:55 UTC
For jscotka: probably the same problem, in the test case prereq there is systemctl start tuned.service, so it needs to be run.

For refence 'cat pmtd-selinux-test':
echo -n "AVCs: "
ausearch -m avc -m user_avc -i
setenforce 1
for I in `tuned-adm list | grep "^- " | cut -d ' ' -f 2` ; do
  echo -n > /var/log/audit/audit.log
  tuned-adm active
  echo "* Switching to profile: $I"
  tuned-adm profile $I
  sleep 5
  echo -n "AVCs: "
  ausearch -m avc -m user_avc -i
done

Comment 6 Jan Vcelak 2012-11-07 11:59:48 UTC
Resolved upstream, we are switching tuned-adm to DBus. The update is comming soon.

Comment 7 Jan Vcelak 2012-11-07 12:37:34 UTC
*** Bug 858075 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2012-12-03 11:04:51 UTC
tuned-2.1.0-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tuned-2.1.0-1.fc18

Comment 9 Jan Vcelak 2012-12-03 11:10:46 UTC
Resolved in:
tuned-2.1.0-1.fc18
tuned-2.1.0-1.fc19

Comment 10 Fedora Update System 2012-12-03 21:33:20 UTC
Package tuned-2.1.0-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tuned-2.1.0-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19556/tuned-2.1.0-1.fc18
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2012-12-06 10:32:11 UTC
tuned-2.1.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tuned-2.1.1-1.fc18

Comment 12 Fedora Update System 2013-01-12 01:26:34 UTC
tuned-2.1.1-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.