Skip to content

squid: : Implement Admin REST APIs for Setting Account Quota - #66919

Open
thotz wants to merge 5 commits into
ceph:squidfrom
thotz:squid-bp-admin-rest-api-for-setting-account-quota
Open

thotz wants to merge 5 commits into
ceph:squidfrom
thotz:squid-bp-admin-rest-api-for-setting-account-quota

Conversation

@thotz

@thotz thotz commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor

Backport Tracker : https://tracker.ceph.com/issues/74395

backport of #65480
parent tracker: https://tracker.ceph.com/issues/72527

Signed-off-by: Jiffin Tony Thottan [[email protected]]

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.

Comment thread doc/radosgw/adminops.rst Resolved
Comment thread doc/radosgw/adminops.rst Resolved
Comment thread doc/radosgw/adminops.rst Resolved
Comment thread doc/radosgw/adminops.rst Resolved
Comment thread doc/radosgw/adminops.rst Resolved
@thotz
thotz force-pushed the squid-bp-admin-rest-api-for-setting-account-quota branch from 39dd62c to 2b5a5c7 Compare January 14, 2026 08:27
@thotz

thotz commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

@anthonyeleven I have backported the change from #65480. May I send PR for your doc suggestions directly to Main than here?

@thotz

thotz commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@thotz

thotz commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@thotz

thotz commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@thotz

thotz commented Jan 16, 2026

Copy link
Copy Markdown
Contributor Author

@anthonyeleven created PR #66945 to address comments here

@thotz

thotz commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@thotz

thotz commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

1 similar comment
@thotz

thotz commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@thotz
thotz force-pushed the squid-bp-admin-rest-api-for-setting-account-quota branch 3 times, most recently from 36f1176 to 6e908f9 Compare January 21, 2026 07:09
@thotz

thotz commented Jan 21, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

thotz added a commit to thotz/ceph that referenced this pull request Jan 22, 2026
Based on comment received on ceph#66919 (comment)

Signed-off-by: Jiffin Tony Thottan <[email protected]>
@thotz

thotz commented Jan 22, 2026

Copy link
Copy Markdown
Contributor Author

seeing below failure wrt ceph-api test

CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_EXECUTABLE Python3_INCLUDE_DIRS
  Python3_LIBRARIES Interpreter Development Development.Module
  Development.Embed) (Required is exact version "3.10")

      Reason given by package: 
          Interpreter: Wrong version for the interpreter "/bin/python3"

Call Stack (most recent call first):
  /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindPython/Support.cmake:3863 (find_package_handle_standard_args)
  cmake/modules/FindPython3.cmake:545 (include)
  CMakeLists.txt:557 (find_package)

I am not sure whether this is related to my PR, some python version 3.10

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

nzliu-dev added 5 commits June 1, 2026 11:42
This commit implements the functionality of setting bucket- and account-level quotas with PUT /admin/account

tracker: https://tracker.ceph.com/issues/72527
Signed-off-by: Nicholas Liu <[email protected]>
(cherry picked from commit e45368e)
(cherry picked from commit 67f655c)
This commit refactors the test_rgw_admin_meta test by using common helper functions

Signed-off-by: Nicholas Liu <[email protected]>
(cherry picked from commit 60e3de2)
(cherry picked from commit 4935d74)
Signed-off-by: Jiffin Tony Thottan <[email protected]>
This commit adds documentation on how to create, get, modify, and delete accounts using Admin APIs. It also explains how to set quota for an account and how to create a user under an account

Signed-off-by: Nicholas Liu <[email protected]>
(cherry picked from commit 78c55d6)
(cherry picked from commit 3a3c65f)
This commit addresses PR comments related to the doc/radosgw/adminops documentation

Signed-off-by: Nicholas Liu <[email protected]>
(cherry picked from commit 8e80e00)
(cherry picked from commit 1c52725)
This commit implements tests related to setting account quotas at the account and bucket levels for qa and Teuthology
tracker: https://tracker.ceph.com/issues/72527
Signed-off-by: Nicholas Liu <[email protected]>

(cherry picked from commit 187571e9e7d4e151b7f99779450e29eaa004a0bb)
(cherry picked from commit fcca9dbb872a6c4ac1441776bb378911e8aa80c4)

Conflicts:
	qa/tasks/radosgw_admin_rest.py  rgwadmin_rest() changes for boto3
@cbodley
cbodley force-pushed the squid-bp-admin-rest-api-for-setting-account-quota branch from 6ec70f0 to 1cef58a Compare June 1, 2026 15:52
@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri-testing-20260622.143629-squid.

@adamemerson

Copy link
Copy Markdown
Contributor

Removing from QA batch as I think it's the source of:

Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_teuthology_77435da2d8234168c71bbc2f2c4c68a46bb62ad0/teuthology/run_tasks.py", line 105, in run_tasks
    manager = run_one_task(taskname, ctx=ctx, config=config)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/teuthworker/src/git.ceph.com_teuthology_77435da2d8234168c71bbc2f2c4c68a46bb62ad0/teuthology/run_tasks.py", line 83, in run_one_task
    return task(**kwargs)
           ^^^^^^^^^^^^^^
  File "/home/teuthworker/src/github.com_ceph_ceph-ci_bbb40dd46ded1f1c96b475664656371ed8eae84c/qa/tasks/radosgw_admin_rest.py", line 670, in task
    (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('bucket', 'object'), 'rm'], {'bucket' : bucket_name, 'object' : object_name})
                                         ^^^^^^^^^^
NameError: name 'admin_conn' is not defined. Did you mean: 'admin_caps'?

@yuriw

yuriw commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This PR has been removed from wip-yuri-testing-20260622.143629-squid.

@batrick batrick modified the milestones: v19.2.5, v19.2.6 Jul 21, 2026
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 21, 2026
@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. and removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. labels Jul 21, 2026
@batrick batrick modified the milestones: v19.2.7, squid Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build/ops documentation releng-audit-fail Release engineering: failed backport verification audit. rgw tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants