From: Sage Weil Date: Thu, 3 Sep 2015 21:10:01 +0000 (-0400) Subject: ceph-disk: set ownership of newly mapped dm device X-Git-Tag: v9.1.0~162^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ce06e185caf96c4bf8d930ac8e77b03d59b3c4d;p=ceph.git 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 --- diff --git a/src/ceph-disk b/src/ceph-disk index b04c54bd5e8fa..006e84a76ca93 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: