Cannot connect to ceph cluster: permission denied
yeya24 opened this issue · comments
Got the erorr from ceph exporter:
2022/03/26 23:11:54 cannot connect to ceph cluster: rados: Permission denied
Configuration file
cat /etc/ceph/ceph.conf
[global]
mon_host = 172.18.146.132:6789,172.18.12.245:6789,172.18.83.88:6789
[client.admin]
keyring = /etc/ceph/ceph.client.admin.keyring
cat /etc/ceph/ceph.client.admin.keyring
[client.admin]
key = AQCNX4pf4T1RLBAA3jJF/Bhc0VcZ9BmGSIKtFA==
I am trying to set up ceph exporter with my rook ceph environment. Can I know how to get the exporter working using existing secrets from rook ceph?
At a glance that looks correct. Some things to try:
- Is there a newline at the end of the keyring file? IIRC there are issues with parsing keyrings that don't have a newline (or any other character) after the key.
- Have you tried not specifying the ports for mon_host?
- Can you try adding the fsid to the ceph configuration file?
Is this problem solved, I have the same problem
version: '2'
services:
ceph-exporter:
container_name: ceph-exporter
restart: always
image: digitalocean/ceph_exporter
volumes:
- /etc/ceph:/etc/ceph
ports:
- '9128:9128'
@youzi1030 As you can see above, there are some questions open to the OP that haven't been answered yet.
In general, there's nothing in ceph_exporter that I would expect would cause issues of this kind, so there's something specific about the configuration being provided that's preventing the connection. Can you try some of the things I mention in my post above? That might help illuminate what it is about the Rook config/keyring that is preventing ceph_exporter from connecting.
@yxiaoy6 Which version of Ceph is your cluster using? Which version is installed on the host that you're testing this on?
closing due to inactivity