Bug #38035
cli incorrectly reports about missing keyring (No such file or directory)
Status:
New
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Trying to run a ceph command in a machine that does have an admin keyring:
$ ceph 2019-01-24 16:14:34.088 7fec776ad700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,: (2) No such file or directory 2019-01-24 16:14:34.088 7fec776ad700 -1 monclient: ERROR: missing keyring, cannot use cephx for authentication [errno 2] error connecting to the cluster $ ls /etc/ceph ceph.client.admin.keyring ceph.conf rbdmap tmpzbfmPE
The error says that it is unable to find a keyring, adding "No such file or directory", which is clearly no the case.
The problem here is that the user running is not a super user (or has no super user privileges), not that the keyring is missing.
$ sudo ceph osd crush tree --format=json-pretty [ ...