Project

General

Profile

Actions

Bug #16255

closed

ceph-create-keys: sometimes blocks forever if mds "allow" is set

Added by Dietmar Maurer almost 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Administration/Usability
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The documentations at:

http://docs.ceph.com/docs/master/dev/mon-bootstrap/

tells to create the client.admin key with:

  1. ceph-authtool /path/to/keyring --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow'

Please note the mds permission is 'allow', and not 'allow *'.

I never understood why this need to be different, but I used this everywhere. So all our
existing installations use it.

But this commit:

https://github.com/ceph/ceph/commit/c7e905e7e232a973abf7c6fa71a2ffbad7aa0ffd

suddenly requires 'allow *' for mds permissions. So with my old keys,
ceph-create-keys simply runs an endless loop logging the following
error message:

Jun 13 06:10:17 elsa ceph-create-keys10083: Error EINVAL: key for client.admin
exists but cap mds does not match
Jun 13 06:10:17 elsa ceph-create-keys10083: INFO:ceph-create-keys:Cannot get
or create admin key
Jun 13 06:10:18 elsa ceph-create-keys10083: INFO:ceph-create-keys:Talking to
monitor...

So either the documentation is wrong, or the commit should be reverted.


Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #17347: jewel: ceph-create-keys: sometimes blocks forever if mds "allow" is setResolvedLoïc DacharyActions
Actions

Also available in: Atom PDF