]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: realm create only sets default realm on --default
authorCasey Bodley <cbodley@redhat.com>
Fri, 23 Aug 2024 18:49:32 +0000 (14:49 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 23 Aug 2024 20:12:33 +0000 (16:12 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
PendingReleaseNotes
src/rgw/driver/rados/rgw_zone.cc

index e2b678bafdd3eeaaffe2a1241cecb59b54607a13..eae40486767ed201d3adfb44208ad898ed9e1614 100644 (file)
   config option. Previously, they would ignore invalid or missing realms and
   go on to load a zone/zonegroup in a different realm. If startup fails with
   a  "failed to load realm" error, fix or remove the ``rgw_realm`` option.
+* rgw: The radosgw-admin commands ``realm create`` and ``realm pull`` no
+  longer set the default realm without ``--default``.
 * CephFS: Running the command "ceph fs authorize" for an existing entity now
   upgrades the entity's capabilities instead of printing an error. It can now
   also change read/write permissions in a capability that the entity already
index 1e9361c888913bb6e9ffad784e769718e1ce57bb..ae7a4d48e5e6b10ab5f5a7b38cd68aabe9ef3081 100644 (file)
@@ -532,14 +532,6 @@ int create_realm(const DoutPrefixProvider* dpp, optional_yield y,
     return r;
   }
 
-  // try to set as default. may race with another create, so pass exclusive=true
-  // so we don't override an existing default
-  r = set_default_realm(dpp, y, cfgstore, info, true);
-  if (r < 0 && r != -EEXIST) {
-    ldpp_dout(dpp, 0) << "WARNING: failed to set realm as default: "
-        << cpp_strerror(r) << dendl;
-  }
-
   if (writer_out) {
     *writer_out = std::move(writer);
   }