-
Notifications
You must be signed in to change notification settings - Fork 88
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
base: master
Are you sure you want to change the base?
Conversation
9cfb6b6
to
b026c38
Compare
working fine on sles15sp7 and rhel97 as well |
@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? |
testcases/Crashtool.py
Outdated
# | ||
# OpenPOWER Automated Test Project | ||
# | ||
# Contributors Listed Below - COPYRIGHT 2022 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025
There was a problem hiding this comment.
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
testcases/Crashtool.py
Outdated
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"] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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}" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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