Repository navigation
squid: test/rgw: remove depracated boto dependency - #68470
Conversation
Fixes: https://tracker.ceph.com/issues/75370 Signed-off-by: Yuval Lifshitz <[email protected]> Co-authored-by: Bob-Shell <bob-shell@ai-assistant> (cherry picked from commit 8e9c771)
Fixes: https://tracker.ceph.com/issues/75713 Signed-off-by: Yuval Lifshitz <[email protected]> (cherry picked from commit 957b4b6)
|
no boto2 dependency issues seen. @adamemerson @ivancich do you prefer tha tthis would be fixed here or in a separate squid PR? |
|
jenkins test api |
Separate PR is fine. Thank you! |
Well that's confusing. |
|
This PR has been added to squid integration testing by pdonnell started 2026-05-15-19:40. |
Okay I just went down the rabbit hole trying to figure why two backport PRs exist for https://tracker.ceph.com/issues/75058 It apparently is caused by: @yuvalif ... please just create a new ticket in the future. This is so confusing. I reverted that PR field update: |
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.
Deviation in Backport f056dab (cherry-pick of 8e9c771)
Affected File(s)
src/test/rgw/bucket_notification/api.pysrc/test/rgw/bucket_notification/test_bn.py
Range Diff
Click to expand
--- Original (8e9c7716)
+++ Backport (f056dab1)
@@ -1,6 +1,7 @@
test/rgw: remove depracated boto dependency
-Fixes: https://tracker.ceph.com/issues/73663
+Fixes: https://tracker.ceph.com/issues/75370
Signed-off-by: Yuval Lifshitz <[email protected]>
Co-authored-by: Bob-Shell <bob-shell@ai-assistant>
+(cherry picked from commit 8e9c77160d5cae2f6bd6d97a2ecdabb9ae9530bd)
================================================================================
RANGE DIFF
================================================================================
1: 8e9c77160d5 ! 1: f056dab1e29 test/rgw: remove depracated boto dependency
@@ Metadata
## Commit message ##
test/rgw: remove depracated boto dependency
- Fixes: https://tracker.ceph.com/issues/73663
+ Fixes: https://tracker.ceph.com/issues/75370
Signed-off-by: Yuval Lifshitz <[email protected]>
Co-authored-by: Bob-Shell <bob-shell@ai-assistant>
+ (cherry picked from commit 8e9c77160d5cae2f6bd6d97a2ecdabb9ae9530bd)
## src/test/rgw/bucket_notification/api.py ##
-@@ src/test/rgw/bucket_notification/api.py: import json
+@@ src/test/rgw/bucket_notification/api.py: from urllib import parse as urlparse
+ from time import gmtime, strftime
+ import boto3
+ from botocore.client import Config
++from botocore.exceptions import ClientError
+ import os
+ import subprocess
+ import json
log = logging.getLogger('bucket_notification.tests')
@@ src/test/rgw/bucket_notification/api.py: import json
NO_HTTP_BODY = ''
def put_object_tagging(conn, bucket_name, key, tags):
-@@ src/test/rgw/bucket_notification/api.py: def admin(args, cluster='noname', **kwargs):
- def ceph_admin(args, cluster='noname', **kwargs):
- """ ceph command """
- cmd = [test_path + 'test-rgw-call.sh', 'call_ceph', cluster] + args
-- print(' '.join(cmd))
- return bash(cmd, **kwargs)
-
- def delete_all_topics(conn, tenant, cluster):
-@@ src/test/rgw/bucket_notification/api.py: def delete_all_topics(conn, tenant, cluster):
- def set_rgw_config_option(client, option, value, cluster='noname'):
- """ change a config option """
- print(f'Setting {option} to {value} for {client} in cluster {cluster}')
-- return ceph_admin(['config', 'set', client, option, str(value)], cluster)
- \ No newline at end of file
-+ return ceph_admin(['config', 'set', client, option, str(value)], cluster)
## src/test/rgw/bucket_notification/requirements.txt ##
@@
--pynose
+ pynose
-boto >=2.6.0
-+nose-py3 >=1.0.0
boto3 >=1.0.0
configparser >=5.0.0
kafka-python >=2.0.0
@@ src/test/rgw/bucket_notification/test_bn.py: import hashlib
from cloudevents.http import from_http
from dateutil import parser
@@ src/test/rgw/bucket_notification/test_bn.py: from .api import PSTopicS3, \
+ delete_all_objects, \
+ delete_all_topics, \
put_object_tagging, \
- admin, \
- set_rgw_config_option, \
-- bash
-+ bash, \
+- admin
++ admin, \
+ S3Connection, \
+ S3Bucket, \
+ S3Key, \
+ MultipartUpload
from nose import SkipTest
- from nose.tools import assert_not_equal, assert_equal, assert_in, assert_not_in, assert_true
+-from nose.tools import assert_not_equal, assert_equal, assert_in, assert_true
-import boto.s3.tagging
++from nose.tools import assert_not_equal, assert_equal, assert_in, assert_not_in, assert_true
# configure logging for the tests module
class LogWrapper:
-@@ src/test/rgw/bucket_notification/test_bn.py: def connection(no_retries=False):
- vstart_secret_key = get_secret_key()
+@@ src/test/rgw/bucket_notification/test_bn.py: def connection():
+
conn = S3Connection(aws_access_key_id=vstart_access_key,
- aws_secret_access_key=vstart_secret_key,
-- is_secure=False, port=port_no, host=hostname,
-- calling_format='boto.s3.connection.OrdinaryCallingFormat')
-+ is_secure=False, port=port_no, host=hostname)
- if no_retries:
- conn.num_retries = 0
+ aws_secret_access_key=vstart_secret_key,
+- is_secure=False, port=port_no, host=hostname,
+- calling_format='boto.s3.connection.OrdinaryCallingFormat')
++ is_secure=False, port=port_no, host=hostname)
+
return conn
+
@@ src/test/rgw/bucket_notification/test_bn.py: def connection2():
- vstart_secret_key = get_secret_key()
conn = S3Connection(aws_access_key_id=vstart_access_key,
-- aws_secret_access_key=vstart_secret_key,
-- is_secure=False, port=port_no, host=hostname,
+ aws_secret_access_key=vstart_secret_key,
+- is_secure=False, port=port_no, host=hostname,
- calling_format='boto.s3.connection.OrdinaryCallingFormat')
-+ aws_secret_access_key=vstart_secret_key,
-+ is_secure=False, port=port_no, host=hostname)
++ is_secure=False, port=port_no, host=hostname)
return conn
@@ src/test/rgw/bucket_notification/test_bn.py: def another_user(user=None, tenant=None, account=None):
- assert_equal(rc, 0)
conn = S3Connection(aws_access_key_id=access_key,
-- aws_secret_access_key=secret_key,
-- is_secure=False, port=get_config_port(), host=get_config_host(),
+ aws_secret_access_key=secret_key,
+- is_secure=False, port=get_config_port(), host=get_config_host(),
- calling_format='boto.s3.connection.OrdinaryCallingFormat')
-+ aws_secret_access_key=secret_key,
-+ is_secure=False, port=get_config_port(), host=get_config_host())
++ is_secure=False, port=get_config_port(), host=get_config_host())
return conn, arn
-@@ src/test/rgw/bucket_notification/test_bn.py: def connect_random_user(tenant=''):
- assert_equal(rc, 0)
- conn = S3Connection(aws_access_key_id=access_key,
- aws_secret_access_key=secret_key,
-- is_secure=False, port=get_config_port(), host=get_config_host(),
-- calling_format='boto.s3.connection.OrdinaryCallingFormat')
-+ is_secure=False, port=get_config_port(), host=get_config_host())
- return conn
-
- ##############
-@@ src/test/rgw/bucket_notification/test_bn.py: def test_versioning_amqp():
+@@ src/test/rgw/bucket_notification/test_bn.py: def test_ps_s3_versioning_on_master():
s3_notification_conf.del_config()
topic_conf.del_config()
# delete the bucket
@@ src/test/rgw/bucket_notification/test_bn.py: def test_versioning_amqp():
bucket.delete_key(key.name, version_id=ver2)
bucket.delete_key(key.name, version_id=ver1)
#conn.delete_bucket(bucket_name)
-@@ src/test/rgw/bucket_notification/test_bn.py: def test_topic_migration_to_an_account():
- """test the topic migration procedure described at
- https://docs.ceph.com/en/latest/radosgw/account/#migrate-an-existing-user-into-an-account
- """
-+ # Initialize variables for cleanup in finally block
-+ user1_bucket_name = None
-+ user2_bucket_name = None
-+ user1_id = None
-+ account_id = None
-+
- try:
- # create an http server for notification delivery
- host = get_ip()
-@@ src/test/rgw/bucket_notification/test_bn.py: def test_topic_migration_to_an_account():
- )
- log.info("topic migration test has completed successfully")
- finally:
-- admin(["user", "rm", "--uid", user1_id, "--purge-data"], get_config_cluster())
-- admin(
-- ["bucket", "rm", "--bucket", user1_bucket_name, "--purge-data"],
-- get_config_cluster(),
-- )
-- admin(
-- ["bucket", "rm", "--bucket", user2_bucket_name, "--purge-data"],
-- get_config_cluster(),
-- )
-- admin(["account", "rm", "--account-id", account_id], get_config_cluster())
-+ if user1_id is not None:
-+ admin(["user", "rm", "--uid", user1_id, "--purge-data"], get_config_cluster())
-+ if user1_bucket_name is not None:
-+ admin(
-+ ["bucket", "rm", "--bucket", user1_bucket_name, "--purge-data"],
-+ get_config_cluster(),
-+ )
-+ if user2_bucket_name is not None:
-+ admin(
-+ ["bucket", "rm", "--bucket", user2_bucket_name, "--purge-data"],
-+ get_config_cluster(),
-+ )
-+ if account_id is not None:
-+ admin(["account", "rm", "--account-id", account_id], get_config_cluster())
-
- def persistent_notification_shard_config_change(endpoint_type, conn, new_num_shards, old_num_shards=11):
- """ test persistent notification shard config change """
+@@ src/test/rgw/bucket_notification/test_bn.py: def test_connection_caching():
+ stop_kafka_receiver(receiver_1, task_1)
+ if receiver_2 is not None:
+ stop_kafka_receiver(receiver_2, task_2)
++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(s) above 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.
Commit Parity Visualizer
| BACKPORT PR #68470 | SOURCE PR | SOURCE STATUS |
|---|---|---|
| f056dab test/rgw: remove depracated boto dependency | PR #67387 | 8e9c771 test/rgw: remove depracated boto dependency |
| <<<< MISSING IN BACKPORT >>>> | 8f97065 test/rgw/notifications: cleanup of tests | |
| <<<< MISSING IN BACKPORT >>>> | 8935c1f test/rgw/notifications: fixes needed to run the tests in a multisite environment | |
| <<<< MISSING IN BACKPORT >>>> | 0d8a70b test/rgw/notifications: migrate from nose to pytest | |
| <<<< MISSING IN BACKPORT >>>> | 5e204e1 test/rgw/notification: do not use netstat in the code | |
| <<<< MISSING IN BACKPORT >>>> | 7d90114 test/rgw/notifications: increase the max number of boto client connections | |
| e6f17db test/rgw/notification: fix the cloudevents package version | PR #68003 | 957b4b6 test/rgw/notification: fix the cloudevents package version |
🛟 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
|
pr testing completed and approved by @ivancich , more details In : https://tracker.ceph.com/issues/76715 |
|
pr testing completed and approved by @ivancich , more deatails : https://tracker.ceph.com/issues/76004 |
Fixes: https://tracker.ceph.com/issues/75370
(cherry picked from commit 8e9c771)
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.