mirror of
https://github.com/ceph/ceph
synced 2025-02-20 01:17:47 +00:00
rgw: realm create only sets default realm on --default
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
db4959e44f
commit
d64e273de1
@ -103,6 +103,8 @@
|
||||
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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user