Create a key for ceph-osd for crash module auth
This will be set on the osd relation,
so the ceph-osd charm can use this key for auth
by the crash reporting module.
ref. https://docs.ceph.com/en/latest/mgr/crash/
See https://review.opendev.org/c/openstack/charm-ceph-osd/+/869139
for how this key is used by ceph-osd.
Closes-Bug: #2000630
Change-Id: Ic95aae6b5981a6df1e0b3c310bcef8018c494a24
(cherry picked from commit b2408e9dd7
)
This commit is contained in:
parent
ddfa1d4b8a
commit
9df0390d3f
|
@ -840,6 +840,16 @@ def osd_relation(relid=None, unit=None):
|
|||
'allow command "osd destroy"',
|
||||
]
|
||||
}
|
||||
),
|
||||
# Provide a key to the osd for use by the crash module:
|
||||
# https://docs.ceph.com/en/latest/mgr/crash/
|
||||
'client_crash_key': ceph.create_named_keyring(
|
||||
'client',
|
||||
'crash',
|
||||
caps={
|
||||
'mon': ['profile crash'],
|
||||
'mgr': ['profile crash'],
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue