mirror of
https://github.com/ceph/ceph
synced 2024-12-27 22:13:28 +00:00
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:
parent
5a516db38f
commit
eae20a7073
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user