c4209b3965
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 |
||
---|---|---|
.. | ||
charmhelpers | ||
add-storage | ||
ceph_hooks.py | ||
config-changed | ||
install | ||
install_deps | ||
install.real | ||
mon-relation-changed | ||
mon-relation-departed | ||
nrpe-external-master-relation-changed | ||
nrpe-external-master-relation-joined | ||
osd-devices-storage-attached | ||
osd-devices-storage-detaching | ||
post-series-upgrade | ||
pre-series-upgrade | ||
secrets-storage-relation-broken | ||
secrets-storage-relation-changed | ||
secrets-storage-relation-departed | ||
secrets-storage-relation-joined | ||
start | ||
stop | ||
storage.real | ||
update-status | ||
upgrade-charm | ||
upgrade-charm.real | ||
utils.py |