Repository navigation
squid: qa/multisite: fix test_bucket_remove false failure on bucket deletion check - #70405
Conversation
… 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]>
There was a problem hiding this comment.
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
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)
src/test/rgw/rgw_multi/tests.py
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 TrueHow 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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
This PR has been added to wip-yuri13-testing-20260721.194244-squid. |
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
thank you! |
|
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 |
Upstream tracker: https://tracker.ceph.com/issues/75465
Upstream PR: #68167
Backport PR: https://tracker.ceph.com/issues/78505