From 72b90835e31997681423ff7a8020722e15ab2da5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 31 Mar 2020 08:16:25 -0500 Subject: [PATCH] cephadm: ceph-volume: disallow concurrent execution Fixes: https://tracker.ceph.com/issues/44820 Signed-off-by: Sage Weil (cherry picked from commit eae20a70738f20738b3754e464b8a4922912e58a) --- src/cephadm/cephadm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index baccd7c050514..4d71bc6ed5137 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -2635,6 +2635,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) -- 2.39.5