Merge lp:~roadmr/checkbox/pci-sys-id into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3729
Merged at revision: 3735
Proposed branch: lp:~roadmr/checkbox/pci-sys-id
Merge into: lp:checkbox
Diff against target: 79 lines (+14/-0)
6 files modified
providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist (+1/-0)
providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist (+1/-0)
providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist (+1/-0)
providers/plainbox-provider-checkbox/jobs/info.txt.in (+9/-0)
providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist (+1/-0)
providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist (+1/-0)
To merge this branch: bzr merge lp:~roadmr/checkbox/pci-sys-id
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+257551@code.launchpad.net

Commit message

providers:checkbox: Add ssid_attachment job

It attaches the PCI subsystem ID, this is to be collected for all
systems though it has special significance to uniquely identify a
specific configuration for some manufacturers only.

Also adds this job to relevant whitelists.

Description of the change

providers:checkbox: Add ssid_attachment job

It attaches the PCI subsystem ID, this is to be collected for all
systems though it has special significance to uniquely identify a
specific configuration for some manufacturers only.

Also adds this job to relevant whitelists.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I don't quite get the point of this change, can you explain please?

review: Needs Information
Revision history for this message
Daniel Manrique (roadmr) wrote :

Sure, I explained this below, and we can certainly change this if another approach would be better. But we do need to collect that information :(

One thing I could change is attaching the whole lspci -x output and doing the processing/heuristics on the server if you think it would make it clearer on the checkbox job side. I realize that just 4 hex digits without any other context is a bit cryptic. Let me know!

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

More discussion below.

review: Needs Information
Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, I created a more generic pci config data attachment, with the idea of then doing the parsing server-side.

I also noticed that this subsystem ID information is shown in lspci -vvnn (which we already have). Example (Notice that I'm running this on a Dell system, but we expect this to only make sense for HP):

$ lspci -x | awk 'NR==4{print $17 $16}'
060a

lspci -vvnn
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 09)
        Subsystem: Dell Device [1028:060a]
                                     ^^^^ IT'S THIS VALUE WE WANT

        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
        Latency: 0
        Capabilities: <access denied>

However I hesitate to change the way we're getting it since we got this information from the CE team and I'd prefer not to deviate from their data collection too much.

lp:~roadmr/checkbox/pci-sys-id updated
3728. By Daniel Manrique

providers: Add lspci_standard_config_attachment job to pertinent whitelists

3729. By Daniel Manrique

providers:checkbox: Add lspci_standard_config_attachment job

It attaches a dump of PCI standard configuration data for all
devices in the system.

This raw data is used to uniquely identify a specific configuration
for some manufacturers only, and may have other uses in the future.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist'
2--- providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist 2015-04-27 09:46:56 +0000
3+++ providers/plainbox-provider-certification-client/whitelists/client-cert.whitelist 2015-04-28 16:50:48 +0000
4@@ -401,6 +401,7 @@
5 dmidecode_attachment
6 efi_attachment
7 lspci_attachment
8+lspci_standard_config_attachment
9 lsusb_attachment
10 kernel_cmdline_attachment
11 meminfo_attachment
12
13=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist'
14--- providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist 2015-04-24 20:58:54 +0000
15+++ providers/plainbox-provider-certification-client/whitelists/client-selftest-14-04.whitelist 2015-04-28 16:50:48 +0000
16@@ -349,6 +349,7 @@
17 dmidecode_attachment
18 efi_attachment
19 lspci_attachment
20+lspci_standard_config_attachment
21 lsusb_attachment
22 kernel_cmdline_attachment
23 meminfo_attachment
24
25=== modified file 'providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist'
26--- providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist 2015-04-24 20:58:54 +0000
27+++ providers/plainbox-provider-certification-client/whitelists/client-selftest.whitelist 2015-04-28 16:50:48 +0000
28@@ -349,6 +349,7 @@
29 dmidecode_attachment
30 efi_attachment
31 lspci_attachment
32+lspci_standard_config_attachment
33 lsusb_attachment
34 kernel_cmdline_attachment
35 meminfo_attachment
36
37=== modified file 'providers/plainbox-provider-checkbox/jobs/info.txt.in'
38--- providers/plainbox-provider-checkbox/jobs/info.txt.in 2015-04-24 20:27:47 +0000
39+++ providers/plainbox-provider-checkbox/jobs/info.txt.in 2015-04-28 16:50:48 +0000
40@@ -57,6 +57,15 @@
41 estimated_duration: 1.322
42 _description: Attaches very verbose lspci output (with central database Query).
43
44+id: lspci_standard_config_attachment
45+_summary: Attach PCI configuration space hex dump
46+plugin: attachment
47+command: lspci -x
48+estimated_duration: 0.1
49+_description:
50+ Attaches a hex dump of the standard part of the PCI configuration
51+ space for all PCI devices.
52+
53 id: lsusb_attachment
54 plugin: attachment
55 requires: package.name == 'usbutils'
56
57=== modified file 'providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist'
58--- providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist 2014-04-25 22:38:44 +0000
59+++ providers/plainbox-provider-checkbox/whitelists/autotesting.whitelist 2015-04-28 16:50:48 +0000
60@@ -17,6 +17,7 @@
61 dmidecode_attachment
62 efi_attachment
63 lspci_attachment
64+lspci_standard_config_attachment
65 meminfo_attachment
66 modprobe_attachment
67 modules_attachment
68
69=== modified file 'providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist'
70--- providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist 2015-04-24 20:58:54 +0000
71+++ providers/plainbox-provider-checkbox/whitelists/hwsubmit.whitelist 2015-04-28 16:50:48 +0000
72@@ -18,6 +18,7 @@
73 kernel_cmdline_attachment
74 lsmod_attachment
75 lspci_attachment
76+lspci_standard_config_attachment
77 modprobe_attachment
78 modules_attachment
79 sysfs_attachment

Subscribers

People subscribed via source and target branches