Bug 809934

Summary: powertop2tuned parser fails
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: tunedAssignee: Jan Vcelak <jvcelak>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: jkaluza, jskarvad, jvcelak, pknirsch, tsmetana, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-17 09:45:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
reproducer none

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.