Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1362481 - Cannot get info of a profile
Summary: Cannot get info of a profile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tuned
Version: 24
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-08-02 10:47 UTC by James Hogarth
Modified: 2016-08-18 00:50 UTC (History)
3 users (show)

Fixed In Version: tuned-2.7.1-1.fc24 tuned-2.7.1-1.fc23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1362521 (view as bug list)
Environment:
Last Closed: 2016-08-10 07:22:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description James Hogarth 2016-08-02 10:47:03 UTC
Description of problem:
Using the directive tuned-adm profile_info results in a stack trace and no information

Version-Release number of selected component (if applicable):
tuned-2.7.0-2.fc24.noarch

How reproducible:
Always

Steps to Reproduce:
1. tuned-adm profile_info

Actual results:
[root@server conf.d]# tuned-adm profile_info
Profile name:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.py", line 42, in _idle
    self._action_exit_code = self._action(*self._action_args, **self._action_kwargs)
  File "/usr/lib/python2.7/site-packages/tuned/admin/admin.py", line 136, in _action_dbus_profile_info
    return self._controller.exit(self._print_profile_info(self._controller.profile_info(profile)))
  File "/usr/lib/python2.7/site-packages/tuned/admin/admin.py", line 121, in _print_profile_info
    print(ret[1])
NameError: global name 'ret' is not defined

^CTraceback (most recent call last):
  File "/usr/sbin/tuned-adm", line 88, in <module>
    result = admin.action(action_name, **options)
  File "/usr/lib/python2.7/site-packages/tuned/admin/admin.py", line 72, in action
    res = self._controller.run()
  File "/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.py", line 62, in run
    self._main_loop.run()
  File "/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py", line 576, in run
    raise KeyboardInterrupt
KeyboardInterrupt


Expected results:
Details about the profile

Additional info:
Can list the available profiles fine:

[root@server conf.d]# 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

Comment 1 Jaroslav Škarvada 2016-08-02 12:22:52 UTC
Thanks for the report, it's regression, we hadn't test for it, upstream commit fixing the problem:
https://git.fedorahosted.org/cgit/tuned.git/commit/?id=1f365e4f364439091caf4a85e91ba72c9ce6f309

Comment 2 Fedora Update System 2016-08-02 14:38:12 UTC
tuned-2.7.1-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a4a205237e

Comment 3 Fedora Update System 2016-08-04 01:55:28 UTC
tuned-2.7.1-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a4a205237e

Comment 4 Fedora Update System 2016-08-09 13:48:36 UTC
tuned-2.7.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b248910e48

Comment 5 Fedora Update System 2016-08-09 22:22:45 UTC
tuned-2.7.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b248910e48

Comment 6 Fedora Update System 2016-08-10 07:22:51 UTC
tuned-2.7.1-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2016-08-18 00:49:59 UTC
tuned-2.7.1-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


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