Hey everybody...

I cobbled together a new juju plugin "crashdump" and thought some of you
might find it useful. I also took a stab at getting some packaging together
for https://github.com/juju/plugins

I use "juju crashdump" to get quick tarballs of broken deploys when in a
bad state so I or someone else can check over them later without having to
interactively poke the machines... Right now it should by default include
all/most of the interesting logs for an OpenStack deployment, but I am very
interested in making sure it works for any usecase...

Anywho, it works with both the deb and snap version of juju (although in
the later case you should invoke it with juju-crashdump till I get this all
snapped up...)

Give 'er a whirl:
$ sudo add-apt-repository ppa:lutostag/juju-plugins && sudo apt update &&
sudo apt install juju-plugins
$ juju-crashdump -h
usage: juju-crashdump [-h] [-d] [-m MODEL] [-f MAX_FILE_SIZE] [-b BUG]
                      [extra_dir [extra_dir ...]]

positional arguments:
  extra_dir             Extra directories to snapshot

optional arguments:
  -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 #

This was just a first-pass, I know it needs a bit of polishing, but
absolutely let me know if any of you guys & gals find this useful/think
something should be added.

Thanks and have fun!
Greg Lutostanski
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to