]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: set ownership of newly mapped dm device 5800/head
authorSage Weil <sage@redhat.com>
Thu, 3 Sep 2015 21:10:01 +0000 (17:10 -0400)
committerSage Weil <sage@redhat.com>
Thu, 3 Sep 2015 21:10:01 +0000 (17:10 -0400)
This needs to be ceph:ceph or else things fail in confusin ways later.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-disk

index b04c54bd5e8fa1cc392a4177216b81a0d07e5e03..006e84a76ca9308cbe957af0e0026155b2b84a5d 100755 (executable)
@@ -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: