mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
ceph-disk: should throw if fail to read key-management-mode
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
3e8c6f8d03
commit
c78deac400
@ -1292,6 +1292,8 @@ def get_dmcrypt_key(
|
||||
path = os.path.join(STATEDIR, 'osd-lockbox', _uuid)
|
||||
if os.path.exists(path):
|
||||
mode = get_oneliner(path, 'key-management-mode')
|
||||
if mode is None:
|
||||
raise Error('unable to read key-management-mode from %s' % path)
|
||||
osd_uuid = get_oneliner(path, 'osd-uuid')
|
||||
ceph_fsid = read_one_line(path, 'ceph_fsid')
|
||||
if ceph_fsid is None:
|
||||
|
Loading…
Reference in New Issue
Block a user