mirror of
https://github.com/ceph/ceph
synced 2025-02-19 00:47:49 +00:00
Merge PR #31341 into master
* refs/pull/31341/head: ceph-daemon: only set up /var/run/ceph/$fsid if it exists Reviewed-by: Sebastian Wagner <swagner@suse.com>
This commit is contained in:
commit
8afa48835e
@ -368,7 +368,9 @@ def get_config_and_both_keyrings():
|
||||
def get_container_mounts(fsid, daemon_type, daemon_id):
|
||||
mounts = {}
|
||||
if fsid:
|
||||
mounts['/var/run/ceph/%s' % fsid] = '/var/run/ceph:z'
|
||||
run_path = os.path.join('/var/run/ceph', fsid);
|
||||
if os.path.exists(run_path):
|
||||
mounts[run_path] = '/var/run/ceph:z'
|
||||
log_dir = get_log_dir(fsid)
|
||||
mounts[log_dir] = '/var/log/ceph:z'
|
||||
crash_dir = '/var/lib/ceph/%s/crash' % fsid
|
||||
|
Loading…
Reference in New Issue
Block a user