[SOLVED] CEPH Security Information Email

Tmanok

Renowned Member
pve4.domain.ca : Aug 7 00:08:27 : ceph : a password is required ; PWD=/ ; USER=root ; COMMAND=nvme ct500mx500ssd1 smart-log-add --json /dev/sde

This error was sent to my email four times (one for each of my OSDs) consecutively and it occurred approximately five hours after upgrading from Ceph Octopus to Ceph Pacific. I'm not sure what to make of it, I just upgraded to PVE 7.0 before the ceph upgrade. This only affected my PVE4 node.

Can somebody help identify what ceph is asking me for? Is it asking for the root user's password? Why would it require that?

Thanks!
 
Ok so the file does exist and is populated:
Bash:
root@pve4:~# ls /etc/sudoers.d/ceph-osd-smartctl
/etc/sudoers.d/ceph-osd-smartctl
root@pve4:~# cat /etc/sudoers.d/ceph-osd-smartctl
## 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/*

The same file contents from another node without this issue are identical:
Bash:
root@pve1:~# ls /etc/sudoers.d/
ceph-osd-smartctl  README  zfs
root@pve1:~# cat /etc/sudoers.d/ceph-osd-smartctl
## 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/*

Additionally the file permissions on the troubled node are:
Code:
-r--r----- 1 root root 199 Jul 14 02:46 /etc/sudoers.d/ceph-osd-smartctl
and the node without issues:
Code:
-r--r----- 1 root root 199 Jul 14 02:46 /etc/sudoers.d/ceph-osd-smartctl

I've also checked that my ceph osds are not run under some different random username, all my nodes use "ceph" as their user.

So I'm not sure what else to do if ceph-osd is in the sudoers file for the two commands that it needs to perform.
 
Hey Fabian,

Package installed, but not just on PVE4, on all my nodes. So unless PVE4 sees its SATA SSDs as NVMe while my other nodes do not, it would be odd that the missing package would be responsible. Only time will tell, these seem to be sent at weird intervals but within the next day if I don't get anymore notifications then all should be well.

Also that mail thread contained some very useful information, I did not know about CEPH device metrics!
Thanks,
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!