/juju-crashdump

Script to assist in gathering logs and other debugging info from a Juju model

Primary LanguagePythonMIT LicenseMIT

juju-crashdump

Script to assist in gathering logs and other debugging info from a Juju model

Installation

The best way to install this plugin is via the snap:

sudo snap install --classic juju-crashdump

However, you can also install using pip:

sudo pip install git+https://github.com/juju/juju-crashdump.git

Usage

juju crashdump [-h] [-d] [-m MODEL] [-f MAX_FILE_SIZE] [-b BUG]
               [-o OUTPUT_DIR] [-u UNIQ] [-s] [-a ADDON]
               [--addons-file ADDONS_FILE]
               [extra_dir [extra_dir ...]]
extra_dir
Extra directories to snapshot
-h, --help
show this help message and exit
-d, --description
Output a short description of the plugin
-m MODEL, --model MODEL
Model to act on
-f MAX_FILE_SIZE, --max-file-size MAX_FILE_SIZE
The max file size (bytes) for included files
-b BUG, --bug BUG
Upload crashdump to the given launchpad bug #
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Store the completed crash dump in this dir.
-u UNIQ, --uniq UNIQ
Unique id for this crashdump. We generate a uuid if this is not specified.
-s, --small
Make a 'small' crashdump, by skipping the contents of /var/lib/juju.
-a ADDON, --addon ADDON
Enable the addon with the given name
--addons-file ADDONS_FILE
Use this file for addon definitions