Skip to content

squid: test/rgw: remove depracated boto dependency - #68470

Merged
batrick merged 2 commits into
ceph:squidfrom
yuvalif:wip-75370-squid
Jun 9, 2026
Merged

batrick merged 2 commits into
ceph:squidfrom
yuvalif:wip-75370-squid

Conversation

@yuvalif

@yuvalif yuvalif commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

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 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.

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)
@yuvalif yuvalif added this to the squid milestone Apr 20, 2026
@yuvalif
yuvalif requested a review from a team as a code owner April 20, 2026 10:31
@yuvalif

yuvalif commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

teuthology run: https://pulpito.ceph.com/yuvalif-2026-04-20_11:41:43-rgw:notifications-squid-release-distro-default-trial/

no boto2 dependency issues seen.
note that i backported another issue with cloudevents dependency as part of this PR.
however, kafka tests are still failing with: AssertionError: no creation event found for key:
this is most likely due to existing issues with kafka using localhost instead of API address.

@adamemerson @ivancich do you prefer tha tthis would be fixed here or in a separate squid PR?

@yuvalif

yuvalif commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@adamemerson

Copy link
Copy Markdown
Contributor

teuthology run: https://pulpito.ceph.com/yuvalif-2026-04-20_11:41:43-rgw:notifications-squid-release-distro-default-trial/

no boto2 dependency issues seen. note that i backported another issue with cloudevents dependency as part of this PR. however, kafka tests are still failing with: AssertionError: no creation event found for key: this is most likely due to existing issues with kafka using localhost instead of API address.

@adamemerson @ivancich do you prefer tha tthis would be fixed here or in a separate squid PR?

Separate PR is fine. Thank you!

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

This comment was marked as outdated.

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

batrick commented May 15, 2026

Copy link
Copy Markdown
Member

Automated Redmine Linkage Audit

The following tracking irregularities were found:

Closed/Resolved Backport Ticket: Backport tracker [#75058](https://tracker.ceph.com/issues/75058) is already Resolved. Please reconcile.
Mismatched PR Link: Backport tracker [#75058](https://tracker.ceph.com/issues/75058) points to PR https://github.com/ceph/ceph/pull/67450, not this backport PR https://github.com/ceph/ceph/pull/68470.

Well that's confusing.

@batrick

batrick commented May 15, 2026

Copy link
Copy Markdown
Member

This PR has been added to squid integration testing by pdonnell started 2026-05-15-19:40.

@batrick

batrick commented May 29, 2026

Copy link
Copy Markdown
Member

Automated Redmine Linkage Audit
The following tracking irregularities were found:

Closed/Resolved Backport Ticket: Backport tracker [#75058](https://tracker.ceph.com/issues/75058) is already Resolved. Please reconcile.
Mismatched PR Link: Backport tracker [#75058](https://tracker.ceph.com/issues/75058) points to PR https://github.com/ceph/ceph/pull/67450, not this backport PR https://github.com/ceph/ceph/pull/68470.

Well that's confusing.

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:

https://tracker.ceph.com/issues/74573#note-12

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Backport Parity Review

⚠️ Multiple Original PRs Detected: PR #67387, PR #68003

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

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

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

anrao19 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more details In : https://tracker.ceph.com/issues/76715
@yuvalif , if no further testing needed then pr can be merged

@anrao19

anrao19 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 9, 2026
@batrick
batrick merged commit a6ebcbf into ceph:squid Jun 9, 2026
14 of 16 checks passed
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.

5 participants