else:
dname = daemon_type
podman_args = []
+ if daemon_type == 'osd':
+ podman_args += ['--privileged']
return CephContainer(
image=args.image,
entrypoint='/usr/bin/ceph-' + daemon_type,
uid, gid,
config, keyring)
+ if daemon_type == 'osd' and args.osd_fsid:
+ pc = CephContainer(
+ image=args.image,
+ entrypoint='/usr/sbin/ceph-volume',
+ args=[
+ 'lvm', 'activate',
+ daemon_id, args.osd_fsid,
+ '--no-systemd'
+ ],
+ podman_args=['--privileged'],
+ volume_mounts=get_container_mounts(fsid, daemon_type, daemon_id),
+ cname='ceph-%s-activate-%s.%s' % (fsid, daemon_type, daemon_id),
+ )
+ pc.run()
+
deploy_daemon_units(fsid, daemon_type, daemon_id, c)
def deploy_daemon_units(fsid, daemon_type, daemon_id, c):
parser_deploy.add_argument(
'--mon-ip',
help='mon IP')
+parser_deploy.add_argument(
+ '--osd-fsid',
+ help='OSD uuid, if creating an OSD container')
args = parser.parse_args()