Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virsh-dump: Add Crash Utility Tests for vmcore #6150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

misanjumn
Copy link
Contributor

virsh-dump: Add Crash Utility Tests for vmcore

This Patch adds support for testing Crash Utility
for vmcore generated by "virsh dump" command.

Crash Utility is a tool that allows us to interactively analyze a running Linux system as well as a core dump created.

This crash_utility function works as following:
Check the working of crash utility tool to analyse the guest dump In order for the function to work, both the guest and the host must have the same kernel

  • If crash tool or kernel debug libraries are not installed, the test returns error
  • If crash tool cannot read into the vmcore, the test returns fail
  • If crash tool can read the vmcore, the test returns pass

The Function returns:
0: Success
1: Crash command failed
2: Dependency installation failed or vmlinux not found
3: Kernel mismatch between host and guest
4: Guest kernel retrieval failed
5: Unsupported distribution
6: virsh dump unsuccessful

Signed-off-by: Misbah Anjum N [email protected]

This Patch adds support for testing Crash Utility
for vmcore generated by "virsh dump" command.

Crash Utility is a tool that allows us to interactively
analyze a running Linux system as well as a core dump created.

This crash_utility function works as following:
        Returns:
            0: Success
            1: Crash command failed
            2: Dependency installation failed or vmlinux not found
            3: Kernel mismatch between host and guest
            4: Guest kernel retrieval failed
            5: Unsupported distribution
            6: virsh dump unsuccessful

Signed-off-by: Misbah Anjum N <[email protected]>
@misanjumn
Copy link
Contributor Author

Test Results

JOB ID     : 61bdbfd7ca58deec92972f2e57447fdbb51e58f6
JOB LOG    : /home/kvmci/kvmci-multivm-project/results/job-2025-01-21T03.04-61bdbfd/job.log
 (1/8) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native: STARTED
 (1/8) io-github-autotest-qemu.unattended_install.import.import.default_install.aio_native:  PASS (138.49 s)
 (2/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.elf_format: STARTED
 (2/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.elf_format:  PASS (133.70 s)
 (3/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.kdump-zlib_format: STARTED
 (3/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.kdump-zlib_format:  PASS (124.06 s)
 (4/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.kdump-lzo_format: STARTED
 (4/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.kdump-lzo_format:  CANCEL: Unsupported dump format 'kdump-lzo' for this QEMU binary (110.00 s)
 (5/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.kdump-snappy_format: STARTED
 (5/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_dump.kdump-snappy_format:  CANCEL: Unsupported dump format 'kdump-snappy' for this QEMU binary (110.20 s) 
 (6/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_crash_dump: STARTED
 (6/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_crash_dump:  PASS (132.18 s)
 (7/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_bypass_cache_dump: STARTED
 (7/8) type_specific.io-github-autotest-libvirt.virsh.dump.crash_utility_tests.memory_bypass_cache_dump:  PASS (140.50 s)
 (8/8) io-github-autotest-libvirt.remove_guest.without_disk: STARTED
 (8/8) io-github-autotest-libvirt.remove_guest.without_disk:  PASS (3.65 s)
RESULTS    : PASS 6 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 2
JOB HTML   : /home/kvmci/kvmci-multivm-project/results/job-2025-01-21T03.04-61bdbfd/results.html
JOB TIME   : 915.00 s
03:20:09 INFO    :
03:20:09 INFO    : Summary of test results can be found below:
TestSuite                                                                                TestRun    Summary

guest_crash                                                                              Run        Successfully executed
/home/kvmci/kvmci-multivm-project/results/job-2025-01-21T03.04-61bdbfd/job.log
| PASS 6 || CANCEL 2 || ERRORS 0 || FAILURES 0 || SKIP 0 || WARN 0 || INTERRUPT 0 |

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