]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-daemon: use uid/gid 0 when creating tempfiles
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Dec 2019 14:41:59 +0000 (07:41 -0700)
committerMichael Fritch <mfritch@suse.com>
Tue, 3 Dec 2019 14:41:59 +0000 (07:41 -0700)
skip extraction of the uid/gid since `ceph-volume` runs as root

Signed-off-by: Michael Fritch <mfritch@suse.com>
src/ceph-daemon/ceph-daemon

index 9164fe388383f541dac47f1f6db486163ec1c709..f4dafd264a8e1e839533fad6c1abd54b052b9a87 100755 (executable)
@@ -1342,7 +1342,7 @@ def command_ceph_volume():
     if args.fsid:
         make_log_dir(args.fsid)
 
-    (uid, gid) = extract_uid_gid()
+    (uid, gid) = (0, 0) # ceph-volume runs as root
     mounts = get_container_mounts(args.fsid, 'osd', None)
 
     tmp_config = None