1
# The dkms_info script requires python3-debian package
2
unit: packaging meta-data
4
Depends: python3-debian
6
# The dkms_info script requires python3-guacamole package
7
unit: packaging meta-data
9
Depends: python3-guacamole (>= 0.9)
11
# This is for lsblk attachment and disk/detect
12
unit: packaging meta-data
18
category_id: 2013.com.canonical.plainbox::info
19
requires: device.driver == 'snd_hda_intel'
20
command: cat /proc/asound/card*/codec#*
21
estimated_duration: 0.023
22
_description: Attaches a report of installed codecs for Intel HDA
24
id: cpuinfo_attachment
26
category_id: 2013.com.canonical.plainbox::info
27
command: cat /proc/cpuinfo
28
estimated_duration: 0.006
29
_description: Attaches a report of CPU information
30
_summary: Attach a copy of /proc/cpuinfo
34
category_id: 2013.com.canonical.plainbox::info
35
command: cat /var/log/dmesg | ansi_parser
36
estimated_duration: 0.640
37
_description: Attaches a copy of /var/log/dmesg to the test results
38
_summary: Attach a copy of /var/log/dmesg
42
category_id: 2013.com.canonical.plainbox::info
43
command: [ -d /sys/class/dmi/id/ ] && (grep -r . /sys/class/dmi/id/ 2>/dev/null || true) || false
44
estimated_duration: 0.044
45
_description: Attaches info on DMI
46
_summary: Attach a copy of /sys/class/dmi/id/*
48
id: dmidecode_attachment
50
category_id: 2013.com.canonical.plainbox::info
51
requires: package.name == 'dmidecode'
53
command: dmidecode | iconv -t 'utf-8' -c
54
estimated_duration: 0.030
55
_description: Attaches dmidecode output
56
_summary: Attach output of dmidecode
60
category_id: 2013.com.canonical.plainbox::info
61
requires: package.name == 'lshw'
63
command: lshw | iconv -t 'utf-8' -c
64
_summary: Attach lshw output
65
_description: Attaches lshw output
69
category_id: 2013.com.canonical.plainbox::info
71
command: [ -d /sys/firmware/efi ] && grep -m 1 -o --color=never 'EFI v.*' /var/log/kern.log* || true
72
estimated_duration: 0.5
73
_summary: Attaches firmware version info
74
_description: Attaches the firmware version
78
category_id: 2013.com.canonical.plainbox::info
79
command: lspci -vvnn | iconv -t 'utf-8' -c
80
estimated_duration: 0.042
81
_description: Attaches very verbose lspci output.
82
_summary: Attach a list of PCI devices
84
id: lspci_network_attachment
86
category_id: 2013.com.canonical.plainbox::info
87
command: lspci -vvnnQ | iconv -t 'utf-8' -c
88
estimated_duration: 1.322
89
_description: Attaches very verbose lspci output (with central database Query).
91
id: lspci_standard_config_attachment
92
_summary: Attach PCI configuration space hex dump
94
category_id: 2013.com.canonical.plainbox::info
96
estimated_duration: 0.1
98
Attaches a hex dump of the standard part of the PCI configuration
99
space for all PCI devices.
103
category_id: 2013.com.canonical.plainbox::info
104
requires: package.name == 'usbutils'
106
command: lsusb -vv | iconv -t 'utf-8' -c
107
estimated_duration: 0.700
108
_summary: Attach output of lsusb
109
_description: Attaches a list of detected USB devices.
111
id: meminfo_attachment
113
category_id: 2013.com.canonical.plainbox::info
114
command: cat /proc/meminfo
115
estimated_duration: 0.043
116
_summary: Attach copy of /proc/meminfo
117
_description: Attaches info on system memory as seen in /proc/meminfo.
119
id: modprobe_attachment
121
category_id: 2013.com.canonical.plainbox::info
122
command: find /etc/modprobe.* -name \*.conf | xargs cat
123
estimated_duration: 0.015
124
_description: Attaches the contents of the various modprobe conf files.
125
_summary: Attach the contents of /etc/modprobe.*
127
id: modinfo_attachment
129
category_id: 2013.com.canonical.plainbox::info
130
_summary: Attach modinfo information
132
for mod in $(lsmod | cut -f 1 -d " ")
134
printf "%-16s%s\n" "name:" "$mod"
138
estimated_duration: 1.5
139
_description: Attaches modinfo information for all currently loaded modules
141
id: modules_attachment
143
category_id: 2013.com.canonical.plainbox::info
144
command: cat /etc/modules
145
estimated_duration: 0.004
146
_description: Attaches the contents of the /etc/modules file.
147
_summary: Attach the contents of /etc/modules
149
id: sysctl_attachment
151
category_id: 2013.com.canonical.plainbox::info
152
command: find /etc/sysctl.* -name \*.conf | xargs cat
153
estimated_duration: 0.014
154
_description: Attaches the contents of various sysctl config files.
155
_summary: Attach sysctl configuration files.
159
category_id: 2013.com.canonical.plainbox::info
160
_description: Attaches a report of sysfs attributes.
162
for i in `udevadm info --export-db | sed -n 's/^P: //p'`; do
164
udevadm info --attribute-walk --path=/sys$i 2>/dev/null | sed -n 's/ ATTR{\(.*\)}=="\(.*\)"/A: \1=\2/p'
167
estimated_duration: 6.344
168
_summary: Attach detailed sysfs property output from udev
172
category_id: 2013.com.canonical.plainbox::info
173
command: udevadm info --export-db | xml_sanitize
174
estimated_duration: 1.465
175
_description: Attaches a dump of the udev database showing system hardware information.
176
_summary: Attach dump of udev database
178
id: udev_resource_attachment
180
category_id: 2013.com.canonical.plainbox::info
181
command: udev_resource
182
estimated_duration: 0.432
183
_description: Attaches the output of udev_resource, for debugging purposes
186
estimated_duration: 0.1
188
command: lsblk -i -n -P -o KNAME,TYPE,MOUNTPOINT
189
requires: package.name == "util-linux"
190
_description: Attaches disk block devices mount points
191
_summary: Attach info block devices and their mount points
195
category_id: 2013.com.canonical.plainbox::info
196
requires: package.name == 'lcov'
198
command: gcov_tarball
199
_description: Attaches a tarball of gcov data if present.
203
category_id: 2013.com.canonical.plainbox::info
205
estimated_duration: 0.5
206
_description: Attaches a list of the currently running kernel modules.
207
_summary: Attach a list of currently running kernel modules
209
id: dkms_info_attachment
211
category_id: 2013.com.canonical.plainbox::info
212
command: dkms_info --format json
213
_description: Attaches json dumps of installed dkms package information.
214
_summary: Attaches json dumps of installed dkms package information.
217
category_id: 2013.com.canonical.plainbox::info
218
id: acpi_sleep_attachment
219
command: [ -e /proc/acpi/sleep ] && cat /proc/acpi/sleep || echo "No /proc/acpi/sleep found"
220
estimated_duration: 0.5
221
_description: Attaches the contents of /proc/acpi/sleep if it exists.
224
category_id: 2013.com.canonical.plainbox::info
226
_description: Bootchart information.
227
requires: package.name == 'bootchart' or package.name == 'pybootchartgui'
230
process_wait -u root bootchart collector ureadahead; \
231
[ `ls /var/log/bootchart/*.tgz 2>/dev/null | wc -l` -lt 2 ] && reboot && sleep 100
234
template-resource: device
235
template-filter: device.category == 'DISK'
237
category_id: 2013.com.canonical.plainbox::info
238
id: info/hdparm_{name}.txt
239
estimated_duration: 1.0
241
package.name == 'hdparm'
242
block_device.{name}_state != 'removable'
244
command: hdparm -I /dev/{name}
245
_summary: Attaches info from hdparm about {name}
248
category_id: 2013.com.canonical.plainbox::info
250
depends: info/bootchart
251
requires: package.name == 'pybootchartgui'
252
_description: Attaches the bootchart png file for bootchart runs
254
file=`ls /var/log/bootchart/*.png 2>/dev/null | tail -1`; \
255
[ -e "$file" ] && cat "$file"
258
category_id: 2013.com.canonical.plainbox::info
260
depends: info/bootchart
261
_description: Attaches the bootchart log for bootchart test runs.
263
file=`ls /var/log/bootchart/*.tgz 2>/dev/null | tail -1`; \
264
[ -e "$file" ] && cat "$file"
267
category_id: 2013.com.canonical.plainbox::info
268
id: installer_bootchart.tgz
269
command: [ -f /var/log/installer/bootchart.tgz ] && base64 /var/log/installer/bootchart.tgz
270
_description: Attach the installer bootchart tarball if it exists.
273
category_id: 2013.com.canonical.plainbox::info
274
id: installer_debug.gz
276
command: [ -f /var/log/installer/debug ] && gzip -9 -c /var/log/installer/debug | base64
277
estimated_duration: 0.1
278
_description: Attaches the installer debug log if it exists.
281
category_id: 2013.com.canonical.plainbox::info
282
id: info/touchpad_driver
283
requires: device.category == 'TOUCHPAD'
284
command: touchpad_driver_info
285
estimated_duration: 0.384
287
Returns the name, driver name and driver version of any touchpad discovered on
291
category_id: 2013.com.canonical.plainbox::info
292
id: info/audio_device_driver
294
package.name == 'pulseaudio-utils'
295
package.name == 'kmod' or package.name == 'module-init-tools'
296
device.category == 'AUDIO'
297
command: audio_driver_info
298
estimated_duration: 0.177
299
_description: Lists the device driver and version for all audio devices.
302
category_id: 2013.com.canonical.plainbox::info
303
id: info/network_devices
305
device.category == 'NETWORK' or device.category == 'WIRELESS'
306
package.name == 'kmod' or package.name == 'module-init-tools'
307
package.name == 'pciutils'
308
command: network_device_info
309
estimated_duration: 0.550
310
_description: Provides information about network devices
313
category_id: 2013.com.canonical.plainbox::info
314
id: info/mobile_broadband_info
315
command: broadband_info
316
estimated_duration: 0.5
317
_description: Provides information about wwan/mobile broadband devices
320
category_id: 2013.com.canonical.plainbox::info
322
command: xrandr -q --verbose
323
_description: Provides information about displays attached to the system
326
category_id: 2013.com.canonical.plainbox::info
327
id: info/disk_partitions
328
estimated_duration: 1.0
330
command: parted -l -s
331
_summary: Attaches info about disk partitions
332
_description: Attaches information about disk partitions
335
category_id: 2013.com.canonical.plainbox::info
337
estimated_duration: 0.1
338
_description: Attaches the buildstamp identifier for the preinstalled OS
339
_summary: Attach /etc/buildstamp
340
command: [ -s /etc/buildstamp ] && cat /etc/buildstamp
343
category_id: 2013.com.canonical.plainbox::info
344
id: info/detect_recovery
345
requires: package.name == 'dell-recovery' or package.name == 'ubuntu-recovery'
347
estimated_duration: 0.2
348
_summary: Check existence of recovery partition
349
_description: Check existence of recovery partition
350
command: recovery_info
353
category_id: 2013.com.canonical.plainbox::info
354
id: info/detect_dell_recovery
355
depends: info/detect_recovery
356
requires: package.name == 'dell-recovery'
358
estimated_duration: 0.2
359
_summary: Check the recovery type is dell or not
360
_description: Check the recovery type is dell or not
361
command: recovery_info checktype DELL
364
category_id: 2013.com.canonical.plainbox::info
365
id: recovery_info_attachment
366
depends: info/detect_recovery
367
requires: package.name == 'dell-recovery' or package.name == 'ubuntu-recovery'
369
estimated_duration: 0.2
370
_summary: Attach the recovery partition versions
372
Attach the recovery partition version
373
image_version is the preinstalled OS image version
374
bto_version is only for dell_recovery
376
image_version: somerville-trusty-amd64-20140620-0
377
bto_version: A00_dell-bto-trusty-houston-15-A11-iso-20141203-0.iso
378
command: recovery_info version
381
category_id: 2013.com.canonical.plainbox::info
382
id: dell_bto_xml_attachment
383
depends: info/detect_dell_recovery
384
requires: package.name == 'dell-recovery'
386
estimated_duration: 0.5
387
_summary: Attach the bto.xml in Dell recovery partition
389
bto.xml is basically a Fish manifest
390
The information include:
392
- dell recovery stage 2 boot log
393
command: recovery_info file bto.xml
396
category_id: 2013.com.canonical.plainbox::info
398
estimated_duration: 0.1
400
Attaches console log from the kvm_check_vm test
402
Attaches the debug log from the virtualization/kvm_check_vm test
403
to the results submission.
404
command: [ -f $PLAINBOX_SESSION_SHARE/virt_debug ] && cat $PLAINBOX_SESSION_SHARE/virt_debug
406
id: kernel_cmdline_attachment
408
category_id: 2013.com.canonical.plainbox::info
409
command: cat /proc/cmdline
410
estimated_duration: 0.005
411
_description: Attaches the kernel command line used to boot
412
_summary: Attach a copy of /proc/cmdline