[ceph-users] Running ceph status as non-root user?

Victor Hooi victorhooi at yahoo.com
Fri Mar 15 13:03:57 PDT 2019


I'm attempting to setup Telegraf <https://github.com/influxdata/telegraf>
on a Proxmox <http://proxmox.com> machine to send Ceph information into
InfluxDB <https://github.com/influxdata/influxdb>.

I had a few issues around permissions (
https://github.com/influxdata/telegraf/issues/5590), but we seem to be
nearly sorted out.

However, one issue still remains around ceph status.

Specifically, it seems to require being able to read /etc/ceph/ceph.conf.
For example, if I run sudo under the telegraf user context:

root at syd1:/etc/ceph# sudo -u telegraf ceph status
2019-03-16 07:01:37.262708 7f7031e1e700 -1 Errors while parsing config file!
2019-03-16 07:01:37.262712 7f7031e1e700 -1 parse_file: cannot open
/etc/ceph/ceph.conf: (13) Permission denied
Error initializing cluster client: PermissionDeniedError('error calling

However, on Proxmox, ceph.conf is a symlink to a file on their pmxcfs
<https://pve.proxmox.com/wiki/Proxmox_Cluster_File_System_(pmxcfs)> file
system - which doesn't let you set custom permissions.

Is there another way around this, to get ceph status to run under a
non-root user?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20190316/51ea2e97/attachment.html>

More information about the ceph-users mailing list