Bug 809934 - powertop2tuned parser fails
Summary: powertop2tuned parser fails
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: tuned
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Vcelak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 17:07 UTC by Jaroslav Škarvada
Modified: 2013-03-04 01:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-17 09:45:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
reproducer (33.77 KB, text/html)
2012-04-04 17:10 UTC, Jaroslav Škarvada
no flags Details

Description Jaroslav Škarvada 2012-04-04 17:07:52 UTC
Description of problem:
powertop2tuned parser failure.

Version-Release number of selected component (if applicable):
tuned-2.0.1

How reproducible:
Always on affected hardware (Apple).

Steps to Reproduce:
1. powertop2tuned -i powertop.html test
  
Actual results:
It fails.

Expected results:
It shouldn't fail.

Additional info:
Traceback (most recent call last):
  File "/bin/powertop2tuned", line 218, in <module>
    sys.exit(p.generate(new_profile))
  File "/bin/powertop2tuned", line 173, in generate
    profile = self.currentActiveProfile()
  File "/bin/powertop2tuned", line 102, in currentActiveProfile
    proc = Popen(["tuned-adm", "active"], stdout=PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Comment 1 Jaroslav Škarvada 2012-04-04 17:10:25 UTC
Created attachment 575185 [details]
reproducer

Comment 2 Jan Kaluža 2012-04-05 06:48:04 UTC
I think tuned-adm wasn't in PATH. Not saying it should show traceback in that case, but it's not bug with parsing.

Comment 3 Jaroslav Škarvada 2012-04-05 08:11:30 UTC
It worked fine now on my devel laptop. I really don't know why it failed on Apple when booted from the same LiveUSB as approx. 20 people did before without any problem. Thus we saved the powertop.html and retried on other f17 installed computer with the reproducer from comment 0 (unfortunately we didn't compare the backtraces). I will retry tomorrow on the f17 installed computer (where it failed) and let you know. I will also try to find contact and CC the person with Apple to retry and provide the backtrace.

Comment 4 Jaroslav Škarvada 2012-04-06 09:17:30 UTC
Got the problem, the powertop2tuned is in utils subpackage that is not required by base package, thus on the affacted machine, the base package was not installed. For now I fixed the requirements upstream. We could also move the powertop2tuned to base package but I think it better fits to utils subpackage.

There was probably another problem that was encountered by the person with Apple, because all packages were pre-installed on the image he used, so I am still trying to contact him.

Comment 5 Jaroslav Škarvada 2012-04-06 13:26:56 UTC
Originally affected machine: MacBook Air 2010, booted from Fedora 17 PM Test Day Live CD. Waiting for response from reporter.

Comment 6 Jaroslav Škarvada 2012-04-17 09:45:17 UTC
Contacted original reporter and the problem is not reproducible anymore, thus closing.


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