Repository navigation
rgw/radosgw-admin: remove unused CLI locals and macros - #71569
Conversation
Drop dead locals, argparse handlers, and the unused CHECK_SUCCESS macro from radosgw-admin.cc. Sync radosgw-admin.rst with supported pubsub flags. Behavior of supported commands and flags is unchanged. Signed-off-by: ramin.najarbashi <[email protected]>
de6b832 to
b47f29c
Compare
|
@chardan — context for this small PR: This is slice 1 of an incremental landing plan for the radosgw-admin work in #71462. Rather than asking reviewers to absorb the full modularization diff at once, I am opening a series of small, behavior-neutral PRs on Goals:
Once the series is merged, the cumulative result should cover everything in #71462 (plus the review fix-ups), and we can close #71462. This PR only removes unused locals/macros and syncs the man page; no modularization yet. Feedback on the split order is welcome. |
|
Hi — gentle ping on slice 1. I posted the full landing plan on #71462 before. This PR is the first step: it only removes dead locals/macros and syncs two pubsub flags in the man page. No modularization yet, and supported commands/flags should behave the same as before. The later slices (#71575, #71578, and the rest of the series) all depend on this landing first — I’m rebasing each one from fresh CI was green on the last run. I can rebase on latest cc @chardan — would appreciate a look when you have a moment. Happy to adjust anything if the split doesn’t work for you. |
chardan
left a comment
There was a problem hiding this comment.
Yay! Fewer macros in the world. We live in wonderful times.
|
This PR has been added to main integration testing by anuchaithra started 2026-09-29-10:04. |
pr testing completed and approved by @ivancich, more details in : https://tracker.ceph.com/issues/81104. |
| } \ | ||
| } while (0) | ||
|
|
||
| #define CHECK_SUCCESS(x, msg) \ |
There was a problem hiding this comment.
Vanishing macros generally fill my heart with contentment and peace.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Context (split from #71462)
This PR is the first in a planned series spun out of the larger
radosgw-admin modularization work in #71462.
Reviewing that WIP as one change set is difficult and time-consuming. To
reduce merge risk and keep review rounds focused, I am landing small,
behavior-neutral slices on
mainfirst—each PR is easy to verifyindependently—before stacking the structural modularization on top.
The end goal is that the combined series covers everything in #71462 (and
follow-up improvements from review), after which #71462 itself can be closed.
cc @chardan — you reviewed much of the modularization options/wiring feedback
on #71462; this slice removes only dead locals/macros that predate that work
and do not change supported CLI behavior. Happy to adjust the split order if
you prefer a different sequencing.
Summary
Remove dead locals, argparse branches, and the unused
CHECK_SUCCESSmacro inradosgw-adminthat parsed CLI flags (or were defined) but never read thevalues. This is behavior-neutral cleanup: supported commands and flags
(
global-cors get,--client-ids,--topic,--notification-id, etc.) areunchanged.
Removed unused locals / flags / macros:
CHECK_SUCCESS(defined, never used)errsgcors_allow_*and--allow-origin,--allow-methods,--allow-headers,--expose-headers(onlyglobal-cors getexists; it readsg_conf())client_id,op_idand--client-id,--op-id(--client-idsremains for OIDC)opt_realm_name,opt_zone_name,opt_zonegroup_name(config name copies;init_realm_paramuses the*_idoptionals)sub_name,event_idand--subscription,--event-id(pubsub uses--topic/--notification-id)Also drop the matching
--subscription/--event-identries fromdoc/man/8/radosgw-admin.rstso the man page matches supported flags.Testing
Local build and tests (Release,
WITH_RADOSGW_RADOS=ON, vstart cluster):ninja radosgw-admincram src/test/cli/radosgw-admin/help.t— passedninja ceph_test_cls_rgw_log ceph_test_cls_rgw_meta ceph_test_cls_rgw_admin_account_quota_set— built and run against localceph.confradosgw-admin user list,bucket list,realm list,global-cors getinvalid flag;--client-idsand--notification-idstill parseChecklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.