]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Remove zone from zonegroup and update period before deleting the zone to avoid incons...
authorShilpa Jagannath <smanjara@redhat.com>
Tue, 3 Jul 2018 09:43:07 +0000 (15:13 +0530)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 9 Jul 2018 12:27:24 +0000 (12:27 +0000)
When you delete a zone without removing from zonegroup, the period update would
fail since that command needs to load the zone and zonegroup to be able to
update the master. Period update would fail with an error like this:

radosgw-admin period update --commit
-1 Cannot find zone id= (name=), switching to local zonegroup configuration
-1 Cannot find zone id= (name=)

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
roles/ceph-rgw/tasks/multisite/destroy.yml

index acef129c6598504eaf619bac97ccf0abbacaa3c9..6054e7c0f93017305f7829ee79e31fadfcc36506 100644 (file)
@@ -4,6 +4,13 @@
   run_once: true
   failed_when: false
 
+- name: remove zone from zonegroup
+  command: radosgw-admin zonegroup remove --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }}
+  run_once: true
+  failed_when: false
+  notify:
+    - update period
+
 - name: delete the zone
   command: radosgw-admin zone delete --rgw-zonegroup={{ rgw_zonegroup }} --rgw-zone={{ rgw_zone }}
   run_once: true