charm-ceph-osd/hooks
Nobuto Murata c4209b3965 Allow ceph device scrape-health-metrics
Ceph has a function to collect health metrics through smartctl or nvme
command out of the box. And it relies on sudo spawned from the ceph-osd
process so it needs to be considered in the apparmor policy.

[/etc/sudoers.d/ceph-smartctl in ceph-base package]
> ## allow ceph daemons (which run as user ceph) to collect device
> ## health metrics
>
> ceph ALL=NOPASSWD: /usr/sbin/smartctl -x --json=o /dev/*
> ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/*

Also sync charmhelpers and mock platform info

Closes-Bug: #2031637
Change-Id: I981a5db0fd49eca83aa8a619f0cbd0d34a533842
2023-11-06 20:18:36 +01:00
..
charmhelpers Allow ceph device scrape-health-metrics 2023-11-06 20:18:36 +01:00
add-storage Check for ceph.conf instead of package 2018-06-13 15:25:01 +02:00
ceph_hooks.py Remove FileStore support 2023-10-06 09:03:51 +02:00
config-changed Add unit tests for service status 2015-10-06 21:15:38 +01:00
install Add an action to provide information about AZ 2021-09-03 09:48:24 +02:00
install_deps Update pre-install hooks to fail on error 2019-02-08 15:35:12 -06:00
install.real Add unit tests for service status 2015-10-06 21:15:38 +01:00
mon-relation-changed Add unit tests for service status 2015-10-06 21:15:38 +01:00
mon-relation-departed Add unit tests for service status 2015-10-06 21:15:38 +01:00
nrpe-external-master-relation-changed Add unit tests for service status 2015-10-06 21:15:38 +01:00
nrpe-external-master-relation-joined Add unit tests for service status 2015-10-06 21:15:38 +01:00
osd-devices-storage-attached Add support for Storage hooks 2016-05-17 08:06:07 -04:00
osd-devices-storage-detaching Add support for Storage hooks 2016-05-17 08:06:07 -04:00
post-series-upgrade Series Upgrade 2018-09-21 07:38:01 +00:00
pre-series-upgrade Series Upgrade 2018-09-21 07:38:01 +00:00
secrets-storage-relation-broken Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
secrets-storage-relation-changed Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
secrets-storage-relation-departed Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
secrets-storage-relation-joined Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
start Add unit tests for service status 2015-10-06 21:15:38 +01:00
stop Add unit tests for service status 2015-10-06 21:15:38 +01:00
storage.real Add support for Storage hooks 2016-05-17 08:06:07 -04:00
update-status Add unit tests for service status 2015-10-06 21:15:38 +01:00
upgrade-charm Update pre-install hooks to fail on error 2019-02-08 15:35:12 -06:00
upgrade-charm.real Remove the compiled python bytecode 2016-10-03 13:16:30 -04:00
utils.py Remove FileStore support 2023-10-06 09:03:51 +02:00