From 7ca39fa92b47427af2f1c6000c653bb4dffc47fe Mon Sep 17 00:00:00 2001 From: Yaarit Hatuka Date: Wed, 25 Aug 2021 02:12:08 +0000 Subject: rpm, debian: move smartmontools and nvme-cli to ceph-base We wish to be able to scrape SMART and NVMe metrics from OSD and MON nodes. For this we require / recommend smartmontools and nvme-cli dependencies for both the ceph-osd and ceph-mon packages. However, the sudoers file (which is required for invoking `smartctl` by user 'ceph') was installed only in the ceph-osd package. Since different packages cannot own the same file, and because we want to be able to scrape from every daemon, we move the dependencies and the sudoers installation to ceph-base. For generalization, we rename: sudoers.d/ceph-osd-smartctl -> sudoers.d/ceph-smartctl Fixes: https://tracker.ceph.com/issues/50657 Signed-off-by: Yaarit Hatuka --- sudoers.d/ceph-osd-smartctl | 4 ---- sudoers.d/ceph-smartctl | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 sudoers.d/ceph-osd-smartctl create mode 100644 sudoers.d/ceph-smartctl (limited to 'sudoers.d') diff --git a/sudoers.d/ceph-osd-smartctl b/sudoers.d/ceph-osd-smartctl deleted file mode 100644 index f53f6af9bc0..00000000000 --- a/sudoers.d/ceph-osd-smartctl +++ /dev/null @@ -1,4 +0,0 @@ -## allow ceph-osd (which runs 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/* diff --git a/sudoers.d/ceph-smartctl b/sudoers.d/ceph-smartctl new file mode 100644 index 00000000000..2649cea2b32 --- /dev/null +++ b/sudoers.d/ceph-smartctl @@ -0,0 +1,4 @@ +## 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/* -- cgit v1.2.3