From a385b5b0c35106c9b44d81655983b2f7566b21cd Mon Sep 17 00:00:00 2001 From: Carl Xiong Date: Fri, 22 Sep 2017 11:55:33 +0800 Subject: [PATCH] ceph-disk: fix '--runtime' omission for ceph-osd service f425a127b introduces a regression that ceph-disk omits "--runtime" when enabling ceph-osd@$ID.service units for device-backed OSDs. Fixes: http://tracker.ceph.com/issues/21498 Signed-off-by: Carl Xiong --- src/ceph-disk/ceph_disk/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index 5a0a2b61ecf5..0a27d43af73a 100644 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -3248,7 +3248,7 @@ def systemd_start( osd_id, ): systemd_disable(path, osd_id) - if is_mounted(path): + if os.path.ismount(path): style = ['--runtime'] else: style = [] -- 2.47.3