From: Christian Zunker Date: Mon, 12 Jun 2017 08:31:49 +0000 (+0000) Subject: Restart OSDs during initial setup when crush location is used X-Git-Tag: v3.0.0rc1~15^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=381600a092e690d80ea4fec7186db73938cfbfd7;p=ceph-ansible.git Restart OSDs during initial setup when crush location is used 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. --- diff --git a/roles/ceph-common/handlers/main.yml b/roles/ceph-common/handlers/main.yml index 096e80044..cf3ed1d7c 100644 --- a/roles/ceph-common/handlers/main.yml +++ b/roles/ceph-common/handlers/main.yml @@ -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