Skip to content

ras: Add guest_fadump tests to RAS buckets - #431

Open
misanjumn wants to merge 1 commit into
lop-devops:masterfrom
misanjumn:fadump
Open

misanjumn wants to merge 1 commit into
lop-devops:masterfrom
misanjumn:fadump

Conversation

@misanjumn

Copy link
Copy Markdown
Contributor

ras: Add guest_fadump tests to RAS buckets

Add the guest_fadump test cases (firmware-assisted dump, ppc64le) next to the existing guest_kdump entries in the RAS test buckets:

  • ras.cfg: run guest_fadump, excluding the stress variants
  • ras_p1.cfg: fadump_no_stress, fadump_with_stress_crash_utility and fadump_register_unregister
  • ras_p2.cfg: two_guests_fadump_no_stress and two_guests_fadump_with_stress_crash_utility

The guest_fadump test is added to tp-libvirt by a separate change, and needs the fadump helpers added to avocado-vt virttest.utils_kdump.

Signed-off-by: Misbah Anjum N misanjum@linux.ibm.com

Add the guest_fadump test cases (firmware-assisted dump, ppc64le) next
to the existing guest_kdump entries in the RAS test buckets:

- ras.cfg: run guest_fadump, excluding the stress variants
- ras_p1.cfg: fadump_no_stress, fadump_with_stress_crash_utility and
  fadump_register_unregister
- ras_p2.cfg: two_guests_fadump_no_stress and
  two_guests_fadump_with_stress_crash_utility

The guest_fadump test is added to tp-libvirt by a separate change, and
needs the fadump helpers added to avocado-vt virttest.utils_kdump.

Signed-off-by: Misbah Anjum N <misanjumn@ibm.com>
@misanjumn

Copy link
Copy Markdown
Contributor Author

Logs - Fadump Test:

