From e91648a7afab88e84aea64c6bb7627580d420466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 10 May 2018 15:57:59 -0700 Subject: [PATCH] rolling_update: add role ceph-iscsi-gw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1575829 Signed-off-by: Sébastien Han --- infrastructure-playbooks/rolling_update.yml | 43 +++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 2b90a9f40..47e7111b8 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -642,6 +642,49 @@ - containerized_deployment +- name: upgrade ceph iscsi gateway node + + vars: + upgrade_ceph_packages: True + + hosts: + - "{{ iscsi_gw_group_name|default('iscsi-gws') }}" + + serial: 1 + become: True + + pre_tasks: + # failed_when: false is here so that if we upgrade + # from a version of ceph that does not have iscsi gws + # then this task will not fail + - name: stop rbd-target-gw + systemd: + name: rbd-target-gw + state: stopped + enabled: yes + failed_when: false + when: + - not containerized_deployment + + roles: + - ceph-defaults + - { role: ceph-common, when: not containerized_deployment } + - { role: ceph-docker-common, when: containerized_deployment } + - ceph-config + - { role: ceph-iscsi-gw, + when: "(ceph_release_num[ceph_release] >= ceph_release_num.luminous) or + (ceph_release_num[ceph_release] < ceph_release_num.luminous and rolling_update)" } + + post_tasks: + - name: start rbd-target-gw + systemd: + name: rbd-target-gw + state: started + enabled: yes + when: + - not containerized_deployment + + - name: upgrade ceph client node vars: