Skip to content

Python tool used to download kernel RPMs for crash kernel analysis

Notifications You must be signed in to change notification settings

ZeTopHat/SUSEcrashPrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crash Prep

This is an RPM download and extraction tool for internal SUSE employees looking to more quickly perform crash analysis on enterprise kernel core dumps.

Getting Started

Prerequisites

This tool has only been tested on openSUSE Leap 42.1 and 42.2. It relies on python3. The modules currently in use were all installed by default except for python wget module. That can be installed with:

sudo pip install wget

The machine in use needs passwordless access to http://collective.suse.cloud/repo/smt and access to https://www.suse.com/support/kb/doc/?id=000019587

Though this tool was used on openSUSE leap it's been built only to handle SUSE Linux Enterprise kernels as provided in the above wiki url.

Installing

Download the files from this repository:

git clone https://github.com/ZeTopHat/SUSEcrashPrep.git

After that you just have to execute the crashPrep.py file. The other files are supporting and are not executed directly by the user.

Additional Notes

user@host:~> ./crashPrep.py -h
usage: crashPrep.py [-h] [-a architecture] [-b] [-e] [-f flavor] kernel

Download files for core analysis.

positional arguments:
  kernel                Kernel version to use.

optional arguments:
  -h, --help            show this help message and exit
  -a architecture, --arch architecture
                        Architecture to use. (defaults to x86_64)
  -b, --base            If included, will also download the kernel-default-
                        base
  -e, --extraction      If included, will also extract the downloaded rpm
                        files.
  -f flavor, --flavor flavor
                        Flavor to use. (defaults to default)
user@host:~> 

Built With

  • Python - The primary programming language
  • JSON - Data-interchange format used for storing kernel lists.
  • BASH - Used to extract rpms.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Author

  • Colin Hamilton - Initial work - ZeTopHat

See also the list of contributors who participated in this project.

Acknowledgments

  • To the crash utility for making us work that much harder to analyze kernel cores.

About

Python tool used to download kernel RPMs for crash kernel analysis

Resources

Stars

Watchers

Forks

Packages

No packages published