]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge: do not stop ceph.target on each daemon
authorSébastien Han <seb@redhat.com>
Fri, 27 Jan 2017 14:40:41 +0000 (15:40 +0100)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 31 Jan 2017 13:35:47 +0000 (07:35 -0600)
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 <seb@redhat.com>
(cherry picked from commit d5dd658cfa1a11fdb92d162c368a0e664d98d525)

infrastructure-playbooks/purge-cluster.yml

index 2bff676a0f4b8a8a04ac8f5083350474aff94a2c..628b02f781ff5f7af280e750fc16c951aca223ef 100644 (file)
   - 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 }}
   - 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 }}
   - 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
   - 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
     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}}
   - 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 }}
      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