]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: fix '--runtime' omission for ceph-osd service 17904/head
authorCarl Xiong <xiongc05@gmail.com>
Fri, 22 Sep 2017 03:55:33 +0000 (11:55 +0800)
committerCarl Xiong <xiongc05@gmail.com>
Fri, 22 Sep 2017 03:55:33 +0000 (11:55 +0800)
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 <cxiong@suse.com>
src/ceph-disk/ceph_disk/main.py

index 5a0a2b61ecf5dcee88446f49f850286d3ac9ec08..0a27d43af73af5bd408ac97ced8d5f2a51aa44e7 100644 (file)
@@ -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 = []