submission parser or cpuinfo parser doesn't handle PowerKVM
Bug #1387843 reported by
Jeff Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Support Library |
Fix Released
|
High
|
Sylvain Pineau | ||
HEXR |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Note the following:
https:/
Here's CPU info for a PowerKVM VM:
processor : 0
cpu : POWER8E (raw), altivec supported
clock : 3458.000000MHz
revision : 2.0 (pvr 004b 0200)
timebase : 512000000
platform : pSeries
model : IBM pSeries (emulated by qemu)
machine : CHRP IBM pSeries (emulated by qemu)
When the submission was made, this was not parsed and thus no CPU data appears on the Public or private cert pages for this system.
Related branches
lp:~sylvain-pineau/checkbox/fix-1387843
- Daniel Manrique (community): Approve
- Checkbox Developers: Pending requested
-
Diff: 82 lines (+38/-4)3 files modifiedcheckbox-support/checkbox_support/parsers/cpuinfo.py (+7/-4)
checkbox-support/checkbox_support/parsers/tests/cpuinfo_data/ppc64el.txt (+9/-0)
checkbox-support/checkbox_support/parsers/tests/test_cpuinfo.py (+22/-0)
lp:checkbox/release
- Pierre Equoy: Approve
-
Diff: 99 lines (+8/-8)8 files modifiedcheckbox-ng/checkbox_ng/__init__.py (+1/-1)
checkbox-ng/setup.py (+1/-1)
checkbox-support/setup.py (+1/-1)
plainbox/plainbox/__init__.py (+1/-1)
plainbox/setup.py (+1/-1)
providers/plainbox-provider-checkbox/manage.py (+1/-1)
providers/plainbox-provider-resource-generic/manage.py (+1/-1)
providers/plainbox-provider-sru/manage.py (+1/-1)
affects: | checkbox → checkbox-support |
Changed in checkbox-support: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Sylvain Pineau (sylvain-pineau) |
Changed in checkbox-support: | |
milestone: | none → 0.14 |
Changed in checkbox-support: | |
status: | In Progress → Fix Committed |
Changed in checkbox-support: | |
status: | Fix Committed → Fix Released |
Changed in hexr: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The processor information is being (almost) correctly extracted from cpuinfo according to Ashley's powerpc updates:
<processors> >1</property> /property> revision" type="str" >2.0</property> version" type="str">pvr 004b 0200</property> >pSeries< /property> >3457</ property> >pSeries< /property>
<processor id="0" name="0">
<property name="count" type="str"
<property name="model" type="str">POWER8E (raw), altivec supported<
<property name="model_number" type="str">IBM pSeries (emulated by qemu)</property>
<property name="model_
<property name="model_
<property name="other" type="str">emulated by qemu</property>
<property name="platform" type="str"
<property name="speed" type="str"
<property name="type" type="str"
</processor>
</processors>
However, when running the submission through the newest parser I get:
$ plainbox dev parse submission </tmp/sub.xml >/tmp/sub.json support. parsers. submission. TestRun object at 0x7f21a13ecb38>,) {} bzr/trunk/ checkbox- support/ checkbox_ support/ parsers/ submission. py", line 308, in publishEvent notify( event) bzr/trunk/ checkbox- support/ checkbox_ support/ parsers/ submission. py", line 242, in notify bzr/trunk/ checkbox- support/ checkbox_ support/ parsers/ submission. py", line 216, in notify handler( **self. kwargs) bzr/trunk/ checkbox- support/ checkbox_ support/ parsers/ submission. py", line 687, in setProcessorState processor[ "cache" ], other=processor ["other" ],
viERROR:root:Error running event handler for 'test_run' with args (<checkbox_
Traceback (most recent call last):
File "/src/checkbox/
listener.
File "/src/checkbox/
notify(event)
File "/src/checkbox/
self.
File "/src/checkbox/
cache=
KeyError: 'cache'
Also, Sylvain found that the architecture's name is mutating:
17:37 < spineau> roadmr: sounds crazy but it seems that somebody decided to
rename ppc64el to ppc64le /lists. debian. org/debian- powerpc/ 2014/08/ msg00040. html).
value= "ppc64el" />
(https:/
17:37 < spineau> roadmr: only ppc64le is properly recognized by the parser
17:37 < spineau> roadmr: and guess what the submission has, <architecture