From 3ce06e185caf96c4bf8d930ac8e77b03d59b3c4d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 3 Sep 2015 17:10:01 -0400 Subject: [PATCH] ceph-disk: set ownership of newly mapped dm device This needs to be ceph:ceph or else things fail in confusin ways later. Signed-off-by: Sage Weil --- src/ceph-disk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ceph-disk b/src/ceph-disk index b04c54bd5e8..006e84a76ca 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -1049,6 +1049,8 @@ def dmcrypt_map( else: # Plain mode has no format function, nor any validation that the key is correct. command_check_call(create_args) + # set proper ownership of mapped device + command_check_call(['chown', 'ceph:ceph', dev]) return dev except subprocess.CalledProcessError as e: -- 2.47.3