charm-ceph-osd/lib/charms_ceph
Samuel Walladge ad59f1bda7 Save the crash module auth key
Read the key set on the mon relation,
and use ceph-authtool to save it to a keyring,
for use by the crash module for crash reporting.

When this auth key is set, the crash module (enabled by default)
will update ceph-mon with a report.
It also results in a neat summary of recent crashes
that can be viewed by `ceph health detail`.
For example:

```
$ juju ssh ceph-mon/leader -- sudo ceph health detail

HEALTH_WARN 1 daemons have recently crashed
[WRN] RECENT_CRASH: 1 daemons have recently crashed
    osd.1 crashed on host node-3 at 2023-01-04T05:25:18.218628Z
```

ref. https://docs.ceph.com/en/latest/mgr/crash/

See also https://review.opendev.org/c/openstack/charm-ceph-mon/+/869138
for where the client_crash_key relation data set is implemented.

Depends-On: https://review.opendev.org/c/openstack/charm-ceph-mon/+/869138

Closes-Bug: #2000630
Change-Id: I77c84c368e6665e4988ebe9a735f000f99d0b78e
(cherry picked from commit 97be046f9b)
2023-03-06 00:41:06 +00:00
..
__init__.py Rename lib/ceph to lib/charms_ceph 2020-02-24 15:21:33 +00:00
broker.py Add Groovy to the test gate 2020-11-05 12:44:12 +01:00
crush_utils.py Only consider mounted OSD directories 2021-09-02 18:55:18 -03:00
utils.py Save the crash module auth key 2023-03-06 00:41:06 +00:00