Merge pull request #1800 from ceph/wip-osd-start-fix

ceph-osd: Fix osd start sequence
pull/1855/merge
Sébastien Han 2017-09-13 17:20:10 -06:00 committed by GitHub
commit ef8d37dd0d
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,8 @@
failed_when: false failed_when: false
always_run: true always_run: true
register: osd_id register: osd_id
until: osd_id.stdout_lines|length == devices|unique|length
retries: 10
- name: ensure systemd service override directory exists - name: ensure systemd service override directory exists
file: file:
@ -32,5 +34,6 @@
service: service:
name: ceph-osd@{{ item }} name: ceph-osd@{{ item }}
state: started state: started
enabled: true
with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}" with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}"
changed_when: false changed_when: false