cpuinfo parser returns incorrect cpu count on s390x

Bug #1709892 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Support Library
Fix Released
High
Jeff Lane 

Bug Description

the cpuinfo resource runs on s390x and returns incorrect processor counts.

z13:
ubuntu@hwe0008:~$ cat /proc/cpuinfo
vendor_id : IBM/S390
# processors : 4
bogomips per cpu: 3033.00
max thread id : 0
features : esan3 zarch stfle msa ldisp eimm dfp etf3eh highgprs sie
cache0 : level=1 type=Data scope=Private size=128K line_size=256 associativity=8
cache1 : level=1 type=Instruction scope=Private size=96K line_size=256 associativity=6
cache2 : level=2 type=Data scope=Private size=2048K line_size=256 associativity=8
cache3 : level=2 type=Instruction scope=Private size=2048K line_size=256 associativity=8
cache4 : level=3 type=Unified scope=Shared size=65536K line_size=256 associativity=16
cache5 : level=4 type=Unified scope=Shared size=491520K line_size=256 associativity=30
processor 0: version = FF, identification = 128F67, machine = 2964
processor 1: version = FF, identification = 128F67, machine = 2964
processor 2: version = FF, identification = 128F67, machine = 2964
processor 3: version = FF, identification = 128F67, machine = 2964

cpu number : 0
cpu MHz dynamic : 5000
cpu MHz static : 5000

cpu number : 1
cpu MHz dynamic : 5000
cpu MHz static : 5000

cpu number : 2
cpu MHz dynamic : 5000
cpu MHz static : 5000

cpu number : 3
cpu MHz dynamic : 5000
cpu MHz static : 5000
ubuntu@hwe0008:~$ /usr/lib/plainbox-provider-resource-generic/bin/cpuinfo_resource
bogomips: -1
cache: -1
count: 1
model: s390x
platform: s390x
speed: -2
type: s390x

Related branches

Revision history for this message
Jeff Lane  (bladernr) wrote :

looks to be a very short/simple fix. the key is incorrect in the parser.

Changed in checkbox-support:
status: Confirmed → In Progress
Jeff Lane  (bladernr)
Changed in checkbox-support:
status: In Progress → Fix Committed
Changed in checkbox-support:
milestone: future → 0.36.0
Changed in checkbox-support:
status: Fix Committed → Fix Released
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.