]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: drop realm.zone convention for rgw
authorSage Weil <sage@newdream.net>
Fri, 5 Mar 2021 21:30:20 +0000 (16:30 -0500)
committerSage Weil <sage@newdream.net>
Tue, 9 Mar 2021 19:29:43 +0000 (14:29 -0500)
Note that cephadm.py will no longer do anything with rgw realms and
zones.  That means that the setup of rgw roles here is only useful
for the default zone and a non-multisite config.

Signed-off-by: Sage Weil <sage@newdream.net>
qa/suites/rados/cephadm/smoke/fixed-2.yaml
qa/tasks/cephadm.py

index 827d887b6dd351953ff7553038dffe6d992b682e..e93564aa9da7e953477545bb9ee5b142bfe67198 100644 (file)
@@ -7,7 +7,7 @@ roles:
   - osd.2
   - osd.3
   - client.0
-  - ceph.rgw.realm.zone.a
+  - ceph.rgw.foo.a
   - node-exporter.a
   - alertmanager.a
 - - mon.b
index aa2a8740512d11bf7714229418a723419d7c745f..3be9a3686ecd5afc4f45e61d1d35543de5eacd1e 100644 (file)
@@ -732,30 +732,15 @@ def ceph_rgw(ctx, config):
                     if teuthology.is_type('rgw', cluster_name)(r)]:
             c_, _, id_ = teuthology.split_role(role)
             log.info('Adding %s on %s' % (role, remote.shortname))
-            realmzone = '.'.join(id_.split('.')[0:2])
-            if realmzone not in nodes:
-                nodes[realmzone] = []
-            nodes[realmzone].append(remote.shortname + '=' + id_)
+            svc = '.'.join(id_.split('.')[0:2])
+            if svc not in nodes:
+                nodes[svc] = []
+            nodes[svc].append(remote.shortname + '=' + id_)
             daemons[role] = (remote, id_)
 
-    for realmzone in nodes.keys():
-        (realm, zone) = realmzone.split('.', 1)
-
-        # TODO: those should be moved to mgr/cephadm
-        _shell(ctx, cluster_name, remote,
-               ['radosgw-admin', 'realm', 'create', '--rgw-realm', realm, '--default']
-        )
-        _shell(ctx, cluster_name, remote,
-               ['radosgw-admin', 'zonegroup', 'create', '--rgw-zonegroup=default', '--master', '--default']
-        )
-        _shell(ctx, cluster_name, remote,
-               ['radosgw-admin', 'zone', 'create', '--rgw-zonegroup=default', '--rgw-zone', zone,  '--master', '--default']
-        )
-
-    for realmzone, nodes in nodes.items():
-        (realm, zone) = realmzone.split('.', 1)
+    for svc, nodes in nodes.items():
         _shell(ctx, cluster_name, remote, [
-            'ceph', 'orch', 'apply', 'rgw', realm, zone,
+            'ceph', 'orch', 'apply', 'rgw', svc,
              '--placement',
              str(len(nodes)) + ';' + ';'.join(nodes)]
         )