charm-ceph-osd/unit_tests
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
..
__init__.py Allow ceph device scrape-health-metrics 2023-11-06 20:18:36 +01:00
test_actions_add_disk.py Remove FileStore support 2023-10-06 09:03:51 +02:00
test_actions_blacklist.py Use unittest.mock instead of mock 2021-12-15 09:39:12 +00:00
test_actions_get_availability_zone.py Add an action to provide information about AZ 2021-09-03 09:48:24 +02:00
test_actions_list_disks.py Rename lib/ceph to lib/charms_ceph 2020-02-24 15:21:33 +00:00
test_actions_osd_out_in.py Use unittest.mock instead of mock 2021-12-15 09:39:12 +00:00
test_actions_remove_disk.py Merge "Add mock to make unit tests work on Kinetic" 2023-03-28 12:47:40 +00:00
test_actions_service.py Use unittest.mock instead of mock 2021-12-15 09:39:12 +00:00
test_actions_zap_disk.py Use unittest.mock instead of mock 2021-12-15 09:39:12 +00:00
test_ceph_hooks.py Remove FileStore support 2023-10-06 09:03:51 +02:00
test_ceph_networking.py Re-license charm as Apache-2.0 2016-06-28 12:01:05 +01:00
test_ceph_utils.py Implement the 'remove-disk' action 2022-03-31 18:50:22 +00:00
test_config.py Use unittest.mock instead of mock 2021-12-15 09:39:12 +00:00
test_status.py Use unittest.mock instead of mock 2021-12-15 09:39:12 +00:00
test_tuning.py Use unittest.mock instead of mock 2021-12-15 09:39:12 +00:00
test_upgrade.py Remove FileStore support 2023-10-06 09:03:51 +02:00
test_utils.py Spelling fixes from codespell with additional consistency cleanups. 2021-12-20 13:21:33 +00:00