22:43:17 INFO    : Env Config: /home/kvmci/tests/config/wrapper/env.conf
22:43:17 INFO    : No Run Config: /home/kvmci/tests/config/wrapper/no_run_tests.conf
22:43:17 WARNING : Overriding user setting and enabling kvm bootstrap as guest tests are requested
22:43:17 INFO    : Check for environment
22:43:18 INFO    : Creating temporary mux dir
22:43:18 INFO    :
22:43:18 INFO    : Running Guest Tests Suite fadump
22:43:18 INFO    : Running: /usr/local/bin/avocado run --vt-type libvirt --vt-config /home/kvmci/tests/data/avocado-vt/backends/libvirt/cfg/fadump.cfg                 --force-job-id 78433f09223e3a7e213f4478fcc6c5d5732ce287                 --job-results-dir /home/kvmci/tests/results  --vt-only-filter                                             "virtio_scsi virtio_net qcow2 Fedora.43.ppc64le"
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
JOB ID     : 78433f09223e3a7e213f4478fcc6c5d5732ce287
JOB LOG    : /home/kvmci/tests/results/job-2026-11-23T22.43-78433f0/job.log
 (1/9) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: STARTED
 (1/9) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native:  PASS (49.81 s)
 (2/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_no_stress: STARTED
 (2/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_no_stress:  PASS (373.19 s)
 (3/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_with_stress: STARTED
 (3/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_with_stress:  PASS (686.82 s)
 (4/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_with_stress_crash_utility: STARTED
 (4/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_with_stress_crash_utility:  PASS (711.67 s)
 (5/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_register_unregister: STARTED
 (5/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.fadump_register_unregister:  PASS (374.89 s)
 (6/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.two_guests_fadump_no_stress: STARTED
 (6/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.two_guests_fadump_no_stress:  PASS (371.09 s)
 (7/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.two_guests_fadump_with_stress: STARTED
 (7/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.two_guests_fadump_with_stress:  PASS (685.76 s)
 (8/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.two_guests_fadump_with_stress_crash_utility: STARTED
 (8/9) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_fadump.two_guests_fadump_with_stress_crash_utility:  PASS (712.41 s)
 (9/9) io-github-autotest-libvirt.remove_guest.without_disk: STARTED
 (9/9) io-github-autotest-libvirt.remove_guest.without_disk:  PASS (3.35 s)
RESULTS    : PASS 9 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /home/kvmci/tests/results/job-2026-11-23T22.43-78433f0/results.html
JOB TIME   : 4000.24 s
23:50:00 INFO    :
23:50:00 INFO    : Summary of test results can be found below:
TestSuite                                                                                TestRun    Summary

guest_fadump                                                                             Run        Successfully executed
/home/kvmci/tests/results/job-2026-11-23T22.43-78433f0/job.log
| PASS 9 || CANCEL 0 || ERRORS 0 || FAILURES 0 || SKIP 0 || WARN 0 || INTERRUPT 0 |

Test suites status:

TOTAL                1
RUN                  1
NOT_RUN              0
CANT_RUN             0

Final count summary for tests run:

TOTAL                9
PASS                 9
CANCEL               0
ERRORS               0
FAILURES             0
SKIP                 0
WARN                 0
INTERRUPT            0
23:50:00 INFO    : Removing temporary mux dir

@misanjumn

Copy link
Copy Markdown
Contributor Author

Logs - Fadump Test Log

Case Study - Test case 4:

 (04/18) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_kdump.kdump_with_stress_crash_utility: STARTED
 (04/18) type_specific.io-github-autotest-libvirt.guest_kernel_debugging.guest_kdump.kdump_with_stress_crash_utility:  PASS (589.41 s)

Setting fadump

[stdlog] 2026-11-23 23:02:30,522 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: grubby --update-kernel=ALL --args="fadump=on"
[stdlog] 2026-11-23 23:02:30,723 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:02:30,898 avocado.virttest.utils_kdump utils_kdump      L0952 INFO | Rebooting avocado-vt-vm1 after fadump configuration change
[stdlog] 2026-11-23 23:02:30,898 avocado.virttest.libvirt_vm error_context    L0102 INFO | Context: rebooting 'avocado-vt-vm1'
[stdlog] 2026-11-23 23:02:30,898 avocado.virttest.virt_vm virt_vm          L1264 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 240s)
[stdlog] 2026-11-23 23:02:30,898 avocado.virttest.virt_vm virt_vm          L0943 DEBUG| Found/Verified IP 192.168.122.211 for VM avocado-vt-vm1 NIC 0
[stdlog] 2026-11-23 23:02:32,263 avocado.virttest.virt_vm virt_vm          L1512 DEBUG| Attempting to log into 'avocado-vt-vm1' via serial console (timeout 240s)
[stdlog] 2026-11-23 23:02:44,738 avocado.virttest.libvirt_vm error_context    L0084 INFO | Context: rebooting 'avocado-vt-vm1' --> waiting for guest to go down
[stdlog] 2026-11-23 23:02:44,738 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: shutdown -r now
[stdlog] 2026-11-23 23:02:45,677 avocado.virttest.libvirt_vm libvirt_vm       L2793 DEBUG| Reboot pattern detected in serial console
[stdlog] 2026-11-23 23:02:45,728 avocado.virttest.libvirt_vm error_context    L0084 INFO | Context: rebooting 'avocado-vt-vm1' --> logging in after reboot
[stdlog] 2026-11-23 23:02:45,728 avocado.virttest.virt_vm virt_vm          L1264 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 240s)
[stdlog] 2026-11-23 23:02:45,728 avocado.virttest.virt_vm virt_vm          L0943 DEBUG| Found/Verified IP 192.168.122.211 for VM avocado-vt-vm1 NIC 0
[stdlog] 2026-11-23 23:03:08,610 avocado.virttest.virt_vm virt_vm          L1264 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 240s)
[stdlog] 2026-11-23 23:03:08,611 avocado.virttest.virt_vm virt_vm          L0943 DEBUG| Found/Verified IP 192.168.122.211 for VM avocado-vt-vm1 NIC 0
[stdlog] 2026-11-23 23:03:09,953 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: cat /proc/cmdline
[stdlog] 2026-11-23 23:03:10,055 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:03:10,167 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: systemctl enable kdump
[stdlog] 2026-11-23 23:03:10,611 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:03:10,716 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: systemctl restart kdump
[stdlog] 2026-11-23 23:03:45,586 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?

Starting stress and Triggering crash

[stdlog] 2026-11-23 23:04:01,524 avocado.virttest.utils_test __init__         L2388 INFO | Launch stress with command: nohup stress --cpu 4 --io 4 --vm 2 --vm-bytes 256M > /dev/null &
[stdlog] 2026-11-23 23:04:01,525 aexpect.client client           L1412 DEBUG| [192.168.122.211] Sending command (safe): nohup stress --cpu 4 --io 4 --vm 2 --vm-bytes 256M > /dev/null &
[stdlog] 2026-11-23 23:04:04,135 avocado.virttest.utils_misc utils_misc       L0584 DEBUG| wait for stress app to start (2.000185 secs)
[stdlog] 2026-11-23 23:04:04,136 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: pidof -s stress
[stdlog] 2026-11-23 23:04:04,315 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:04:04,495 avocado.guest_fadump guest_fadump     L0218 INFO | Started running stress app
[stdlog] 2026-11-23 23:04:04,495 avocado.guest_fadump guest_fadump     L0219 INFO | Sleeping for 300 seconds
[stdlog] 2026-11-23 23:09:04,495 avocado.virttest.utils_kdump utils_kdump      L0747 INFO | Checking domstate of guest avocado-vt-vm1
[stdlog] 2026-11-23 23:09:24,529 avocado.virttest.utils_kdump utils_kdump      L0667 INFO | Triggering sysrq crash in guest avocado-vt-vm1
[stdlog] 2026-11-23 23:09:24,529 avocado.virttest.virt_vm virt_vm          L1264 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 100s)
[stdlog] 2026-11-23 23:09:24,530 avocado.virttest.virt_vm virt_vm          L0943 DEBUG| Found/Verified IP 192.168.122.211 for VM avocado-vt-vm1 NIC 0
[stdlog] 2026-11-23 23:09:26,097 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo 1 > /proc/sys/kernel/sysrq
[stdlog] 2026-11-23 23:09:26,198 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:09:26,319 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo c > /proc/sysrq-trigger
[stdlog] 2026-11-23 23:12:21,689 avocado.virttest.utils_kdump utils_kdump      L0747 INFO | Checking domstate of guest avocado-vt-vm1
[stdlog] 2026-11-23 23:12:21,716 avocado.virttest.virt_vm virt_vm          L1264 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 240s)
[stdlog] 2026-11-23 23:12:21,717 avocado.virttest.virt_vm virt_vm          L0943 DEBUG| Found/Verified IP 192.168.122.211 for VM avocado-vt-vm1 NIC 0
[stdlog] 2026-11-23 23:12:23,337 avocado.guest_fadump guest_fadump     L0251 INFO | Able to login into avocado-vt-vm1
[stdlog] 2026-11-23 23:12:23,400 avocado.virttest.utils_kdump utils_kdump      L0620 INFO | Getting vmcores in the guest avocado-vt-vm1
[stdlog] 2026-11-23 23:12:23,401 avocado.virttest.virt_vm virt_vm          L1264 DEBUG| Attempting to log into 'avocado-vt-vm1' (timeout 100s)
[stdlog] 2026-11-23 23:12:23,401 avocado.virttest.virt_vm virt_vm          L0943 DEBUG| Found/Verified IP 192.168.122.211 for VM avocado-vt-vm1 NIC 0
[stdlog] 2026-11-23 23:12:24,733 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: cat /etc/os-release
[stdlog] 2026-11-23 23:12:24,835 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:12:24,954 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: find /var/crash -type f -name 'vmcore' 2>/dev/null | sort
[stdlog] 2026-11-23 23:12:25,075 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:12:25,249 avocado.virttest.utils_kdump utils_kdump      L1167 INFO | avocado-vt-vm1 vmcores after crash: ['/var/crash/127.0.0.1-2026-11-23-12:16:42/vmcore', '/var/crash/127.0.0.1-2026-11-23-12:28:08/vmcore', '/var/crash/127.0.0.1-2026-11-23-12:39:38/vmcore']

Crash utility

[stdlog] 2026-11-23 23:12:34,694 avocado.virttest.utils_kdump utils_kdump      L0724 DEBUG| Crash command: printf 'ps\nquit\n' | crash /usr/lib/debug/lib/modules/6.14.3-300.fc42.ppc64le/vmlinux /var/crash/127.0.0.1-2026-11-23-12:39:38/vmcore
[stdlog] 2026-11-23 23:12:34,694 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: printf 'ps\nquit\n' | crash /usr/lib/debug/lib/modules/6.14.3-300.fc42.ppc64le/vmlinux /var/crash/127.0.0.1-2026-11-23-12:39:38/vmcore
[stdlog] 2026-11-23 23:12:52,276 aexpect.client client           L1364 DEBUG| [192.168.122.211] Sending command: echo $?
[stdlog] 2026-11-23 23:12:52,438 avocado.virttest.utils_kdump utils_kdump      L0730 DEBUG| Crash utility output:
[stdlog] crash 8.0.6-4.fc42
[stdlog] Copyright (C) 2002-2025  Red Hat, Inc.
[stdlog] Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation
[stdlog] Copyright (C) 1999-2006  Hewlett-Packard Co
[stdlog] Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited
[stdlog] Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
[stdlog] Copyright (C) 2005, 2011, 2020-2024  NEC Corporation
[stdlog] Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
[stdlog] Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
[stdlog] Copyright (C) 2015, 2021  VMware, Inc.
[stdlog] This program is free software, covered by the GNU General Public License,
[stdlog] and you are welcome to change it and/or distribute copies of it under
[stdlog] certain conditions.  Enter "help copying" to see the conditions.
[stdlog] This program has absolutely no warranty.  Enter "help warranty" for details.
[stdlog]
[stdlog] NOTE: stdin: not a tty
[stdlog]
[stdlog] GNU gdb (GDB) 10.2
[stdlog] Copyright (C) 2021 Free Software Foundation, Inc.
[stdlog] License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[stdlog] This is free software: you are free to change and redistribute it.
[stdlog] There is NO WARRANTY, to the extent permitted by law.
[stdlog] Type "show copying" and "show warranty" for details.
[stdlog] This GDB was configured as "powerpc64le-unknown-linux-gnu".
[stdlog] Type "show configuration" for configuration details.
[stdlog] Find the GDB manual and other documentation resources online at:
[stdlog]     <http://www.gnu.org/software/gdb/documentation/>.
[stdlog]
[stdlog] For help, type "help".
[stdlog] Type "apropos word" to search for commands related to "word"...
[stdlog]
[stdlog] please wait... (gathering kmem slab cache data)                                                please wait... (gathering module symbol data)                                              please wait... (gathering task table data)                                           please wait... (determining panic task)                                              KERNEL: /usr/lib/debug/lib/modules/6.14.3-300.fc42.ppc64le/vmlinux
[stdlog]     DUMPFILE: /var/crash/127.0.0.1-2026-11-23-12:39:38/vmcore  [PARTIAL DUMP]
[stdlog]         CPUS: 32
[stdlog]         DATE: Wed Dec 31 19:00:00 EST 1969
[stdlog]       UPTIME: 00:06:30
[stdlog] LOAD AVERAGE: 10.04, 6.67, 2.99
[stdlog]        TASKS: 527
[stdlog]     NODENAME: localhost.localdomain
[stdlog]      RELEASE: 6.14.3-300.fc42.ppc64le
[stdlog]      VERSION: #1 SMP Sun Apr 20 15:36:17 UTC 2025
[stdlog]      MACHINE: ppc64le  (3450 Mhz)
[stdlog]       MEMORY: 32 GB
[stdlog]        PANIC: "Kernel panic - not syncing: sysrq triggered crash"
[stdlog]          PID: 13737
[stdlog]      COMMAND: "bash"
[stdlog]         TASK: c0000000c57cb380  [THREAD_INFO: c0000000c57cb380]
[stdlog]          CPU: 27
[stdlog]        STATE: TASK_RUNNING (PANIC)
[stdlog]
[stdlog] crash> ps
[stdlog]       PID    PPID  CPU       TASK        ST  %MEM      VSZ      RSS  COMM
[stdlog] >       0       0   0  c000000003cd9800  RU   0.0        0        0  [swapper/0]
[stdlog]         0       0   1  c000000009050680  RU   0.0        0        0  [swapper/1]
[stdlog]         0       0   2  c000000009007c80  RU   0.0        0        0  [swapper/2]
[stdlog]         0       0   3  c00000000903ba80  RU   0.0        0        0  [swapper/3]
[stdlog]         0       0   4  c000000009005300  RU   0.0        0        0  [swapper/4]
[stdlog]         0       0   5  c000000009017580  RU   0.0        0        0  [swapper/5]
[stdlog]         0       0   6  c000000009031480  RU   0.0        0        0  [swapper/6]
[stdlog]         0       0   7  c000000009036780  RU   0.0        0        0  [swapper/7]
[stdlog] >       0       0   8  c000000009048a00  RU   0.0        0        0  [swapper/8]
[stdlog] >       0       0   9  c000000009043700  RU   0.0        0        0  [swapper/9]
[stdlog]         0       0  10  c000000009065280  RU   0.0        0        0  [swapper/10]
[stdlog] >       0       0  11  c000000009039100  RU   0.0        0        0  [swapper/11]
[stdlog]         0       0  12  c000000009074b80  RU   0.0        0        0  [swapper/12]
[stdlog] >       0       0  13  c000000009012280  RU   0.0        0        0  [swapper/13]
...
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant