Bugzilla – Bug 888599
powertop2tuned does not work
Last modified: 2016-06-12 08:59:01 UTC
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0 trying to run >powertop2tuned my_powersave I get the following output: Running PowerTOP, please wait... Traceback (most recent call last): File "/usr/bin/powertop2tuned", line 321, in <module> sys.exit(p.generate(args['new_profile'], args['merge_profile'], args['enable'])) File "/usr/bin/powertop2tuned", line 263, in generate data, plugins = self.parseHTML(enable_tunings) File "/usr/bin/powertop2tuned", line 224, in parseHTML parser.feed(data) File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed self.goahead(0) File "/usr/lib/python2.7/HTMLParser.py", line 161, in goahead k = self.parse_starttag(i) File "/usr/lib/python2.7/HTMLParser.py", line 327, in parse_starttag self.handle_starttag(tag, attrs) File "/usr/bin/powertop2tuned", line 86, in handle_starttag if self.lastStartTag == "div" and dict(attrs)["id"] == "tuning": KeyError: 'id' Reproducible: Always Steps to Reproduce: 1. run 'powertop2tuned my_powersave' as root 2. run 'tuned-adm list' as root Actual Results: no profile is generated Expected Results: profile should appear after a 'tuned-adm list'
Looks similar with the bug: https://bugzilla.redhat.com/show_bug.cgi?id=1129800 @p.drouand, would you mind to help take a look? Thank you!
Sound like a python scripting error. The patch purposed on rhbc would probably fix it.
If someone can test it. home:posophe:branches:Base:System/tuned
Still relevant these days ?
I can run powertop2tuned my_powersave and it works. However, now tuned-adm list does not work: >tuned-adm list Cannot talk to Tuned daemon via DBus. Is Tuned daemon running? 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