Skip to content

Crashtool.py: Automated crashtool #890

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

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

Conversation

shirishaganta1
Copy link
Contributor

1.Detects and validates the latest crash dump (vmcore) under /var/crash/
2.Identifies appropriate debug symbols (vmlinux) based on the OS (e.g., RHEL or SLES)
3.Launches crash vmlinux vmcore in interactive mode on the console
4.Executes a sequence of commands (log, bt, ps, etc.) in a single session
5.Verifies command output and exits cleanly from the crash shell

@shirishaganta1
Copy link
Contributor Author

sl16-optest-log.txt

working fine on sles15sp7 and rhel97 as well
Rh97-optest-log.txt
s15sp7-optest-log.txt

@abdhaleegit abdhaleegit self-assigned this Jun 23, 2025
@abdhaleegit abdhaleegit self-requested a review June 23, 2025 05:16
@SACHIN-BAPPALIGE
Copy link

@PraveenPenguin Do we need to add package installation for kdump-debuginfo / or Will that be added to top level script that takes care all the required packages?

#
# OpenPOWER Automated Test Project
#
# Contributors Listed Below - COPYRIGHT 2022
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2025

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah will take care of that

self.cv_HOST = conf.host()
self.console = self.cv_SYSTEM.console.get_console()
self.cv_SYSTEM.goto_state(OpSystemState.OS)
self.commands = ["log", "bt", "ps", "runq", "kmem -i", "kmem -o", "kmem -h", "vm"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also capture o/p of following commands?

  • sys
  • mach
  • bt -a
  • kmem -s
  • mod

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even can this command can be command line driven as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay sure

vmlinux = f"{vmlinux} {debug_info}"

elif 'SLES' in res[0] or 'SLES' in res[1]:
vmlinux = f"/boot/vmlinux-{kernel_version}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need debug vmlinux with previous SLES releases?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on sles15sp7 .. it worked fine

1.Detects and validates the latest crash dump (vmcore) under /var/crash/
2.Identifies appropriate debug symbols (vmlinux) based on the OS (e.g., RHEL or SLES)
3.Launches crash vmlinux vmcore in interactive mode on the console
4.Executes a sequence of commands (log, bt, ps, etc.) in a single session
5.Verifies command output and exits cleanly from the crash shell
6. Done changes to OptestConfiguration.py in order to make crash-commands as
command line driven as well

Signed-off-by: Shirisha G <shirisha@linux.ibm.com>
Copy link
Collaborator

@PraveenPenguin PraveenPenguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PraveenPenguin PraveenPenguin requested a review from sacsant July 11, 2025 06:08
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.

5 participants