]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw multisite: add master zone endpoints to zonegroup
authorAli Maredia <amaredia@redhat.com>
Fri, 5 Jun 2020 21:21:27 +0000 (21:21 +0000)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 9 Jun 2020 16:29:56 +0000 (12:29 -0400)
We were only adding the endpoints to the master zone but not to the
zonegroup.
This patch fixes the issue.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1839228
Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit 0175c205fa16c05e2bbf5b4d8111092555aefa66)

roles/ceph-rgw/tasks/multisite/master.yml

index b8c29b96d8219f9a6714b91f863dd9fe8a57ba66..269681287d44df1664265f08607f929e7d0a4b0f 100644 (file)
     - item.item.is_master | bool
     - "'No such file or directory' in item.stderr"
 
+- name: add endpoints to their zone groups(s)
+  command: "{{ container_exec_cmd }} radosgw-admin zonegroup modify --cluster={{ cluster }} --rgw-realm={{ item.realm }} --rgw-zonegroup={{ item.zonegroup }} --endpoints {{ item.endpoints }}"
+  loop: "{{ zone_endpoints_list }}"
+  delegate_to: "{{ groups[mon_group_name][0] }}"
+  run_once: true
+  when:
+    - zone_endpoints_list is defined
+    - item.is_master | bool
+
 - name: add endpoints to their zone(s)
   command: "{{ container_exec_cmd }} radosgw-admin zone modify --cluster={{ cluster }} --rgw-realm={{ item.realm }} --rgw-zonegroup={{ item.zonegroup }} --rgw-zone={{ item.zone }} --endpoints {{ item.endpoints }}"
   loop: "{{ zone_endpoints_list }}"