]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: reduce the scope of activate_lock. 20114/head
authorzhaokun <develop@hikdata.com>
Thu, 25 Jan 2018 06:10:34 +0000 (14:10 +0800)
committerzhaokun <develop@hikdata.com>
Thu, 25 Jan 2018 06:10:34 +0000 (14:10 +0800)
commit85365c4fd5aa4e50d3c38e0294e34eae4d069731
tree393e887b02639fae38d4eebf2c9bdc5d28eaadc6
parent15e0630b42412c5fd9593aaec43053e9e28991c4
ceph-disk: reduce the scope of activate_lock.
Hold the FileLock when mounting the directory. Release the FileLock when start the osd and connect to the monitor. So when the cluster is rebooted, all directories will be mounted and all osd service will be enabled even the monitor is not ready.
Fixes:https://tracker.ceph.com/issues/22795

Signed-off-by: zhaokun <develop@hikdata.com>
src/ceph-disk/ceph_disk/main.py