Bug 1368376

Summary: power-usage-report .:. List Index out of range
Product: [Fedora] Fedora Reporter: customercare
Component: fatraceAssignee: Kevin Fenzi <kevin>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: kevin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 21:21:55 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
laptop powertop output none

Description customercare 2016-08-19 08:35:30 UTC
Description of problem:

power-usage-report crashes while generating report. see below.

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

Name        : fatrace
Arch        : x86_64
Epoch       : 0
Version     : 0.10
Release     : 2.fc23

How reproducible:

100%

Steps to Reproduce:

simply start it without options.

Actual result:

[root@eve marius]# power-usage-report 
Measurement will begin in 5 seconds. Please make sure that the
computer is idle, i. e. do not press keys, start or operate programs, and that
programs are not busy with active tasks other than the one you want to examine.
Starting measurement for 60 seconds...
Loaded 0 prior measurements
RAPL device for cpu 0
RAPL device for cpu 0
Devfreq not enabled
Preparing to take measurements
  unknown op '{'
Measurement complete. Generating report...
Traceback (most recent call last):
  File "/usr/sbin/power-usage-report", line 199, in <module>
    main()
  File "/usr/sbin/power-usage-report", line 196, in main
    powertop_report(output['powertop'])
  File "/usr/sbin/power-usage-report", line 173, in powertop_report
    while not lines[i]:
IndexError: list index out of range

Comment 1 Kevin Fenzi 2016-08-19 18:24:45 UTC
Is powertop installed?

Comment 2 customercare 2016-08-19 22:15:04 UTC
yes, it's installed.

Comment 3 Kevin Fenzi 2016-08-20 16:54:23 UTC
Would you be willing to file this upstream? 

https://bugs.launchpad.net/fatrace

Or would you prefer I do so?

It sounds like our powertop is outputting something that it's not expecting (although it works fine for me here, so it may be hardware specific).

Comment 4 customercare 2016-08-20 18:05:05 UTC
If you rhave an account there, please report it. I don't own an account there.

Do you need any output of my powertop, which btw. works as expected from what i can see.

Comment 5 Kevin Fenzi 2016-08-21 17:16:29 UTC
Yeah, can you do: 

powertop --csv=/tmp/powertop.out --time=60

and attach the /tmp/powertop.out?

Comment 6 customercare 2016-11-17 17:54:50 UTC
I'm so sorry Kevin, i forgot about your request :(

Fedora 24 DESKTOP : 4.8.6-201.fc24.x86_64

modprobe cpufreq_stats failed0 geladene vorherige Messungen
RAPL device for cpu 0
RAPL device for cpu 0
Devfreq not enabled
Das Vornehmen von Messungen wird vorbereitet
  unknown op '{'
Segmentation fault

NO Outputfile generated,

Fedora 24 LAPTOP : 4.8.6-201.fc24.x86_64

modprobe cpufreq_stats failed70 geladene vorherige Messungen
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
Devfreq not enabled
Das Vornehmen von Messungen wird vorbereitet
  unknown op '{'
To show power estimates do 266 measurement(s) connected to battery only
1 Messung(en) mit einer Dauer von je 60 Sekunde(n) wird/werden vorgenommen.
PowerTOP outputing using base filename /tmp/powertop.csv

Output of Laptop follows.

Comment 7 customercare 2016-11-17 17:55:18 UTC
Created attachment 1221616 [details]
laptop powertop output

Comment 8 customercare 2016-11-17 18:02:19 UTC
10:1 there is a check missing, that decides if a battery is in the device at all :D

Comment 9 Kevin Fenzi 2016-11-17 20:52:32 UTC
Filed upstream as https://bugs.launchpad.net/fatrace/+bug/1642735

Comment 10 Fedora End Of Life 2016-11-25 09:31:00 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Fedora End Of Life 2016-12-20 21:21:55 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.