Repository navigation
umbrella: python-common/rgw: fix get_realm_tokens returning empty result for realms with a secondary zone - #70416
Merged
Conversation
…alms with a secondary zone Issue: The Export Multi-site Realm Token feature in the Dashboard showed no token and no realm details for any realm that had a secondary zone configured (i.e. the realm had been replicated to another cluster). The API endpoint GET /api/rgw/realm/get_realm_tokens returned an empty list or raised a 500 Internal Server Error. Fixes: https://tracker.ceph.com/issues/78232 Signed-off-by: Aashish Sharma <[email protected]> (cherry picked from commit b6b591d)
Contributor
Author
|
jenkins test api |
1 similar comment
Contributor
Author
|
jenkins test api |
Contributor
|
This PR has been added to wip-yuri9-testing-20260729.135117-umbrella. |
Member
|
@adamemerson @ivancich needs your approval for merge. |
adamemerson
approved these changes
Aug 3, 2026
Contributor
Done, sorry. |
4 of 14 tasks
yuriw
added a commit
that referenced
this pull request
Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged PRs with a release milestone: four labels each had a real, actual PR land with that label where none of the label's existing path patterns matched any changed file. - common: PRs touching src/python-common/** (e.g. #70416, #69734) got cephadm and pybind auto-applied, since both of those already list src/python-common/**, but common's own pattern list only covers src/common/**, src/global/**, src/log/** -- missing the one prefix its siblings already have. - rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's immutable object cache daemon, not covered by any of rbd's existing patterns despite covering nearly every other src/tools/rbd* path. - rgw: PR #70401 (Kafka bucket-notification test files under qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*. - cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116) only get pybind -- too generic to route correctly. SMB's actual teuthology tests live under qa/suites/orch/cephadm/smb/**, so its source module belongs under cephadm's own pattern list alongside its sibling src/pybind/mgr/cephadm/**, which it was missing. Signed-off-by: Yuri Weinstein <[email protected]>
yuriw
added a commit
that referenced
this pull request
Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged PRs with a release milestone: five labels each had a real, actual PR land with that label where none of the label's existing path patterns matched any changed file. - common: PRs touching src/python-common/** (e.g. #70416, #69734) got cephadm and pybind auto-applied, since both of those already list src/python-common/**, but common's own pattern list only covers src/common/**, src/global/**, src/log/** -- missing the one prefix its siblings already have. - rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's immutable object cache daemon, not covered by any of rbd's existing patterns despite covering nearly every other src/tools/rbd* path. - rgw: PR #70401 (Kafka bucket-notification test files under qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*. - cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116) only get pybind -- too generic to route correctly. SMB's actual teuthology tests live under qa/suites/orch/cephadm/smb/**, so its source module belongs under cephadm's own pattern list alongside its sibling src/pybind/mgr/cephadm/**, which it was missing. - rgw: PR #65695 touches src/pybind/mgr/rgw/module.py (the RGW mgr orchestration module) and only gets pybind, same generic-catch-all problem as the cephadm/smb case above. rbd already covers its own mgr submodule (src/pybind/mgr/rbd_support/**) and nfs covers src/pybind/mgr/nfs/**; rgw was the one domain label missing its own mgr module. Signed-off-by: Yuri Weinstein <[email protected]>
yuriw
added a commit
that referenced
this pull request
Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged PRs with a release milestone, then a systematic audit of every src/pybind/mgr/<submodule>/ directory: seven labels each were missing coverage for a real, existing path. - common: PRs touching src/python-common/** (e.g. #70416, #69734) got cephadm and pybind auto-applied, since both of those already list src/python-common/**, but common's own pattern list only covers src/common/**, src/global/**, src/log/** -- missing the one prefix its siblings already have. - rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's immutable object cache daemon, not covered by any of rbd's existing patterns despite covering nearly every other src/tools/rbd* path. - rgw: PR #70401 (Kafka bucket-notification test files under qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*. - cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116) only get pybind -- too generic to route correctly. SMB's actual teuthology tests live under qa/suites/orch/cephadm/smb/**, so its source module belongs under cephadm's own pattern list alongside its sibling src/pybind/mgr/cephadm/**, which it was missing. - rgw: PR #65695 touches src/pybind/mgr/rgw/module.py (the RGW mgr orchestration module) and only gets pybind, same generic-catch-all problem as the cephadm/smb case above. rbd already covers its own mgr submodule (src/pybind/mgr/rbd_support/**) and nfs covers src/pybind/mgr/nfs/**; rgw was the one domain label missing its own mgr module. - nvmeof: src/pybind/mgr/nvmeof/** (the actual NVMe-oF orchestration module) was uncovered -- nvmeof's existing patterns only reached cephadm's nvmeof service/template files, not the mgr module itself. - cephfs: src/pybind/mgr/mirroring/** (cephfs-mirror snapshot mirroring, confirmed cephfs-specific by content -- imports FSSnapshotMirror, zero rbd references, only an fs/ subdirectory) was uncovered, alongside cephfs's other already-covered mgr submodules (mds_autoscaler, status, volumes). Found via a systematic audit: every src/pybind/mgr/<name>/ submodule directory checked against current label coverage. The remaining uncovered submodules (alerts, balancer, crash, devicehealth, etc.) have no existing label that fits them and are left alone -- adding those would mean inventing new labels, a separate, bigger decision from filling a gap in a label that already exists. Signed-off-by: Yuri Weinstein <[email protected]>
yuriw
added a commit
that referenced
this pull request
Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged PRs with a release milestone, then a systematic audit of every src/pybind/mgr/<submodule>/ directory: eight labels each were missing coverage for a real, existing path. - common: PRs touching src/python-common/** (e.g. #70416, #69734) got cephadm and pybind auto-applied, since both of those already list src/python-common/**, but common's own pattern list only covers src/common/**, src/global/**, src/log/** -- missing the one prefix its siblings already have. - rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's immutable object cache daemon, not covered by any of rbd's existing patterns despite covering nearly every other src/tools/rbd* path. - rgw: PR #70401 (Kafka bucket-notification test files under qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*. - cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116) only get pybind -- too generic to route correctly. SMB's actual teuthology tests live under qa/suites/orch/cephadm/smb/**, so its source module belongs under cephadm's own pattern list alongside its sibling src/pybind/mgr/cephadm/**, which it was missing. - rgw: PR #65695 touches src/pybind/mgr/rgw/module.py (the RGW mgr orchestration module) and only gets pybind, same generic-catch-all problem as the cephadm/smb case above. rbd already covers its own mgr submodule (src/pybind/mgr/rbd_support/**) and nfs covers src/pybind/mgr/nfs/**; rgw was the one domain label missing its own mgr module. - nvmeof: src/pybind/mgr/nvmeof/** (the actual NVMe-oF orchestration module) was uncovered -- nvmeof's existing patterns only reached cephadm's nvmeof service/template files, not the mgr module itself. - cephfs: src/pybind/mgr/mirroring/** (cephfs-mirror snapshot mirroring, confirmed cephfs-specific by content -- imports FSSnapshotMirror, zero rbd references, only an fs/ subdirectory) was uncovered, alongside cephfs's other already-covered mgr submodules (mds_autoscaler, status, volumes). - cephfs: PR #70220 touches src/test/client/nonblocking.cc; cephfs already covers src/client/** (the library) and other test dirs (src/test/fs/**, src/test/libcephfs/**) but missed this client library's own unit test directory, src/test/client/**. Found via a systematic audit: every src/pybind/mgr/<name>/ submodule directory checked against current label coverage. The remaining uncovered submodules (alerts, balancer, crash, devicehealth, etc.) have no existing label that fits them and are left alone -- adding those would mean inventing new labels, a separate, bigger decision from filling a gap in a label that already exists. Signed-off-by: Yuri Weinstein <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/78478
backport of #70214
parent tracker: https://tracker.ceph.com/issues/78232
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh