From 802efcbd755ba6ed476b67977ff2a6fa15317d0e Mon Sep 17 00:00:00 2001 From: Ali Maredia Date: Fri, 5 Jun 2020 21:21:27 +0000 Subject: [PATCH] rgw multisite: add master zone endpoints to zonegroup 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 (cherry picked from commit 0175c205fa16c05e2bbf5b4d8111092555aefa66) --- roles/ceph-rgw/tasks/multisite/master.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/ceph-rgw/tasks/multisite/master.yml b/roles/ceph-rgw/tasks/multisite/master.yml index b8c29b96d..269681287 100644 --- a/roles/ceph-rgw/tasks/multisite/master.yml +++ b/roles/ceph-rgw/tasks/multisite/master.yml @@ -31,6 +31,15 @@ - 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 }}"