Skip to content

CephCollector doesn't show any errors on permission denied #516

@CaptSpify

Description

@CaptSpify

When using CephCollector, I was getting permission denied on the socket:

diamond@cephhost:~$ /usr/bin/ceph --admin-daemon /var/run/ceph/ceph-mon.cephhost.asok perf dump
admin_socket: exception getting command descriptions: [Errno 13] Permission denied
admin_socket: exception getting command descriptions: [Errno 13] Permission denied

But this didn't show up in the log:

1470934996.81   [CephCollector:14658:DEBUG]     Starting
1470934996.81   [CephCollector:14658:DEBUG]     Interval: 300.0 seconds
1470934996.82   [CephCollector:14658:DEBUG]     Max collection time: 165 seconds
1470934996.82   [CephCollector:14658:DEBUG]     Collection took 0 ms

To fix, I had to add group-write access to the socket, and put diamond in the ceph group

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions