Bug 1304688

Summary: tuned-adm fails with a python traceback when run as non-root
Product: [Fedora] Fedora Reporter: Yaniv Kaul <ykaul>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: jskarvad, jv+fedora, pknirsch, rcyriac, smanjara
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-20 13:37:27 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:

Description Yaniv Kaul 2016-02-04 11:15:41 UTC
Description of problem:
mini@ykaul-mini:/usr/lib/tuned$ tuned-adm list
DBus call to Tuned daemon failed
Traceback (most recent call last):
  File "/usr/sbin/tuned-adm", line 76, in <module>
    result = action(**options)
  File "/usr/lib/python2.7/site-packages/tuned/admin/admin.py", line 40, in list
    profile_names = map(lambda profile:(profile, ""), profile_names)
UnboundLocalError: local variable 'profile_names' referenced before assignment

mini@ykaul-mini:/usr/lib/tuned$ sudo tuned-adm list
Available profiles:
- balanced                    - General non-specialized tuned profile
- desktop                     - Optmize for the desktop use-case
- latency-performance         - Optimize for deterministic performance at the cost of increased power consumption
- network-latency             - Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network performance
- network-throughput          - Optimize for streaming network throughput.  Generally only necessary on older CPUs or 40G+ networks.
- powersave                   - Optimize for low power consumption
- throughput-performance      - Broadly applicable tuning that provides excellent performance across a variety of common server workloads.  This is the default profile for RHEL7.
- virtual-guest               - Optimize for running inside a virtual guest.
- virtual-host                - Optimize for running KVM guests
Current active profile: balanced

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

How reproducible:
Always

Steps to Reproduce:
1. Run tuned-adm list with a non-root user.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jaroslav Škarvada 2016-07-19 12:13:18 UTC
I think this should be fixed by tuned-2.7.0 that will be released soon. Tuned-2.7.0 switched to polkit.

Comment 2 Jaroslav Škarvada 2016-07-19 12:14:05 UTC
See bug 1095142 for details.

Comment 3 Jaroslav Škarvada 2016-07-20 13:37:27 UTC
Closing as dupe of bug 1095142. Feel free to reopen if the problem persists.

*** This bug has been marked as a duplicate of bug 1095142 ***