Project

General

Profile

Bug #12080

calamari crush location needs to deal with configurable cephx keyring location

Added by Christina Meno about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Backend (services)
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

21:12:03 gmeno | off_topic: you wanted to know where this was https://github.com/ceph/calamari/blob/master/salt/srv/salt/base/calamari-crush-location.py
21:12:15 dmick | ah right
21:12:41 dmick | oh lookie there, try the osd key first explicitly, then try the admin key
21:13:27 gmeno | yep
21:13:39 dmick | you realize, of course, that those keyring paths are configurable, and you really ought to be asking ceph where they are
21:13:48 dmick | which of course requires you to have an admin key, probably :)
21:14:00 dmick | sigh
21:14:19 dmick | actually I wonder if that's true; maybe ceph-conf doesn't need keys
21:14:28 gmeno | hah that is something I should have guessed, convention is an outdated concept in linux
21:15:43 dmick | ceph-conf has a hidden switch (isn't that cool?) that actually asks rather than just parsing config files
21:15:46 dmick | so it gets defaults too
21:15:54 dmick | --show-config-value
21:16:28 dmick | $ ceph-conf --name osd.0 --show-config-value 'keyring'
21:16:28 dmick | /var/lib/ceph/osd/ceph-0/keyring
21:16:50 dmick | $ ceph-conf --name mon.a --show-config-value 'keyring'
21:16:50 dmick | /etc/ceph/ceph.mon.a.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin
21:17:04 dmick | and yay it doesn't appear to need a key itself

Also available in: Atom PDF