aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorSamYaple <sam@yaple.net>2016-02-26 15:41:37 +0000
committerSamYaple <sam@yaple.net>2016-02-26 15:45:43 +0000
commite76f862e99ea921b25ec66bc38fca36f026e954f (patch)
tree53d5d602c798e5f93a99df88c4b1b91154118a65 /ansible
parent287e4faf99c2fe7a5d0a57334df35a6dc5e71f72 (diff)
downloadkolla-e76f862e99ea921b25ec66bc38fca36f026e954f.tar.gz
kolla-e76f862e99ea921b25ec66bc38fca36f026e954f.zip
Add upgrade play for ceph
Ceph is pretty easy to work with. Upgrade mons, then osds, then rgws We want to eventually make these serial values configurable, but for now due to cephs delicate distributed network nature it is safest to only run 1 change at a time. Change-Id: Icc721ab3651379c28fee853ca95f9e3ddf102998 Partially-Implements: blueprint upgrade-kolla Implements: blueprint upgrade-ceph
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/ceph/tasks/start_mons.yml1
-rw-r--r--ansible/roles/ceph/tasks/start_osds.yml4
-rw-r--r--ansible/roles/ceph/tasks/start_rgws.yml1
-rw-r--r--ansible/roles/ceph/tasks/upgrade.yml15
4 files changed, 16 insertions, 5 deletions
diff --git a/ansible/roles/ceph/tasks/start_mons.yml b/ansible/roles/ceph/tasks/start_mons.yml
index e555d8d5d..1bb2484a1 100644
--- a/ansible/roles/ceph/tasks/start_mons.yml
+++ b/ansible/roles/ceph/tasks/start_mons.yml
@@ -12,4 +12,3 @@
- "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
- "ceph_mon:/var/lib/ceph"
- "ceph_mon_config:/etc/ceph"
- when: inventory_hostname in groups['ceph-mon']
diff --git a/ansible/roles/ceph/tasks/start_osds.yml b/ansible/roles/ceph/tasks/start_osds.yml
index 1324fd80e..1a59cbcd6 100644
--- a/ansible/roles/ceph/tasks/start_osds.yml
+++ b/ansible/roles/ceph/tasks/start_osds.yml
@@ -45,6 +45,4 @@
with_together:
- id.results
- osds
- when:
- - inventory_hostname in groups['ceph-osd']
- - osds
+ when: osds
diff --git a/ansible/roles/ceph/tasks/start_rgws.yml b/ansible/roles/ceph/tasks/start_rgws.yml
index 4de1e8afd..f8f963225 100644
--- a/ansible/roles/ceph/tasks/start_rgws.yml
+++ b/ansible/roles/ceph/tasks/start_rgws.yml
@@ -6,4 +6,3 @@
image: "{{ ceph_rgw_image_full }}"
name: "ceph_rgw"
volumes: "{{ node_config_directory }}/ceph-rgw/:{{ container_config_directory }}/:ro"
- when: inventory_hostname in groups['ceph-rgw']
diff --git a/ansible/roles/ceph/tasks/upgrade.yml b/ansible/roles/ceph/tasks/upgrade.yml
index ed97d539c..db8bf0730 100644
--- a/ansible/roles/ceph/tasks/upgrade.yml
+++ b/ansible/roles/ceph/tasks/upgrade.yml
@@ -1 +1,16 @@
---
+- include: config.yml
+
+- include: start_mons.yml
+ serial: "1"
+ when: inventory_hostname in groups['ceph-mon']
+
+- include: start_osds.yml
+ serial: "1"
+ when: inventory_hostname in groups['ceph-osd']
+
+- include: start_rgws.yml
+ serial: "30%"
+ when:
+ - inventory_hostname in groups['ceph-rgw']
+ - enable_ceph_rgw | bool