]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rgw: rename endpoints to zone_endpoints to match rgw spec 50021/head
authorNizamudeen A <nia@redhat.com>
Tue, 7 Feb 2023 19:14:37 +0000 (00:44 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 7 Feb 2023 19:14:37 +0000 (00:44 +0530)
As per the docs (and the codes), the rgw_spec.endpoint should actually
be rgw_spec.zone_endpoint.

```
rgw_realm: myrealm
rgw_zonegroup: myzonegroup
rgw_zone: myzone
zone_endpoints: http://<rgw_host1>:<rgw_port1>, http://<rgw_host2>:<rgw_port2>
```
Refer: https://docs.ceph.com/en/latest/mgr/rgw/#rgw-realm-operations

Signed-off-by: Nizamudeen A <nia@redhat.com>
src/python-common/ceph/rgw/rgwam_core.py

index ac74405babc5658e3a3ae3c7135152bffaec2cdc..7041ea1544f0069c4cdc4b3e7b08152d0f0ca28a 100644 (file)
@@ -780,13 +780,13 @@ class RGWAM:
 
         zone = self.create_zone(realm, zonegroup, rgw_spec.rgw_zone,
                                 False,  # secondary zone
-                                access_key, secret, endpoints=rgw_spec.endpoints)
+                                access_key, secret, endpoints=rgw_spec.zone_endpoints)
         self.update_period(realm, zonegroup, zone)
 
         period = RGWPeriod(period_info)
         logging.debug(period.to_json())
 
-        if start_radosgw and rgw_spec.endpoints is None:
+        if start_radosgw and rgw_spec.zone_endpoints is None:
             secondary_realm_token = RealmToken(realm_name,
                                                realm_id,
                                                None,   # no endpoint