cpuinfo on ppc64el breaks cpuinfo_resource

Bug #1296956 reported by Daniel Manrique
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Resource
Fix Released
High
Ashley Lai
Checkbox Support Library
Fix Released
High
Ashley Lai

Bug Description

ubuntu@elco-02:~$

Running cpuinfo_resource on that system says:

$ ./cpuinfo_resource
Traceback (most recent call last):
  File "./cpuinfo_resource", line 56, in <module>
    sys.exit(main())
  File "./cpuinfo_resource", line 50, in main
    parser.run(result)
  File "/usr/lib/python3/dist-packages/checkbox_support/parsers/cpuinfo.py", line 162, in run
    speed = processor["speed"][:-3]
TypeError: 'int' object is not subscriptable

/proc/cpuinfo is simply this:

$ cat /proc/cpuinfo
processor : 0
cpu : POWER7 (architected), altivec supported
clock : 4284.000000MHz
revision : 2.1 (pvr 004a 0201)

processor : 1
cpu : POWER7 (architected), altivec supported
clock : 4284.000000MHz
revision : 2.1 (pvr 004a 0201)

timebase : 512000000
platform : pSeries
model : IBM pSeries (emulated by qemu)
machine : CHRP IBM pSeries (emulated by qemu)

Tags: scripts

Related branches

Daniel Manrique (roadmr)
Changed in checkbox:
importance: Undecided → High
Revision history for this message
Daniel Manrique (roadmr) wrote :

This was originally about plainbox breaking, but that was really bug 1297906. This is now only about cpuinfo problems on ppc64el.

summary: - cpuinfo on ppc64el breaks plainbox and cpuinfo_resource
+ cpuinfo on ppc64el breaks cpuinfo_resource
description: updated
tags: removed: plainbox
Ashley Lai (alai)
Changed in checkbox:
assignee: nobody → ashley (alai)
Jeff Lane  (bladernr)
Changed in checkbox:
assignee: ashley (alai) → nobody
assignee: nobody → ashley (alai)
Zygmunt Krynicki (zyga)
Changed in checkbox:
status: New → In Progress
Revision history for this message
Ashley Lai (alai) wrote :

Output with this fix:
$ ./cpuinfo_resource
bogomips: 0
cache: 0
count: 2
model: POWER7 (architected), altivec supported
model_number:
model_revision:
model_version: 2.1 (pvr 004a 0201)
other:
platform: pSeries
speed: 4283
type: pSeries

I will open a separate bug to remove the blank entries. This bug was to fix the errors shown above.

Daniel Manrique (roadmr)
Changed in checkbox:
status: In Progress → Fix Committed
Zygmunt Krynicki (zyga)
Changed in checkbox:
milestone: none → plainbox-provider-resource-generic-0.3
Zygmunt Krynicki (zyga)
Changed in plainbox-provider-resource:
milestone: none → 0.3
Changed in checkbox:
milestone: plainbox-provider-resource-generic-0.3 → none
Changed in plainbox-provider-resource:
status: New → Fix Committed
assignee: nobody → ashley (alai)
importance: Undecided → High
Zygmunt Krynicki (zyga)
Changed in checkbox-support:
importance: Undecided → High
status: New → Fix Committed
milestone: none → 0.2
assignee: nobody → ashley (alai)
Zygmunt Krynicki (zyga)
Changed in checkbox-support:
status: Fix Committed → Fix Released
Zygmunt Krynicki (zyga)
Changed in plainbox-provider-resource:
status: Fix Committed → Fix Released
Zygmunt Krynicki (zyga)
no longer affects: checkbox
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.