Skip to content

squid: qa/multisite: fix test_bucket_remove false failure on bucket deletion check - #70405

Merged
batrick merged 1 commit into
ceph:squidfrom
adamemerson:wip-75465-squid
Jul 27, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
adamemerson:wip-75465-squid

Conversation

@adamemerson

Copy link
Copy Markdown
Contributor

… check

get_bucket() was silently returning None for missing buckets instead of
raising, causing check_all_buckets_dont_exist() to always report buckets
as still present after deletion. fix get_bucket() to propagate ClientError

also, replace bare exception with specific ClientError handling
and logging in check_all_buckets_exist and check_all_buckets_dont_exist

Signed-off-by: Shilpa Jagannath <[email protected]>
(cherry picked from commit b20a3b7)

Conflicts:
	src/test/rgw/rgw_multi/tests.py
 - Extra blank line in upstream from backported fixes.

Fixes: https://tracker.ceph.com/issues/78505
Signed-off-by: Adam C. Emerson <[email protected]>
@adamemerson
adamemerson requested a review from a team July 21, 2026 19:40
@adamemerson
adamemerson requested a review from a team as a code owner July 21, 2026 19:40
@github-actions github-actions Bot added this to the squid milestone Jul 21, 2026
@adamemerson
adamemerson requested review from cbodley and smanjara July 21, 2026 19:41

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #70405 SOURCE PR SOURCE STATUS
34c35b5 qa/multisite: fix test_bucket_remove false failure on bucket deletion check PR #68167 b20a3b7 qa/multisite: fix test_bucket_remove false failure on bucket deletion check

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or 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.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 34c35b5 (cherry-pick of b20a3b7)

Affected File(s)

Range Diff

Click to expand
--- Original (b20a3b7c)
+++ Backport (34c35b51)
@@ -8,3 +8,11 @@
 and logging in check_all_buckets_exist and check_all_buckets_dont_exist
 
 Signed-off-by: Shilpa Jagannath <[email protected]>
+(cherry picked from commit b20a3b7c67952e12a1df4ac2c51e1baee9ffcce0)
+
+Conflicts:
+	src/test/rgw/rgw_multi/tests.py
+ - Extra blank line in upstream from backported fixes.
+
+Fixes: https://tracker.ceph.com/issues/78505
+Signed-off-by: Adam C. Emerson <[email protected]>

================================================================================
RANGE DIFF
================================================================================

1:  b20a3b7c679 ! 1:  34c35b51da8 qa/multisite: fix test_bucket_remove false failure on bucket deletion check
    @@ Commit message
         and logging in check_all_buckets_exist and check_all_buckets_dont_exist
     
         Signed-off-by: Shilpa Jagannath <[email protected]>
    +    (cherry picked from commit b20a3b7c67952e12a1df4ac2c51e1baee9ffcce0)
    +
    +    Conflicts:
    +            src/test/rgw/rgw_multi/tests.py
    +     - Extra blank line in upstream from backported fixes.
    +
    +    Fixes: https://tracker.ceph.com/issues/78505
    +    Signed-off-by: Adam C. Emerson <[email protected]>
     
      ## src/test/rgw/rgw_multi/tests.py ##
     @@ src/test/rgw/rgw_multi/tests.py: def check_all_buckets_exist(zone_conn, buckets):
    @@ src/test/rgw/rgw_multi/tests.py: def check_all_buckets_dont_exist(zone_conn, buc
     -        except:
     -            continue
     -
    +-        log.critical('zone %s contains bucket %s', zone.zone, b)
    +-        return False
     +        except ClientError as e:
     +            errcode = e.response['Error']['Code']
     +            if errcode in ['404', 'NoSuchBucket']:
     +                continue
     +            log.critical('zone %s unexpected error checking bucket %s: %s', zone_conn.zone, b, errcode)
     +            return False
    -         log.critical('zone %s contains bucket %s', zone_conn.zone, b)
    --        return False
    ++        log.critical('zone %s contains bucket %s', zone_conn.zone, b)
     +        remaining.append(b)
      
     -    return True

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.


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

View workflow run

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

yuriw commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri13-testing-20260721.194244-squid.

@adamemerson

Copy link
Copy Markdown
Contributor Author

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Jul 21, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@smanjara

Copy link
Copy Markdown
Contributor

thank you!

@cbodley

cbodley commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

oops, we had a separate tracker https://tracker.ceph.com/issues/77478 for this on squid, and i opened #70260 with a fix for that specific issue. much better to backport what's on main, so i'll close mine as a duplicate

@batrick
batrick merged commit c99d56d into ceph:squid Jul 27, 2026
14 of 15 checks passed
@adamemerson
adamemerson deleted the wip-75465-squid branch August 6, 2026 16:29
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