cephadm: ceph-volume: disallow concurrent execution

Fixes: https://tracker.ceph.com/issues/44820
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2020-03-31 08:16:25 -05:00
parent 5a516db38f
commit eae20a7073

View File

@ -2637,6 +2637,9 @@ def command_ceph_volume():
if args.fsid:
make_log_dir(args.fsid)
l = FileLock(args.fsid)
l.acquire()
(uid, gid) = (0, 0) # ceph-volume runs as root
mounts = get_container_mounts(args.fsid, 'osd', None)