From 23f5159487ba57a211003e74016bb4cedd23d97b Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 15 Jan 2020 08:53:03 -0600 Subject: [PATCH] mgr/rook: provide full path for devices names in inventory This matches the cephadm behavior. Fixes: https://tracker.ceph.com/issues/43273 Signed-off-by: Sage Weil --- src/pybind/mgr/rook/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/rook/module.py b/src/pybind/mgr/rook/module.py index 73f53387b75..8f3dd1d85aa 100644 --- a/src/pybind/mgr/rook/module.py +++ b/src/pybind/mgr/rook/module.py @@ -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'] -- 2.39.5