From d5dd658cfa1a11fdb92d162c368a0e664d98d525 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 27 Jan 2017 15:40:41 +0100 Subject: [PATCH] purge: do not stop ceph.target on each daemon MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Doing this cause some all the daemons to go down at the same time. In a scenario where we colocate a monitor and an osd, this osds will take some time to go down which will make the 'umount' task fail. Signed-off-by: Sébastien Han --- infrastructure-playbooks/purge-cluster.yml | 50 ++++------------------ 1 file changed, 8 insertions(+), 42 deletions(-) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 9fea583df..6831a7eda 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -76,13 +76,6 @@ - include_vars: group_vars/{{ mds_group_name }}.yml ignore_errors: true - - name: stop ceph.target with systemd - service: - name: ceph.target - state: stopped - enabled: no - when: ansible_service_mgr == 'systemd' - - name: stop ceph mdss with systemd service: name: ceph-mds@{{ ansible_hostname }} @@ -120,13 +113,6 @@ - include_vars: group_vars/{{ rgw_group_name }}.yml ignore_errors: true - - name: stop ceph.target with systemd - service: - name: ceph.target - state: stopped - enabled: no - when: ansible_service_mgr == 'systemd' - - name: stop ceph rgws with systemd service: name: ceph-radosgw@rgw.{{ ansible_hostname }} @@ -164,13 +150,6 @@ - include_vars: group_vars/{{ rbdmirror_group_name }}.yml ignore_errors: true - - name: stop ceph.target with systemd - service: - name: ceph.target - state: stopped - enabled: no - when: ansible_service_mgr == 'systemd' - - name: stop ceph rbd mirror with systemd service: name: ceph-rbd-mirror@admin.service @@ -203,13 +182,6 @@ - include_vars: group_vars/{{ nfs_group_name }}.yml ignore_errors: true - - name: stop ceph.target with systemd - service: - name: ceph.target - state: stopped - enabled: no - when: ansible_service_mgr == 'systemd' - - name: stop ceph nfss with systemd service: name: nfs-ganesha @@ -272,13 +244,6 @@ register: osd_ids changed_when: false - - name: stop ceph.target with systemd - service: - name: ceph.target - state: stopped - enabled: no - when: ansible_service_mgr == 'systemd' - - name: stop ceph-osd with systemd service: name: ceph-osd@{{item}} @@ -440,13 +405,6 @@ - include_vars: group_vars/{{ restapi_group_name }}.yml ignore_errors: true - - name: stop ceph.target with systemd - service: - name: ceph.target - state: stopped - enabled: no - when: ansible_service_mgr == 'systemd' - - name: stop ceph mons with systemd service: name: ceph-mon@{{ ansible_hostname }} @@ -520,6 +478,14 @@ state: absent tasks: + + - name: stop ceph.target with systemd + service: + name: ceph.target + state: stopped + enabled: no + when: ansible_service_mgr == 'systemd' + - name: check for anything running ceph shell: "ps awux | grep -- /usr/bin/[c]eph-" register: check_for_running_ceph -- 2.39.5