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
This commit is contained in:
SamYaple 2016-02-26 15:41:37 +00:00
parent 287e4faf99
commit e76f862e99
4 changed files with 16 additions and 5 deletions

View File

@ -12,4 +12,3 @@
- "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro" - "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro"
- "ceph_mon:/var/lib/ceph" - "ceph_mon:/var/lib/ceph"
- "ceph_mon_config:/etc/ceph" - "ceph_mon_config:/etc/ceph"
when: inventory_hostname in groups['ceph-mon']

View File

@ -45,6 +45,4 @@
with_together: with_together:
- id.results - id.results
- osds - osds
when: when: osds
- inventory_hostname in groups['ceph-osd']
- osds

View File

@ -6,4 +6,3 @@
image: "{{ ceph_rgw_image_full }}" image: "{{ ceph_rgw_image_full }}"
name: "ceph_rgw" name: "ceph_rgw"
volumes: "{{ node_config_directory }}/ceph-rgw/:{{ container_config_directory }}/:ro" volumes: "{{ node_config_directory }}/ceph-rgw/:{{ container_config_directory }}/:ro"
when: inventory_hostname in groups['ceph-rgw']

View File

@ -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