Repository navigation
squid: qa/radosgw_admin: replace boto2 with boto3 - #68849
Conversation
they were comparing the output of 'radosgw-admin policy' with the xml output of boto2's get_acl() function, but boto3 doesn't expose the xml response 'radosgw-admin policy' is just dumping the same output as our s3 GetObjectAcl api, so test coverage from s3-tests is sufficient for this Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit 070945f) Fixes: https://tracker.ceph.com/issues/75224 Signed-off-by: Adam C. Emerson <[email protected]>
the requestlog queue is only used for debugging, and relied on boto2 hooks that aren't worth rewriting in boto3 Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit b677a49) Fixes: https://tracker.ceph.com/issues/75224 Signed-off-by: Adam C. Emerson <[email protected]>
Fixes: https://tracker.ceph.com/issues/74591 Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit 2a94847) Fixes: https://tracker.ceph.com/issues/75224 Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit fdc44e5) Fixes: https://tracker.ceph.com/issues/75224 Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit 9aa7f82) Conflicts: qa/tasks/radosgw_admin_rest.py - Different argument structure in squid than main - Tests in main but not in squid Fixes: https://tracker.ceph.com/issues/75224 Signed-off-by: Adam C. Emerson <[email protected]>
replace the boto2 connection with a boto3 client for bucket/object creation aws credentials are passed into rgwadmin_rest() as an instance of botocore.auth.SigV4Auth build_admin_request() now returns an instance of botocore.awsrequest.AWSRequest instead of boto.connection.AWSAuthConnection Fixes: https://tracker.ceph.com/issues/74591 Signed-off-by: Casey Bodley <[email protected]> (cherry picked from commit a7f557c) Conflicts: qa/tasks/radosgw_admin_rest.py - Differing argument structure in squid than main - Tests in main but not squid Used Claude Opus 4.7 to review, which caught an error in commit resolution that I then fixed. Fixes: https://tracker.ceph.com/issues/75224 Signed-off-by: Adam C. Emerson <[email protected]>
|
jenkins test windows |
ffc55a6 to
0e57192
Compare
|
jenkins test make check |
|
jenkins test docs |
0e57192 to
da32436
Compare
This fixes the run-tox-qa failure in make check. Signed-off-by: Adam C. Emerson <[email protected]>
da32436 to
89cd6d4
Compare
There was a problem hiding this comment.
Automated Backport Parity Review
Discrepancies detected between the backport PR and the original source PR(s). Please see the Commit Parity Visualizer below.
Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Affected File(s)
qa/tasks/radosgw_admin_rest.py
Range Diff
Click to expand
--- Original (9aa7f826)
+++ Backport (3cd78cce)
@@ -1,3 +1,12 @@
qa/radosgw_admin_rest: pass endpoint to rgwadmin_rest()
Signed-off-by: Casey Bodley <[email protected]>
+(cherry picked from commit 9aa7f82664ffab36cfc8cd4857147ab98f8710f9)
+
+Conflicts:
+ qa/tasks/radosgw_admin_rest.py
+ - Different argument structure in squid than main
+ - Tests in main but not in squid
+
+Fixes: https://tracker.ceph.com/issues/75224
+Signed-off-by: Adam C. Emerson <[email protected]>
================================================================================
RANGE DIFF
================================================================================
1: 9aa7f82664f ! 1: 3cd78ccec60 qa/radosgw_admin_rest: pass endpoint to rgwadmin_rest()
@@ Commit message
qa/radosgw_admin_rest: pass endpoint to rgwadmin_rest()
Signed-off-by: Casey Bodley <[email protected]>
+ (cherry picked from commit 9aa7f82664ffab36cfc8cd4857147ab98f8710f9)
+
+ Conflicts:
+ qa/tasks/radosgw_admin_rest.py
+ - Different argument structure in squid than main
+ - Tests in main but not in squid
+
+ Fixes: https://tracker.ceph.com/issues/75224
+ Signed-off-by: Adam C. Emerson <[email protected]>
## qa/tasks/radosgw_admin_rest.py ##
@@ qa/tasks/radosgw_admin_rest.py: from tasks.util.rgw import get_user_summary, get_user_successful_ops, rgwadmin
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'add-keys','key','create','w/valid info','succeeds'
- (ret, out) = rgwadmin_rest(admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn,
- [('user', 'key'), 'create'],
+ ['key', 'create'],
{'uid' : user1,
'access-key' : access_key2,
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-key','key','rm','newly added key','succeeds, key is removed'
- (ret, out) = rgwadmin_rest(admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn,
- [('user', 'key'), 'rm'],
+ ['key', 'rm'],
{'uid' : user1,
'access-key' : access_key2
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'add-swift-key','key','create','swift key','succeeds'
- (ret, out) = rgwadmin_rest(admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn,
- [('user', 'subuser'), 'create'],
+ ['subuser', 'create'],
{'subuser' : subuser1,
'secret-key' : swift_secret1,
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'add-swift-subuser','key','create','swift sub-user key','succeeds'
- (ret, out) = rgwadmin_rest(admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn,
- [('user', 'subuser'), 'create'],
+ ['subuser', 'create'],
{'subuser' : subuser2,
'secret-key' : swift_secret2,
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-swift-key1','key','rm','subuser','succeeds, one key is removed'
- (ret, out) = rgwadmin_rest(admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn,
- [('user', 'key'), 'rm'],
+ ['key', 'rm'],
{'subuser' : subuser1,
'key-type' :'swift'
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-subuser','subuser','rm','subuser','success, subuser is removed'
- (ret, out) = rgwadmin_rest(admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn,
- [('user', 'subuser'), 'rm'],
+ ['subuser', 'rm'],
{'subuser' : subuser1
})
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-subuser-with-keys','subuser','rm','subuser','succeeds, second subser and key is removed'
- (ret, out) = rgwadmin_rest(admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn,
- [('user', 'subuser'), 'rm'],
+ ['subuser', 'rm'],
{'subuser' : subuser2,
'key-type' : 'swift',
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
key.set_contents_from_string(object_name)
# now delete it
-- (ret, out) = rgwadmin_rest(admin_conn, [('bucket', 'object'), 'rm'], {'bucket' : bucket_name, 'object' : object_name})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('bucket', 'object'), 'rm'], {'bucket' : bucket_name, 'object' : object_name})
+- (ret, out) = rgwadmin_rest(admin_conn, ['object', 'rm'], {'bucket' : bucket_name, 'object' : object_name})
++ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['object', 'rm'], {'bucket' : bucket_name, 'object' : object_name})
assert ret == 200
# TESTCASE 'bucket-stats6','bucket','stats','after deleting key','succeeds, lists one no objects'
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# should be private already but guarantee it
key.set_acl('private')
-- (ret, out) = rgwadmin_rest(admin_conn, [('bucket', 'policy'), 'show'], {'bucket' : bucket.name, 'object' : key.key})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('bucket', 'policy'), 'show'], {'bucket' : bucket.name, 'object' : key.key})
+- (ret, out) = rgwadmin_rest(admin_conn, ['policy', 'show'], {'bucket' : bucket.name, 'object' : key.key})
++ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['policy', 'show'], {'bucket' : bucket.name, 'object' : key.key})
assert ret == 200
assert len(out['acl']['grant_map']) == 1
# add another grantee by making the object public read
key.set_acl('public-read')
-- (ret, out) = rgwadmin_rest(admin_conn, [('bucket', 'policy'), 'show'], {'bucket' : bucket.name, 'object' : key.key})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('bucket', 'policy'), 'show'], {'bucket' : bucket.name, 'object' : key.key})
+- (ret, out) = rgwadmin_rest(admin_conn, ['policy', 'show'], {'bucket' : bucket.name, 'object' : key.key})
++ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['policy', 'show'], {'bucket' : bucket.name, 'object' : key.key})
assert ret == 200
assert len(out['acl']['grant_map']) == 2
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'caps-add', 'caps', 'add', 'add user cap', 'succeeds'
caps = 'usage=read'
-- (ret, out) = rgwadmin_rest(admin_conn, [('user', 'caps'), 'add'], {'uid' : user1, 'user-caps' : caps})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('user', 'caps'), 'add'], {'uid' : user1, 'user-caps' : caps})
+- (ret, out) = rgwadmin_rest(admin_conn, ['caps', 'add'], {'uid' : user1, 'user-caps' : caps})
++ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['caps', 'add'], {'uid' : user1, 'user-caps' : caps})
assert ret == 200
assert out[0]['perm'] == 'read'
# TESTCASE 'caps-rm', 'caps', 'rm', 'remove existing cap from user', 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, [('user', 'caps'), 'rm'], {'uid' : user1, 'user-caps' : caps})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('user', 'caps'), 'rm'], {'uid' : user1, 'user-caps' : caps})
+- (ret, out) = rgwadmin_rest(admin_conn, ['caps', 'rm'], {'uid' : user1, 'user-caps' : caps})
++ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['caps', 'rm'], {'uid' : user1, 'user-caps' : caps})
assert ret == 200
assert not out
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'enabled' : 'true'})
+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'enabled' : 'true'})
assert ret == 200
-
- # TESTCASE 'ratelimit' 'user' 'modify' 'max-list-ops = 100' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-list-ops' : '100'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-list-ops' : '100'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
- assert ret == 200
- user_ratelimit = out['user_ratelimit']
- assert user_ratelimit['max_list_ops'] == 100
-
- # TESTCASE 'ratelimit' 'user' 'modify' 'max-delete-ops = 50' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-delete-ops' : '50'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-delete-ops' : '50'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
- assert ret == 200
- user_ratelimit = out['user_ratelimit']
- assert user_ratelimit['max_delete_ops'] == 50
-
- # TESTCASE 'ratelimit' 'bucket' 'modify' 'max-list-ops = 200' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-list-ops' : '200'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-list-ops' : '200'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
- assert ret == 200
- bucket_ratelimit = out['bucket_ratelimit']
- assert bucket_ratelimit['max_list_ops'] == 200
-
- # TESTCASE 'ratelimit' 'bucket' 'modify' 'max-delete-ops = 75' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-delete-ops' : '75'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-delete-ops' : '75'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
- assert ret == 200
- bucket_ratelimit = out['bucket_ratelimit']
- assert bucket_ratelimit['max_delete_ops'] == 75
-
- # TESTCASE 'ratelimit' 'global' 'modify' 'bucket' 'max-list-ops = 500' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-list-ops' : '500'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-list-ops' : '500'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'info'], {'global' : 'true'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'global' : 'true'})
- assert ret == 200
- # Check that global bucket ratelimit has the list ops set
- assert 'bucket_ratelimit' in out
- assert out['bucket_ratelimit']['max_list_ops'] == 500
-
- # TESTCASE 'ratelimit' 'global' 'modify' 'bucket' 'max-delete-ops = 300' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-delete-ops' : '300'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-delete-ops' : '300'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'info'], {'global' : 'true'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'global' : 'true'})
- assert ret == 200
- # Check that global bucket ratelimit has the delete ops set
- assert 'bucket_ratelimit' in out
- assert out['bucket_ratelimit']['max_delete_ops'] == 300
-
- # TESTCASE 'ratelimit' 'user' 'modify' 'multiple ops at once' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'modify'], {
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {
- 'ratelimit-scope' : 'user',
- 'uid' : ratelimit_user,
- 'max-read-ops' : '1000',
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- 'enabled' : 'true'
- })
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
- assert ret == 200
- user_ratelimit = out['user_ratelimit']
- assert user_ratelimit['enabled'] == True
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert user_ratelimit['max_delete_ops'] == 400
-
- # TESTCASE 'create account' 'account' 'post' 'creating a new account' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-
- # TESTCASE 'account-info' 'account' 'info' 'getting the account info, including its quota, and checking for default values' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
- assert ret == 200
- account_quota = out['quota']
- assert not account_quota["enabled"]
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert out["max_access_keys"] == 4
-
- # TESTCASE 'bucket-level-account-quota-set' 'account-quota-set' 'setting account quota at the bucket level. Other values should remain the same' 'succeeds'
-- (ret, out) = rgwadmin_rest(admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
- assert ret == 200
- # verifying bucket-level quota has been changed
- bucket_quota = out['bucket_quota']
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert out["max_buckets"] == 1000
- assert out["max_access_keys"] == 4
- # cleanup the account
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
- assert ret == 200
-
-
- # TESTCASE 'account-level-quota-set' 'account-quota-set' 'setting account quota at the account level. Other values should remain the same' 'succeeds'
- # re-create the account
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
- assert ret == 200
- # verifying account-level quota has been changed
- account_quota = out['quota']
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert out["max_buckets"] == 1000
- assert out["max_access_keys"] == 4
- # cleanup the account
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
- assert ret == 200
-
- # TESTCASE 'account-quota-set-invalid-args' 'account-quota-set' 'verify set quota requests with invalid args fail' 'fails'
- # re-create the account
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-
- # verify invalid quota-type fails
-- (ret, out) = rgwadmin_rest(admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'invalid', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'invalid', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 400
-
- # verify empty quota-type fails
-- (ret, out) = rgwadmin_rest(admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 400
-
- # verify request with no account id fails
-- (ret, out) = rgwadmin_rest(admin_conn, [('account', 'quota'), 'set'], {'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 400
-
- # cleanup the account
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
- assert ret == 200
-
- # TESTCASE 'rm account caps' 'user-caps-rm' 'verify access after removing user caps for account read and write' 'fails'
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert not err
-
- # checking failed access to create account
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 403
-
- # checking failed access to set quota
-- (ret, out) = rgwadmin_rest(admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
- assert ret == 403
-
- # checking failed access to get account info
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
- assert ret == 403
-
- # checking failed access to remove account
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
- assert ret == 403
-
- # TESTCASE 'add back account caps' 'user-caps-add' 'verify access after adding back user caps for account read and write' 'succeeds'
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert not err
-
- # checking create account access
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-
- # checking set quota access
-- (ret, out) = rgwadmin_rest(admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
- assert ret == 200
-
- # checking get account info access
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
- assert ret == 200
-
- # checking remove account access
-- (ret, out) = rgwadmin_rest(admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
- assert ret == 200Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Affected File(s)
qa/tasks/radosgw_admin_rest.py
Range Diff
Click to expand
--- Original (a7f557c3)
+++ Backport (7f4d05c8)
@@ -13,3 +13,14 @@
Fixes: https://tracker.ceph.com/issues/74591
Signed-off-by: Casey Bodley <[email protected]>
+(cherry picked from commit a7f557c3fb3b89569356c26d4da32d5c5922f324)
+Conflicts:
+ qa/tasks/radosgw_admin_rest.py
+ - Differing argument structure in squid than main
+ - Tests in main but not squid
+
+Used Claude Opus 4.7 to review, which caught an error in commit
+resolution that I then fixed.
+
+Fixes: https://tracker.ceph.com/issues/75224
+Signed-off-by: Adam C. Emerson <[email protected]>
================================================================================
RANGE DIFF
================================================================================
1: a7f557c3fb3 ! 1: 7f4d05c83dd qa/radosgw_admin_rest: replace boto2 with boto3
@@ Commit message
Fixes: https://tracker.ceph.com/issues/74591
Signed-off-by: Casey Bodley <[email protected]>
+ (cherry picked from commit a7f557c3fb3b89569356c26d4da32d5c5922f324)
+ Conflicts:
+ qa/tasks/radosgw_admin_rest.py
+ - Differing argument structure in squid than main
+ - Tests in main but not squid
+
+ Used Claude Opus 4.7 to review, which caught an error in commit
+ resolution that I then fixed.
+
+ Fixes: https://tracker.ceph.com/issues/75224
+ Signed-off-by: Adam C. Emerson <[email protected]>
## qa/tasks/radosgw_admin_rest.py ##
@@ qa/tasks/radosgw_admin_rest.py: To extract the inventory (in csv format) use the command:
@@ qa/tasks/radosgw_admin_rest.py: To extract the inventory (in csv format) use the
perform a rest command
"""
@@ qa/tasks/radosgw_admin_rest.py: def rgwadmin_rest(endpoint, connection, cmd, params=None, headers=None, raw=Fals
- return r, ''
- raise TypeError(f'Unsupported resource type for {str(r)}')
+ else:
+ return 'zone', cmd[0]
- def build_admin_request(conn, method, resource = '', headers=None, data='',
- query_args=None, params=None):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
+ swift_secret2 = 'ri2VJQcKSYATOY6uaDUX7pxgkWOW1YmC6OCxPHwy'
bucket_name = 'myfoo'
- account_id = 'RGW00000000000000001'
+
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
endpoint = ctx.rgw.role_endpoints.get(client)
assert endpoint, 'no rgw endpoint for {}'.format(client)
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'add-keys','key','create','w/valid info','succeeds'
- (ret, out) = rgwadmin_rest(endpoint, admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds,
- [('user', 'key'), 'create'],
+ ['key', 'create'],
{'uid' : user1,
'access-key' : access_key2,
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-key','key','rm','newly added key','succeeds, key is removed'
- (ret, out) = rgwadmin_rest(endpoint, admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds,
- [('user', 'key'), 'rm'],
+ ['key', 'rm'],
{'uid' : user1,
'access-key' : access_key2
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'add-swift-key','key','create','swift key','succeeds'
- (ret, out) = rgwadmin_rest(endpoint, admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds,
- [('user', 'subuser'), 'create'],
+ ['subuser', 'create'],
{'subuser' : subuser1,
'secret-key' : swift_secret1,
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'add-swift-subuser','key','create','swift sub-user key','succeeds'
- (ret, out) = rgwadmin_rest(endpoint, admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds,
- [('user', 'subuser'), 'create'],
+ ['subuser', 'create'],
{'subuser' : subuser2,
'secret-key' : swift_secret2,
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-swift-key1','key','rm','subuser','succeeds, one key is removed'
- (ret, out) = rgwadmin_rest(endpoint, admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds,
- [('user', 'key'), 'rm'],
+ ['key', 'rm'],
{'subuser' : subuser1,
'key-type' :'swift'
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-subuser','subuser','rm','subuser','success, subuser is removed'
- (ret, out) = rgwadmin_rest(endpoint, admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds,
- [('user', 'subuser'), 'rm'],
+ ['subuser', 'rm'],
{'subuser' : subuser1
})
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'rm-subuser-with-keys','subuser','rm','subuser','succeeds, second subser and key is removed'
- (ret, out) = rgwadmin_rest(endpoint, admin_conn,
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds,
- [('user', 'subuser'), 'rm'],
+ ['subuser', 'rm'],
{'subuser' : subuser2,
'key-type' : 'swift',
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
+ connection.put_object(Bucket=bucket_name, Key=key, Body=key)
# now delete it
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('bucket', 'object'), 'rm'], {'bucket' : bucket_name, 'object' : object_name})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('bucket', 'object'), 'rm'], {'bucket' : bucket_name, 'object' : key})
+- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['object', 'rm'], {'bucket' : bucket_name, 'object' : object_name})
++ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['object', 'rm'], {'bucket' : bucket_name, 'object' : key})
assert ret == 200
# TESTCASE 'bucket-stats6','bucket','stats','after deleting key','succeeds, lists one no objects'
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
+ key = 'seven'
+ connection.put_object(Bucket=bucket_name, Key=key, Body=key, ACL='private')
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('bucket', 'policy'), 'show'], {'bucket' : bucket.name, 'object' : key.key})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('bucket', 'policy'), 'show'], {'bucket' : bucket_name, 'object' : key})
+- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['policy', 'show'], {'bucket' : bucket.name, 'object' : key.key})
++ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['policy', 'show'], {'bucket' : bucket_name, 'object' : key})
assert ret == 200
assert len(out['acl']['grant_map']) == 1
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- key.set_acl('public-read')
+ connection.put_object_acl(Bucket=bucket_name, Key=key, ACL='public-read')
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('bucket', 'policy'), 'show'], {'bucket' : bucket.name, 'object' : key.key})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('bucket', 'policy'), 'show'], {'bucket' : bucket_name, 'object' : key})
+- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['policy', 'show'], {'bucket' : bucket.name, 'object' : key.key})
++ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['policy', 'show'], {'bucket' : bucket_name, 'object' : key})
assert ret == 200
assert len(out['acl']['grant_map']) == 2
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
# TESTCASE 'caps-add', 'caps', 'add', 'add user cap', 'succeeds'
caps = 'usage=read'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('user', 'caps'), 'add'], {'uid' : user1, 'user-caps' : caps})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('user', 'caps'), 'add'], {'uid' : user1, 'user-caps' : caps})
+- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['caps', 'add'], {'uid' : user1, 'user-caps' : caps})
++ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['caps', 'add'], {'uid' : user1, 'user-caps' : caps})
assert ret == 200
assert out[0]['perm'] == 'read'
# TESTCASE 'caps-rm', 'caps', 'rm', 'remove existing cap from user', 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('user', 'caps'), 'rm'], {'uid' : user1, 'user-caps' : caps})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('user', 'caps'), 'rm'], {'uid' : user1, 'user-caps' : caps})
+- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['caps', 'rm'], {'uid' : user1, 'user-caps' : caps})
++ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['caps', 'rm'], {'uid' : user1, 'user-caps' : caps})
assert ret == 200
assert not out
@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'enabled' : 'true'})
+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'enabled' : 'true'})
assert ret == 200
-
- # TESTCASE 'ratelimit' 'user' 'modify' 'max-list-ops = 100' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-list-ops' : '100'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-list-ops' : '100'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
- assert ret == 200
- user_ratelimit = out['user_ratelimit']
- assert user_ratelimit['max_list_ops'] == 100
-
- # TESTCASE 'ratelimit' 'user' 'modify' 'max-delete-ops = 50' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-delete-ops' : '50'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user, 'max-delete-ops' : '50'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
- assert ret == 200
- user_ratelimit = out['user_ratelimit']
- assert user_ratelimit['max_delete_ops'] == 50
-
- # TESTCASE 'ratelimit' 'bucket' 'modify' 'max-list-ops = 200' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-list-ops' : '200'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-list-ops' : '200'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
- assert ret == 200
- bucket_ratelimit = out['bucket_ratelimit']
- assert bucket_ratelimit['max_list_ops'] == 200
-
- # TESTCASE 'ratelimit' 'bucket' 'modify' 'max-delete-ops = 75' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-delete-ops' : '75'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket, 'max-delete-ops' : '75'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'info'], {'ratelimit-scope' : 'bucket', 'bucket' : ratelimit_bucket})
- assert ret == 200
- bucket_ratelimit = out['bucket_ratelimit']
- assert bucket_ratelimit['max_delete_ops'] == 75
-
- # TESTCASE 'ratelimit' 'global' 'modify' 'bucket' 'max-list-ops = 500' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-list-ops' : '500'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-list-ops' : '500'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'global' : 'true'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'info'], {'global' : 'true'})
- assert ret == 200
- # Check that global bucket ratelimit has the list ops set
- assert 'bucket_ratelimit' in out
- assert out['bucket_ratelimit']['max_list_ops'] == 500
-
- # TESTCASE 'ratelimit' 'global' 'modify' 'bucket' 'max-delete-ops = 300' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-delete-ops' : '300'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {'ratelimit-scope' : 'bucket', 'global': 'true', 'max-delete-ops' : '300'})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'global' : 'true'})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'info'], {'global' : 'true'})
- assert ret == 200
- # Check that global bucket ratelimit has the delete ops set
- assert 'bucket_ratelimit' in out
- assert out['bucket_ratelimit']['max_delete_ops'] == 300
-
- # TESTCASE 'ratelimit' 'user' 'modify' 'multiple ops at once' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'modify'], {
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'modify'], {
- 'ratelimit-scope' : 'user',
- 'uid' : ratelimit_user,
- 'max-read-ops' : '1000',
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- 'enabled' : 'true'
- })
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['ratelimit', 'info'], {'ratelimit-scope' : 'user', 'uid' : ratelimit_user})
- assert ret == 200
- user_ratelimit = out['user_ratelimit']
- assert user_ratelimit['enabled'] == True
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert user_ratelimit['max_delete_ops'] == 400
-
- # TESTCASE 'create account' 'account' 'post' 'creating a new account' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-
- # TESTCASE 'account-info' 'account' 'info' 'getting the account info, including its quota, and checking for default values' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'info'], {'id' : account_id})
- assert ret == 200
- account_quota = out['quota']
- assert not account_quota["enabled"]
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert out["max_access_keys"] == 4
-
- # TESTCASE 'bucket-level-account-quota-set' 'account-quota-set' 'setting account quota at the bucket level. Other values should remain the same' 'succeeds'
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'info'], {'id' : account_id})
- assert ret == 200
- # verifying bucket-level quota has been changed
- bucket_quota = out['bucket_quota']
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert out["max_buckets"] == 1000
- assert out["max_access_keys"] == 4
- # cleanup the account
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'rm'], {'id' : account_id})
- assert ret == 200
-
-
- # TESTCASE 'account-level-quota-set' 'account-quota-set' 'setting account quota at the account level. Other values should remain the same' 'succeeds'
- # re-create the account
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 200
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'info'], {'id' : account_id})
- assert ret == 200
- # verifying account-level quota has been changed
- account_quota = out['quota']
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert out["max_buckets"] == 1000
- assert out["max_access_keys"] == 4
- # cleanup the account
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'rm'], {'id' : account_id})
- assert ret == 200
-
- # TESTCASE 'account-quota-set-invalid-args' 'account-quota-set' 'verify set quota requests with invalid args fail' 'fails'
- # re-create the account
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-
- # verify invalid quota-type fails
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'invalid', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'invalid', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 400
-
- # verify empty quota-type fails
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('account', 'quota'), 'set'], {'id': account_id, 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 400
-
- # verify request with no account id fails
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('account', 'quota'), 'set'], {'quota-type' : 'bucket', 'max-size': 12345, 'max-objects' : 54321, 'enabled': True})
- assert ret == 400
-
- # cleanup the account
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'rm'], {'id' : account_id})
- assert ret == 200
-
- # TESTCASE 'rm account caps' 'user-caps-rm' 'verify access after removing user caps for account read and write' 'fails'
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert not err
-
- # checking failed access to create account
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 403
-
- # checking failed access to set quota
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
- assert ret == 403
-
- # checking failed access to get account info
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'info'], {'id' : account_id})
- assert ret == 403
-
- # checking failed access to remove account
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'rm'], {'id' : account_id})
- assert ret == 403
-
- # TESTCASE 'add back account caps' 'user-caps-add' 'verify access after adding back user caps for account read and write' 'succeeds'
-@@ qa/tasks/radosgw_admin_rest.py: def task(ctx, config):
- assert not err
-
- # checking create account access
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'post'], {'id' : account_id, 'name': account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'post'], {'id' : account_id, 'name': account_id})
- assert ret == 200
-
- # checking set quota access
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, [('account', 'quota'), 'set'], {'id': account_id, 'quota-type' : 'account', 'max-size': -1, 'max-objects' : -1, 'enabled': True})
- assert ret == 200
-
- # checking get account info access
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'info'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'info'], {'id' : account_id})
- assert ret == 200
-
- # checking remove account access
-- (ret, out) = rgwadmin_rest(endpoint, admin_conn, ['account', 'rm'], {'id' : account_id})
-+ (ret, out) = rgwadmin_rest(endpoint, admin_creds, ['account', 'rm'], {'id' : account_id})
- assert ret == 200Commit Parity Visualizer
| BACKPORT PR #68849 | SOURCE PR | SOURCE STATUS |
|---|---|---|
| cb45a55 qa/radosgw_admin: remove acl test cases | PR #67095 | 070945f qa/radosgw_admin: remove acl test cases |
| f4e2c78 qa/radosgw_admin: remove requestlog | b677a49 qa/radosgw_admin: remove requestlog | |
| 6550a15 qa/radosgw_admin: replace boto2 with boto3 | 2a94847 qa/radosgw_admin: replace boto2 with boto3 | |
| 700c6cb rgw/rest: RESTArgs::get_string() url-decodes query params | fdc44e5 rgw/rest: RESTArgs::get_string() url-decodes query params | |
| 3cd78cc qa/radosgw_admin_rest: pass endpoint to rgwadmin_rest() | 9aa7f82 qa/radosgw_admin_rest: pass endpoint to rgwadmin_rest() | |
| 7f4d05c qa/radosgw_admin_rest: replace boto2 with boto3 | a7f557c qa/radosgw_admin_rest: replace boto2 with boto3 | |
| 89cd6d4 squid: test/rgw_multi: Import boto.s3.user for UserJSONENcoder | <<<< EXTRA IN BACKPORT >>>> |
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
CI Run Log: View Workflow Details
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
/audit override |
|
✅ Audit Override Applied by @batrick. |
|
This PR has been added to squid integration testing by pdonnell started 2026-05-15-19:40. |
Original tracker: https://tracker.ceph.com/issues/74591
Original PR: #67095
Backport tracker: https://tracker.ceph.com/issues/75224
ffc55a69a05f07935b4cb20118ceca31bf031130 fixes a run-tox-qa failure in make check.
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.Checklist
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.