Bug 888599 - powertop2tuned does not work
Summary: powertop2tuned does not work
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: 201407*
Hardware: i386 openSUSE 13.2
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Denisart Benjamin
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-23 15:42 UTC by Robby Engelmann
Modified: 2016-06-12 08:59 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robby Engelmann 2014-07-23 15:42:33 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'
Comment 1 Yifan Jiang 2014-12-23 08:08:53 UTC
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!
Comment 2 Denisart Benjamin 2014-12-23 13:30:34 UTC
Sound like a python scripting error. The patch purposed on rhbc would probably fix it.
Comment 3 Denisart Benjamin 2014-12-23 13:55:15 UTC
If someone can test it.
home:posophe:branches:Base:System/tuned
Comment 4 Denisart Benjamin 2016-06-12 08:39:26 UTC
Still relevant these days ?
Comment 5 Robby Engelmann 2016-06-12 08:59:01 UTC
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