* refs/pull/31141/head:
ceph-daemon: fix warning message
ceph-daemon: fix enable with conflicting ceph.target files
test_ceph_daemon.sh: use same fsid as qa/standalone/test_ceph_daemon.sh
test_ceph_daemon.sh: use other latest-master image
ceph-daemon: fix pathify (fix shell --config/--keyring)
ceph-daemon: /var/run/ceph -> /var/run/ceph/$fsid
Reviewed-by: Sebastian Wagner <swagner@suse.com>
def get_container_mounts(fsid, daemon_type, daemon_id):
mounts = {}
if fsid:
+ mounts['/var/run/ceph/%s' % fsid] = '/var/run/ceph:z'
log_dir = get_log_dir(fsid)
mounts[log_dir] = '/var/log/ceph:z'
- mounts['/var/lib/ceph/%s/crash' % fsid] = '/var/lib/ceph/crash:z'
+ crash_dir = '/var/lib/ceph/%s/crash' % fsid
+ if os.path.exists(crash_dir):
+ mounts[crash_dir] = '/var/lib/ceph/crash:z'
if daemon_id:
data_dir = get_data_dir(fsid, daemon_type, daemon_id)