From Fedora Project Wiki
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= | |description=Install Fedora CoreOS and debug kernel crashes using kdump as described in [https://docs.fedoraproject.org/en-US/fedora-coreos/debugging-kernel-crashes/ documentation]. | ||
|setup= | |||
# Download and verify the latest [https://getfedora.org/coreos/download?tab=metal_virtualized&stream=next FCOS <b>next</b> image] (pick the right image for your environment). | |||
|actions= | |||
# [https://docs.fedoraproject.org/en-US/fedora-coreos/producing-ign/ Create an Ignition file]. When writing the configuration, add a `crashkernel=300M` section following the example in [https://docs.fedoraproject.org/en-US/fedora-coreos/kernel-args/#_modifying_kernel_arguments_via_ignition the documentation]. You don't necessarily need to add it in the ignition, you can do it via rpm-ostree as described in this documentation, you also need to make sure the kdump.service will be enabled, you can do same via ignition or via `systemctl enable kdump.service`. | |||
# Launch your Fedora CoreOS system using this Ignition file. See [https://docs.fedoraproject.org/en-US/fedora-coreos/getting-started/#_quickstart the Quickstart] and the provisioning docs for a guide how to launch FCOS in most environments (bare metal, virtual, cloud, etc). | |||
# Acess your Fedora CoreOS and force a kernel panic for testing. | |||
sudo systemctl enable kdump.service | |||
echo 1 > /proc/sys/kernel/sysrq | |||
echo "c" > /proc/sysrq-trigger | |||
|results= | |||
# You can SSH successfully into your FCOS system. | |||
# The kernel arguments (as seen in the /proc/cmdline file) are as specified in the Ignition config, or via rpm-ostree after the reboot | |||
# After FCOS is rebooted you can successfully see the vmcore and other log files created under `/var/crash` | |||
# The linked documentation makes sense, nothing is obviously missing, and the instructions are clear. | |||
}} | }} | ||
[[Category:CoreOS Test Cases]] | [[Category:CoreOS Test Cases]] |
Latest revision as of 16:50, 6 April 2022
Description
Install Fedora CoreOS and debug kernel crashes using kdump as described in documentation.
Setup
- Download and verify the latest FCOS next image (pick the right image for your environment).
How to test
- Create an Ignition file. When writing the configuration, add a
crashkernel=300M
section following the example in the documentation. You don't necessarily need to add it in the ignition, you can do it via rpm-ostree as described in this documentation, you also need to make sure the kdump.service will be enabled, you can do same via ignition or viasystemctl enable kdump.service
. - Launch your Fedora CoreOS system using this Ignition file. See the Quickstart and the provisioning docs for a guide how to launch FCOS in most environments (bare metal, virtual, cloud, etc).
- Acess your Fedora CoreOS and force a kernel panic for testing.
sudo systemctl enable kdump.service echo 1 > /proc/sys/kernel/sysrq echo "c" > /proc/sysrq-trigger
Expected Results
- You can SSH successfully into your FCOS system.
- The kernel arguments (as seen in the /proc/cmdline file) are as specified in the Ignition config, or via rpm-ostree after the reboot
- After FCOS is rebooted you can successfully see the vmcore and other log files created under
/var/crash
- The linked documentation makes sense, nothing is obviously missing, and the instructions are clear.