From: Sage Weil Date: Tue, 31 Mar 2020 13:16:25 +0000 (-0500) Subject: cephadm: ceph-volume: disallow concurrent execution X-Git-Tag: v16.1.0~2726^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34320%2Fhead;p=ceph.git cephadm: ceph-volume: disallow concurrent execution Fixes: https://tracker.ceph.com/issues/44820 Signed-off-by: Sage Weil --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index fabadab0c00d..7d257a65447b 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -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)