]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Restart OSDs during initial setup when crush location is used 1596/head
authorChristian Zunker <christian.zunker@codecentric.de>
Mon, 12 Jun 2017 08:31:49 +0000 (08:31 +0000)
committerChristian Zunker <christian.zunker@codecentric.de>
Tue, 25 Jul 2017 10:06:12 +0000 (12:06 +0200)
OSDs get started by ceph-disk before the ceph.conf file is written
with a crush location. That results in a crush map without configured
crush location.

To prevent this, we have to restart the OSDs during the initial setup
after the crush location was added to the ceph.conf file.

roles/ceph-common/handlers/main.yml

index 096e80044e1c909c5d6817b099c90165795c4e67..cf3ed1d7ce3206d22c3a6e864e508417947bb06d 100644 (file)
@@ -44,7 +44,8 @@
 
   when:
 # We do not want to run these checks on initial deployment (`socket.rc == 0`)
-    - socket.rc == 0
+# except when a crush location is specified. ceph-disk will start the osds before the osd crush location is specified
+    - ((crush_location is defined and crush_location) or socket.rc == 0)
     - ceph_current_fsid.rc == 0
     - osd_group_name in group_names
 # See https://github.com/ceph/ceph-ansible/issues/1457 for the condition below