~charmers/charms/trusty/crashdump/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Overview
--------

Kernel Crash Dumps are produced when a kernel panic. This charm enables
the collection of such crash dumps on deployed units.

Usage
-----

Simply deploy the subordinate charm and add a relation with the service where
you want Kernel Crash Dumps collection enabled. It will do the proper
installation and configuration and reboot the service to add the required
kernel boot parameter.

    $ juju deploy ubuntu
    $ juju deploy local:trusty/crashdump
    $ juju add-relation ubuntu crashdump

This charm is only valid for the Trusty serie as it relies on the kdump
mechanism which is only available from Trusty onward.

Warning
-------

As outlined, this require a reboot of the unit in order to complete the 
configuration.

It is not possible to use this charm on LXC.  It will try to installs 
kexec-tools which will fail with the following error :

  INFO install /usr/sbin/grub-probe: error: failed to get canonical path of
  '/dev/mapper/ubuntu--vg-root'.

Use of grub on LXC is not possible.

In order to test the charm on a local provider, you can use the following
syntax:

    $ juju deploy ubuntu --to=kvm:0
    $ juju deploy local:trusty/crashdump
    $ juju add-relation ubuntu crashdump