fetch_configs(ctx), ctx.image)
@staticmethod
- def get_container_mounts(data_dir: str) -> Dict[str, str]:
+ def get_container_mounts(data_dir: str, log_dir: str) -> Dict[str, str]:
mounts = dict()
mounts[os.path.join(data_dir, 'config')] = '/etc/ceph/ceph.conf:z'
mounts[os.path.join(data_dir, 'keyring')] = '/etc/ceph/keyring:z'
mounts[os.path.join(data_dir, 'configfs')] = '/sys/kernel/config'
mounts['/dev/hugepages'] = '/dev/hugepages'
mounts['/dev/vfio/vfio'] = '/dev/vfio/vfio'
+ mounts[log_dir] = '/var/log/ceph:z'
return mounts
@staticmethod
if daemon_type == CephNvmeof.daemon_type:
assert daemon_id
data_dir = get_data_dir(fsid, ctx.data_dir, daemon_type, daemon_id)
- mounts.update(CephNvmeof.get_container_mounts(data_dir))
+ log_dir = get_log_dir(fsid, ctx.log_dir)
+ mounts.update(CephNvmeof.get_container_mounts(data_dir, log_dir))
if daemon_type == CephIscsi.daemon_type:
assert daemon_id