Skip to content

rgw/admin: radosgw-admin gc list and gc process returns error if --bypass-gc used - #71071

Merged
ivancich merged 1 commit into
ceph:mainfrom
aadhikale:wip-79516-bypass-gc-throw-error
Sep 3, 2026
Merged

ivancich merged 1 commit into
ceph:mainfrom
aadhikale:wip-79516-bypass-gc-throw-error

Conversation

@aadhikale

@aadhikale aadhikale commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

fixes: https://tracker.ceph.com/issues/79516

Before Fix:

  1. radosgw-admin gc process --include-all --bypass-gc

{{*** Caught signal (Segmentation fault) ** }} {{ in thread 7f763af1cc40 thread_name:radosgw-admin }} {{ ceph version 20.2.1-294.el10cp (71400d000eb272c5f3f442a9d237e4981f013537) tentacle (stable - RelWithDebInfo) }} {{ 1: /lib64/libc.so.6(+0x411c0) [0x7f763d6681c0] }} {{ 2: (RGWGC::process(bool, optional_yield)+0x39) [0x5646da149729] }} {{ 3: main() }} {{ 4: /lib64/libc.so.6(+0x2a58e) [0x7f763d65158e] }} {{ 5: __libc_start_main() }} {{ 6: _start() }} Segmentation fault (core dumped) {{ }}

  1. radosgw-admin gc list --bypass-gc
    1: /lib64/libc.so.6(+0x3fc60) [0x7f4509270c60] 2: (RGWGC::list(int*, std::_cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int, bool, std::_cxx11::list<cls_rgw_gc_obj_info, std::allocator<cls_rgw_gc_obj_info> >&, bool*, bool&)+0xd8) [0x55cb328267c8] 3: main() 4: /lib64/libc.so.6(+0x2a610) [0x7f450925b610] 5: __libc_start_main() 6: _start()

After Fix:
[ceph: root@prachicode-0 /]# radosgw-admin gc list --bypass-gc
ERROR: 'gc list' command does not support --bypass-gc option

[ceph: root@prachicode-0 /]# radosgw-admin gc process --bypass-gc
ERROR: 'gc process' command does not support --bypass-gc option

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@aadhikale
aadhikale requested a review from a team as a code owner August 15, 2026 09:51
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

@aadhikale aadhikale changed the title rgw/admin: radosgw-admin gc list and gc process returns error if rgw/admin: radosgw-admin returns error if --bypass-gc used with gc list or with gc process Aug 15, 2026
@aadhikale aadhikale changed the title rgw/admin: radosgw-admin returns error if --bypass-gc used with gc list or with gc process rgw/admin: radosgw-admin gc list and gc process returns error if --bypass-gc used Aug 15, 2026
@ivancich

Copy link
Copy Markdown
Member

@aadhikale This refers to the wrong tracker in the comment here and in the commit message. I believe it should be tracker 79516. Please fix those. Do you think this is ready for review? If so, please add the needs-review label to the PR.

@aadhikale
aadhikale force-pushed the wip-79516-bypass-gc-throw-error branch from 5650954 to c7551e5 Compare August 20, 2026 15:05
@aadhikale

Copy link
Copy Markdown
Contributor Author

Hello @ivancich ,Thanks for pointing out. I have updated the commit message. I don’t have access to add the label.

@adamemerson

Copy link
Copy Markdown
Contributor

ok to test

@anrao19

anrao19 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-01-07:44.

@anrao19

anrao19 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-01-07:44.

pr testing completed and approved by @ivancich, more details in : https://tracker.ceph.com/issues/80139
@aadhikale, if no further testing is needed then this pr can be merged

@ivancich
ivancich merged commit b844433 into ceph:main Sep 3, 2026
7 checks passed
RaminNietzsche added a commit to RaminNietzsche/ceph that referenced this pull request Sep 3, 2026
Merge ceph/main into wip-rgw-admin-cleanup. Resolve radosgw-admin.cc
conflict by keeping modular GC dispatch and moving the --bypass-gc
rejection for gc list/process from main (ceph#71071) into gc.{h,cc}.
Other main changes (e.g. rgw_account.cc ceph#71396) auto-merged.

Signed-off-by: ramin.najarbashi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants