lvm_osds: ensure osd daemons are started

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1716/head
Andrew Schoen 2017-07-25 16:48:13 -05:00
parent d8aea71e31
commit 63b7e3d36c
3 changed files with 26 additions and 18 deletions

View File

@ -81,21 +81,3 @@
- not item.0.get("skipped")
- item.0.get("rc", 0) == 0
- not osd_auto_discovery
- include: osd_fragment.yml
when: crush_location
- name: get osd id
shell: |
ls /var/lib/ceph/osd/ | sed 's/.*-//'
changed_when: false
failed_when: false
always_run: true
register: osd_id
- name: start and add that the osd service(s) to the init sequence
service:
name: ceph-osd@{{ item }}
state: started
with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}"
changed_when: false

View File

@ -28,6 +28,13 @@
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False
- name: ensure OSD daemons are started
include: start_osds.yml
when:
- not containerized_deployment
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
static: False
- include: ./docker/main.yml
when: containerized_deployment
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)

View File

@ -0,0 +1,19 @@
---
- include: osd_fragment.yml
when: crush_location
- name: get osd id
shell: |
ls /var/lib/ceph/osd/ | sed 's/.*-//'
changed_when: false
failed_when: false
always_run: true
register: osd_id
- name: start and add that the osd service(s) to the init sequence
service:
name: ceph-osd@{{ item }}
state: started
with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}"
changed_when: false