]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rook: provide full path for devices names in inventory 32654/head
authorSage Weil <sage@redhat.com>
Wed, 15 Jan 2020 14:53:03 +0000 (08:53 -0600)
committerSage Weil <sage@redhat.com>
Wed, 15 Jan 2020 14:53:03 +0000 (08:53 -0600)
This matches the cephadm behavior.

Fixes: https://tracker.ceph.com/issues/43273
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/rook/module.py

index 73f53387b751fbebaeee1fa00a13b7e29206d85f..8f3dd1d85aa0a4686c9fd6c5611f70176b2b7da7 100644 (file)
@@ -228,7 +228,7 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator):
             devs = []
             for d in node_devs:
                 dev = inventory.Device(
-                    path=d['name'],
+                    path='/dev/' + d['name'],
                     sys_api=dict(
                         rotational='1' if d['rotational'] else '0',
                         size=d['size']