Hi,

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@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
conf_read_file',)


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?

Thanks,
Victor
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to