Bug 1304688 - tuned-adm fails with a python traceback when run as non-root
Summary: tuned-adm fails with a python traceback when run as non-root
Keywords:
Status: CLOSED DUPLICATE of bug 1095142
Alias: None
Product: Fedora
Classification: Fedora
Component: tuned
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-04 11:15 UTC by Yaniv Kaul
Modified: 2016-07-20 13:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-20 13:37:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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