0

I am running Ceph cluster in my production environment, with three Nodes (Node1, Node2, Node3)

The issue is this : I cant authenticated against the ceph cluster

At the moment the Ceph dashboard is down and cant be accessed.

[root@node3 ceph]# sudo ceph auth import -i ceph.client.admin.keyring Error EACCES: access denied

I had created a ceph.client.admin.keyring in the /etc/ceph where the ceph.conf is located.

Just wondering where I am getting it wrong and how to fix it,

  • Have you generated the private key as well? `ceph-authtool --create-keyring /tmp/ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *'`. Also your keyring doesn't seems to follow `/etc/ceph/$cluster.$name.keyring` naming convention, and you don't use an absolute path, so try renaming it and using the absolute file name after `-i` – madbird May 10 '22 at 15:51
  • Hi Madbird Thanks for the response. I had initailly generated the private key in /tmp/ceph.mon.keyring On running this command : ceph auth import -i /etc/ceph/ceph.admin.keyring [root@node3 ceph]# ceph auth import -i /etc/ceph/ceph.admin.keyring 2022-05-10T12:17:35.332-0700 7f4fe49eb700 -1 AuthRegistry(0x7f4fe005b520) no keyring found at /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,, disabling cephx [errno 2] RADOS object not found (error connecting to the cluster) – topeawolowo May 10 '22 at 19:25
  • Which ceph version is this? How was it set up? If that is a production cluster then somebody should already have keyrings etc., how else was it configured? – eblock May 12 '22 at 10:30

0 Answers0