]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/rgw: fix setting rgw realm token in secondary site rgw spec 61715/head
authorAdam King <adking@redhat.com>
Thu, 27 Jun 2024 21:09:20 +0000 (17:09 -0400)
committerAdam King <adking@redhat.com>
Fri, 7 Feb 2025 20:53:56 +0000 (15:53 -0500)
commit09e461c312883cb7026aacafb57cd4f204b63448
treeda48e488ceec97b7c34f5b8aaa077152f2f18a0a
parent89751a32cbbe19c32037d4cb263060aa40fc99fc
mgr/rgw: fix setting rgw realm token in secondary site rgw spec

This was setting a field called "rgw_token" in the rgw spec
but this is not a real field in rgw specs. Instead we should
be setting "rgw_realm_token" which is what the field is
actually called.

Setting this nonexistent field causes the spec to be deleted
the first time cephadm needs to convert it from a json string
back into a python object (which happens whenever the module
restarts or the active mgr changes) which then causes all the
rgw daemons attached to the service to be removed

Fixes: https://tracker.ceph.com/issues/66824
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 95ae364325ddf3acc2ef9bac3e923fe9ca4ef6ba)
src/python-common/ceph/rgw/rgwam_core.py