canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
31 stars 47 forks source link

LP1887901: Add crashkernel support #147

Open beliaev-maksim opened 1 year ago

beliaev-maksim commented 1 year ago

This issue was migrated from https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1887901

Summary

Status Created on Heat Importance Security related
New 2020-07-17 07:33:13 8 Low False

Description

To collect kernel panic when userspace processes are frozen, we can use crashkernel to collect log: $ sudo apt-get install linux-crashdump

And the panic log will be put in /var/crash, if a kernel panic ever happened.

Attachments

No attachments

Tags: ['intermediate']

beliaev-maksim commented 1 year ago

This thread was migrated from launchpad.net

https://launchpad.net/~sylvain-pineau wrote on 2020-07-17 08:57:09:

Is it just a matter of adding linux-crashdump as a dependency?

https://launchpad.net/~kaihengfeng wrote on 2020-07-17 09:23:09:

Also needs to upload the panic log from /var/crash/

Maybe leverage apport? It already has a hook for linux-crashdump.

https://launchpad.net/~kaihengfeng wrote on 2020-07-17 09:23:49:

Manually trigger a panic to see how it works:

echo c > /proc/sysrq-trigger

https://launchpad.net/~chihchun wrote on 2020-08-03 14:16:51:

There are a few things that should be considered.

= Setup =

= Bug report =

[1] [0/7] Implement crashkernel=auto - Patchwork - https://lore.kernel.org/patchwork/cover/166256/ [2] Kernel/CrashdumpRecipe - Ubuntu Wiki - https://wiki.ubuntu.com/Kernel/CrashdumpRecipe

https://launchpad.net/~pieq wrote on 2020-08-04 02:18:35:

If Checkbox has a dedicated job that captures the kernel crash log and put it in Checkbox's $PLAINBOX_SESSION_SHARE directory, then it will be captured by QABro when filing a bug, since QABro currently archives the most current Checkbox session on the device and sends it over to Launchpad.

https://launchpad.net/~huntu207 wrote on 2020-08-13 03:13:25:

Hi Pierre,

Could you help to investigate that captures the kernel crash log from /var/crash/ directly when QABro file a bug? Due to it seems need more effort to determine when should the job puts the kernel panic log to Checkbox's $PLAINBOX_SESSION_SHARE

syncronize-issues-to-jira[bot] commented 9 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1152.

This message was autogenerated