ceph-daemon: use uid/gid 0 when creating tempfiles

skip extraction of the uid/gid since `ceph-volume` runs as root

Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
Michael Fritch 2019-12-03 07:41:59 -07:00
parent 70a4a1a900
commit caf38142d6
No known key found for this signature in database
GPG Key ID: 75F3EB2E80A03B7F

View File

@ -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