Skip to content

squid: RGW/multisite: fix bucket-full-sync infinite loop caused by stale bucket_list_result reuse - #67921

Merged
neha-ojha merged 9 commits into
ceph:squidfrom
BBoozmen:wip-75438-squid
Jun 24, 2026
Merged

neha-ojha merged 9 commits into
ceph:squidfrom
BBoozmen:wip-75438-squid

Conversation

@BBoozmen

@BBoozmen BBoozmen commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/75438


backport of #66203
parent tracker: https://tracker.ceph.com/issues/73799

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh


Adding /config check ok comment as the config items introduced are for development/testing purposes and not client-facing.

@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: rgw_inject_delay_sec (rgw.yaml.in)
+ added: rgw_inject_delay_pattern (rgw.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@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 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 - Invalid Commit Format

The following commits have an invalid format. Backport commits must either include a standard (cherry picked from commit ...) line or start with the target branch name (e.g., squid:).

  • 6d4d02ef rgw/test [squid]: add missing ceph and call_ceph shell functions

Be familiar with the rules and guidelines for writing backports.


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)

Range Diff

Click to expand
--- Original (c630f339)
+++ Backport (0754bf7e)
@@ -18,3 +18,8 @@
 avoid any name collision.
 
 Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit c630f339c4ff708fe4a14df61eaa9a8f72725f61)
+
+Conflicts:
+    src/test/rgw/CMakeLists.txt
+- a unittest, available in main, is not available in squid

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

1:  c630f339c4f ! 1:  0754bf7e4f3 RGW: make SSTR macro safe against variable name collisions
    @@ Commit message
         avoid any name collision.
     
         Signed-off-by: Oguzhan Ozmen <[email protected]>
    +    (cherry picked from commit c630f339c4ff708fe4a14df61eaa9a8f72725f61)
    +
    +    Conflicts:
    +        src/test/rgw/CMakeLists.txt
    +    - a unittest, available in main, is not available in squid
     
      ## src/rgw/driver/rados/rgw_sync_trace.h ##
     @@
    @@ src/test/rgw/CMakeLists.txt: target_include_directories(unittest_rgw_url
     +  SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw")
     +target_link_libraries(unittest_rgw_sync_trace)
     +
    - if(WITH_RADOSGW_RADOS)
      add_executable(ceph_test_rgw_gc_log test_rgw_gc_log.cc $<TARGET_OBJECTS:unit-main>)
      target_include_directories(ceph_test_rgw_gc_log
    +   SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw")
     
      ## src/test/rgw/test_rgw_sync_trace.cc (new) ##
     @@

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)

Range Diff

Click to expand
--- Original (9432f0e5)
+++ Backport (94947c8e)
@@ -2,3 +2,9 @@
 
 Tests: https://tracker.ceph.com/issues/73799
 Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit 9432f0e519821bfcb57cde9fd4ddea972aa36662)
+
+Conflicts:
+    src/test/rgw/rgw_multi/tests.py
+- some testcases, available in main, is not available in squid
+- add missing dependencies (python modules) to tests.py

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

1:  9432f0e5198 ! 1:  94947c8edaa RGW/test_multi/RGWBucketFullSyncCR: test bucket full sync while source bucket is deleted in the middle
    @@ Commit message
     
         Tests: https://tracker.ceph.com/issues/73799
         Signed-off-by: Oguzhan Ozmen <[email protected]>
    +    (cherry picked from commit 9432f0e519821bfcb57cde9fd4ddea972aa36662)
    +
    +    Conflicts:
    +        src/test/rgw/rgw_multi/tests.py
    +    - some testcases, available in main, is not available in squid
    +    - add missing dependencies (python modules) to tests.py
     
      ## src/rgw/driver/rados/rgw_data_sync.cc ##
     @@ src/rgw/driver/rados/rgw_data_sync.cc: int RGWBucketFullSyncCR::operate(const DoutPrefixProvider *dpp)
    @@ src/rgw/driver/rados/rgw_data_sync.cc: int RGWBucketFullSyncCR::operate(const Do
              entry = &(*entries_iter);
     
      ## src/test/rgw/rgw_multi/tests.py ##
    -@@ src/test/rgw/rgw_multi/tests.py: def get_oldest_incremental_change_not_applied_epoch(zone):
    -     cmd = ['sync', 'status']
    -     sync_status_output, retcode = zone.cluster.admin(cmd, check_retcode=False, read_only=True)
    -     assert(retcode == 0)
    --    match = re.search(r"oldest incremental change not applied:\s*([0-9T:\.\+\-Z]+)", sync_status_output)
    --    timestamp = match.group(1) if match else None
    --    if timestamp is not None:
    --        timestamp = datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%S.%f%z").timestamp()
    --    return timestamp
    +@@ src/test/rgw/rgw_multi/tests.py: import time
    + import logging
    + import errno
    + import dateutil.parser
    ++import re
    ++import datetime
    + 
    + from itertools import combinations
    + from itertools import zip_longest
    +@@ src/test/rgw/rgw_multi/tests.py: def zonegroup_bucket_checkpoint(zonegroup_conns, bucket_name):
    +         if target_conn.zone.has_buckets():
    +             target_conn.check_bucket_eq(source_conn, bucket_name)
    + 
    ++def get_oldest_incremental_change_not_applied_epoch(zone):
    ++    cmd = ['sync', 'status']
    ++    sync_status_output, retcode = zone.cluster.admin(cmd, check_retcode=False, read_only=True)
    ++    assert(retcode == 0)
     +
     +    # extract the "data sync source:" section from the output
     +    data_sync_match = re.search(r"data sync source:.*", sync_status_output, re.DOTALL)
    @@ src/test/rgw/rgw_multi/tests.py: def get_oldest_incremental_change_not_applied_e
     +    # 1) look for "oldest incremental change not applied" in the data sync section
     +    match = re.search(r"oldest incremental change not applied:\s*([0-9T:\.\+\-Z]+)", data_sync_section)
     +    if match:
    -+        return datetime.strptime(match.group(1), "%Y-%m-%dT%H:%M:%S.%f%z").timestamp()
    ++        return datetime.datetime.strptime(match.group(1), "%Y-%m-%dT%H:%M:%S.%f%z").timestamp()
     +
     +    # 2) if data is caught up with source, return None (no work pending)
     +    if "data is caught up with source" in data_sync_section:
    @@ src/test/rgw/rgw_multi/tests.py: def get_oldest_incremental_change_not_applied_e
     +    # 3) data sync section exists but neither marker found; return epoch 0
     +    #    so the caller knows data sync is not making progress
     +    return 0.0
    - 
    - def data_sync_making_progress(zone, time_window_sec=180, check_interval_sec=30):
    -     deadline = time.time() + time_window_sec
    -@@ src/test/rgw/rgw_multi/tests.py: def test_period_update_commit():
    -         log.info(f"delete bucket={bucket.name}")
    -         primary_zone_client_conn.s3_client.delete_bucket(Bucket=bucket.name)
    - 
    ++
    ++def data_sync_making_progress(zone, time_window_sec=180, check_interval_sec=30):
    ++    deadline = time.time() + time_window_sec
    ++    oldest_inc_change = None
    ++    result = False
    ++    while time.time() < deadline:
    ++        new_reading = get_oldest_incremental_change_not_applied_epoch(zone)
    ++        if new_reading is not None:
    ++            if oldest_inc_change is None:
    ++                oldest_inc_change = new_reading
    ++            elif oldest_inc_change != new_reading:
    ++                result = True
    ++                oldest_inc_change = new_reading
    ++                break
    ++        time.sleep(check_interval_sec)
    ++    return result or oldest_inc_change is None
    ++
    + def set_master_zone(zone):
    +     zone.modify(zone.cluster, ['--master'])
    +     zonegroup = zone.zonegroup
    +@@ src/test/rgw/rgw_multi/tests.py: def test_bucket_create_location_constraint():
    +                                     Bucket=bucket_name,
    +                                     CreateBucketConfiguration={'LocationConstraint': zg.name})
    +                 assert e.response['ResponseMetadata']['HTTPStatusCode'] == 400
    ++
     +def test_bucket_full_sync_when_the_bucket_is_deleted_in_the_meantime():
     +    num_objects_to_upload = (
     +        3000  # must be more than 1000 to have pagination at full sync
    @@ src/test/rgw/rgw_multi/tests.py: def test_period_update_commit():
     +        except:
     +            pass
     +        raise
    ++

Commit Parity Visualizer

BACKPORT PR #67921 SOURCE PR SOURCE STATUS
0754bf7e4f314cd0c68eb4ce248a510e1369bc97 RGW: make SSTR macro safe against variable name collisions PR #66203 c630f33 RGW: make SSTR macro safe against variable name collisions
3500644e4aee69a777d0ebf20112dc762528af5c RGW: add delay injection options for integration testing 98276d9 RGW: add delay injection options for integration testing
88110c68727b58f079407370969ddd2b44db6d5d RGW/test_multi: allow Cluster object to run ceph admin commands b6ecd19 RGW/test_multi: allow Cluster object to run ceph admin commands
0d5f841a98df75562c1152da4c6b1c0738091c62 RGW/test_multi: remove unused import 8109a2e RGW/test_multi: remove unused import
10775118fd8c59db51655b207534b970978ad365 RGW/multisite: add some more debug logs to sync codepath 3a9bf2c RGW/multisite: add some more debug logs to sync codepath
2e41e6ed42b32e41de97228c38548450d2738c73 RGW/multisite: bucket_list_result object provides a method to reset its entries ae59eac RGW/multisite: bucket_list_result object provides a method to reset its entries
bab082296cf3eb57e80c817c9f21c84083b246aa RGW/multisite/RGWListRemoteBucketCR: clear reused bucket_list_result to avoid stale listings c8a66a9 RGW/multisite/RGWListRemoteBucketCR: clear reused bucket_list_result to avoid stale listings
94947c8edaab65e8b6219fa5ddb8e832ea4080da RGW/test_multi/RGWBucketFullSyncCR: test bucket full sync while source bucket is deleted in the middle 9432f0e RGW/test_multi/RGWBucketFullSyncCR: test bucket full sync while source bucket is deleted in the middle
6d4d02efaf28af4ba9caaf768d830931debc0e19 rgw/test [squid]: add missing ceph and call_ceph shell functions <<<< 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.


⚠️ 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 14, 2026
@BBoozmen

Copy link
Copy Markdown
Contributor Author

/config check ok

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

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

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

BBoozmen added 9 commits June 1, 2026 18:36
The original SSTR macro defined a local variable `std::stringstream ss`
inside its expansion. When an expression that used a variable named `ss`
is passed to this macro, it led to name shadowing and unexpected results.

  Example:
    std::stringstream ss;
    ss << "aaa";
    auto result = SSTR("this is ss=" << ss.str());

  Actual result:
    "this is ss=this is ss="
  Expected result:
    "this is ss=aaa"

This change rewrites the macro to construct an unnamed temporary to
avoid any name collision.

Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit c630f33)

Conflicts:
    src/test/rgw/CMakeLists.txt
- a unittest, available in main, is not available in squid
Introduce two developer-level configuration options for controlled delay
injection during integration testing:

  - rgw_inject_delay_sec: duration of the injected delay (in seconds)
  - rgw_inject_delay_pattern: pattern to select which delay points are
    activated

These options help reproduce timing-sensitive or race conditions in a
deterministic way during RGW integration tests.

In the future, these options may evolve to support more complex timing
scenarios by using list or map types. This would allow multiple delay
injection points to be configured simultaneously, for example: delaying
pattern A by 5 seconds, pattern B before or after a specific event, or
using different durations for each point.

Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 98276d9)
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit b6ecd19)
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 8109a2e)
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 3a9bf2c)
…ts entries

Add a new method `reset_entries()` to the `bucket_list_result` struct
that clears the list of entries and resets the truncated flag.

This would be used to enhance the re-use cases to avoid accessing stale
entries or truncated flag.

Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit ae59eac)
…to avoid stale listings

RGWBucketFullSyncCR could spin indefinitely when the source bucket was
already deleted. The coroutine reused a bucket_list_result member, and
RGWListRemoteBucketCR populated it without clearing prior state. Stale
entries/is_truncated from a previous iteration caused the loop to
continue even after the bucket no longer existed.

Fix by clearing the provided bucket_list_result at the start of
RGWListRemoteBucketCR (constructor), ensuring each listing starts from a
clean state and reflects the current remote bucket contents.

This prevents the infinite loop and returns correct results when the
bucket has been deleted.

Fixes: https://tracker.ceph.com/issues/73799
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit c8a66a9)
…e bucket is deleted in the middle

Tests: https://tracker.ceph.com/issues/73799
Signed-off-by: Oguzhan Ozmen <[email protected]>
(cherry picked from commit 9432f0e)

Conflicts:
    src/test/rgw/rgw_multi/tests.py
- some testcases, available in main, is not available in squid
- add missing dependencies (python modules) to tests.py
Add ceph() and call_ceph() helper functions to test-rgw-common.sh
that were missed during the backport of commit 94947c.

The test_multi.py ceph_admin() method calls test-rgw-call.sh with
'call_ceph' which requires these shell functions to exist.

Signed-off-by: Oguzhan Ozmen <[email protected]>
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

⚠️ Audit Override Removed

New commits were pushed to this PR, so the previous releng-audit-override has been removed.

@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 - Invalid Commit Format

The following commits have an invalid format. Backport commits must either include a standard (cherry picked from commit ...) line or start with the target branch name (e.g., squid:).

  • 43a0aa89 rgw/test [squid]: add missing ceph and call_ceph shell functions

Be familiar with the rules and guidelines for writing backports.


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 a3c2c8d (cherry-pick of c630f33)

Affected File(s)

Range Diff

Click to expand
--- Original (c630f339)
+++ Backport (a3c2c8d0)
@@ -18,3 +18,8 @@
 avoid any name collision.
 
 Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit c630f339c4ff708fe4a14df61eaa9a8f72725f61)
+
+Conflicts:
+    src/test/rgw/CMakeLists.txt
+- a unittest, available in main, is not available in squid

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

1:  c630f339c4f ! 1:  a3c2c8d027e RGW: make SSTR macro safe against variable name collisions
    @@ Commit message
         avoid any name collision.
     
         Signed-off-by: Oguzhan Ozmen <[email protected]>
    +    (cherry picked from commit c630f339c4ff708fe4a14df61eaa9a8f72725f61)
    +
    +    Conflicts:
    +        src/test/rgw/CMakeLists.txt
    +    - a unittest, available in main, is not available in squid
     
      ## src/rgw/driver/rados/rgw_sync_trace.h ##
     @@
    @@ src/test/rgw/CMakeLists.txt: target_include_directories(unittest_rgw_url
     +  SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw")
     +target_link_libraries(unittest_rgw_sync_trace)
     +
    - if(WITH_RADOSGW_RADOS)
      add_executable(ceph_test_rgw_gc_log test_rgw_gc_log.cc $<TARGET_OBJECTS:unit-main>)
      target_include_directories(ceph_test_rgw_gc_log
    +   SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw")
     
      ## src/test/rgw/test_rgw_sync_trace.cc (new) ##
     @@

Deviation in Backport 5cf387a (cherry-pick of 9432f0e)

Affected File(s)

Range Diff

Click to expand
--- Original (9432f0e5)
+++ Backport (5cf387aa)
@@ -2,3 +2,9 @@
 
 Tests: https://tracker.ceph.com/issues/73799
 Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit 9432f0e519821bfcb57cde9fd4ddea972aa36662)
+
+Conflicts:
+    src/test/rgw/rgw_multi/tests.py
+- some testcases, available in main, is not available in squid
+- add missing dependencies (python modules) to tests.py

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

1:  9432f0e5198 ! 1:  5cf387aa608 RGW/test_multi/RGWBucketFullSyncCR: test bucket full sync while source bucket is deleted in the middle
    @@ Commit message
     
         Tests: https://tracker.ceph.com/issues/73799
         Signed-off-by: Oguzhan Ozmen <[email protected]>
    +    (cherry picked from commit 9432f0e519821bfcb57cde9fd4ddea972aa36662)
    +
    +    Conflicts:
    +        src/test/rgw/rgw_multi/tests.py
    +    - some testcases, available in main, is not available in squid
    +    - add missing dependencies (python modules) to tests.py
     
      ## src/rgw/driver/rados/rgw_data_sync.cc ##
     @@ src/rgw/driver/rados/rgw_data_sync.cc: int RGWBucketFullSyncCR::operate(const DoutPrefixProvider *dpp)
    @@ src/rgw/driver/rados/rgw_data_sync.cc: int RGWBucketFullSyncCR::operate(const Do
              entry = &(*entries_iter);
     
      ## src/test/rgw/rgw_multi/tests.py ##
    -@@ src/test/rgw/rgw_multi/tests.py: def get_oldest_incremental_change_not_applied_epoch(zone):
    -     cmd = ['sync', 'status']
    -     sync_status_output, retcode = zone.cluster.admin(cmd, check_retcode=False, read_only=True)
    -     assert(retcode == 0)
    --    match = re.search(r"oldest incremental change not applied:\s*([0-9T:\.\+\-Z]+)", sync_status_output)
    --    timestamp = match.group(1) if match else None
    --    if timestamp is not None:
    --        timestamp = datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%S.%f%z").timestamp()
    --    return timestamp
    +@@ src/test/rgw/rgw_multi/tests.py: import time
    + import logging
    + import errno
    + import dateutil.parser
    ++import re
    ++import datetime
    + 
    + from itertools import combinations
    + from itertools import zip_longest
    +@@ src/test/rgw/rgw_multi/tests.py: def zonegroup_bucket_checkpoint(zonegroup_conns, bucket_name):
    +         if target_conn.zone.has_buckets():
    +             target_conn.check_bucket_eq(source_conn, bucket_name)
    + 
    ++def get_oldest_incremental_change_not_applied_epoch(zone):
    ++    cmd = ['sync', 'status']
    ++    sync_status_output, retcode = zone.cluster.admin(cmd, check_retcode=False, read_only=True)
    ++    assert(retcode == 0)
     +
     +    # extract the "data sync source:" section from the output
     +    data_sync_match = re.search(r"data sync source:.*", sync_status_output, re.DOTALL)
    @@ src/test/rgw/rgw_multi/tests.py: def get_oldest_incremental_change_not_applied_e
     +    # 1) look for "oldest incremental change not applied" in the data sync section
     +    match = re.search(r"oldest incremental change not applied:\s*([0-9T:\.\+\-Z]+)", data_sync_section)
     +    if match:
    -+        return datetime.strptime(match.group(1), "%Y-%m-%dT%H:%M:%S.%f%z").timestamp()
    ++        return datetime.datetime.strptime(match.group(1), "%Y-%m-%dT%H:%M:%S.%f%z").timestamp()
     +
     +    # 2) if data is caught up with source, return None (no work pending)
     +    if "data is caught up with source" in data_sync_section:
    @@ src/test/rgw/rgw_multi/tests.py: def get_oldest_incremental_change_not_applied_e
     +    # 3) data sync section exists but neither marker found; return epoch 0
     +    #    so the caller knows data sync is not making progress
     +    return 0.0
    - 
    - def data_sync_making_progress(zone, time_window_sec=180, check_interval_sec=30):
    -     deadline = time.time() + time_window_sec
    -@@ src/test/rgw/rgw_multi/tests.py: def test_period_update_commit():
    -         log.info(f"delete bucket={bucket.name}")
    -         primary_zone_client_conn.s3_client.delete_bucket(Bucket=bucket.name)
    - 
    ++
    ++def data_sync_making_progress(zone, time_window_sec=180, check_interval_sec=30):
    ++    deadline = time.time() + time_window_sec
    ++    oldest_inc_change = None
    ++    result = False
    ++    while time.time() < deadline:
    ++        new_reading = get_oldest_incremental_change_not_applied_epoch(zone)
    ++        if new_reading is not None:
    ++            if oldest_inc_change is None:
    ++                oldest_inc_change = new_reading
    ++            elif oldest_inc_change != new_reading:
    ++                result = True
    ++                oldest_inc_change = new_reading
    ++                break
    ++        time.sleep(check_interval_sec)
    ++    return result or oldest_inc_change is None
    ++
    + def set_master_zone(zone):
    +     zone.modify(zone.cluster, ['--master'])
    +     zonegroup = zone.zonegroup
    +@@ src/test/rgw/rgw_multi/tests.py: def test_bucket_create_location_constraint():
    +                     assert False, "expected 400 error"
    +                 except ClientError as e:
    +                     assert e.response['ResponseMetadata']['HTTPStatusCode'] == 400
    ++
     +def test_bucket_full_sync_when_the_bucket_is_deleted_in_the_meantime():
     +    num_objects_to_upload = (
     +        3000  # must be more than 1000 to have pagination at full sync

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 #67921 SOURCE PR SOURCE STATUS
a3c2c8d RGW: make SSTR macro safe against variable name collisions PR #66203 c630f33 RGW: make SSTR macro safe against variable name collisions
dfd33c7 RGW: add delay injection options for integration testing 98276d9 RGW: add delay injection options for integration testing
fe62bdd RGW/test_multi: allow Cluster object to run ceph admin commands b6ecd19 RGW/test_multi: allow Cluster object to run ceph admin commands
99c3c77 RGW/test_multi: remove unused import 8109a2e RGW/test_multi: remove unused import
a7467ee RGW/multisite: add some more debug logs to sync codepath 3a9bf2c RGW/multisite: add some more debug logs to sync codepath
1db0c68 RGW/multisite: bucket_list_result object provides a method to reset its entries ae59eac RGW/multisite: bucket_list_result object provides a method to reset its entries
5a0b16c RGW/multisite/RGWListRemoteBucketCR: clear reused bucket_list_result to avoid stale listings c8a66a9 RGW/multisite/RGWListRemoteBucketCR: clear reused bucket_list_result to avoid stale listings
5cf387a RGW/test_multi/RGWBucketFullSyncCR: test bucket full sync while source bucket is deleted in the middle 9432f0e RGW/test_multi/RGWBucketFullSyncCR: test bucket full sync while source bucket is deleted in the middle
43a0aa8 rgw/test [squid]: add missing ceph and call_ceph shell functions <<<< 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.


⚠️ 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 Jun 1, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

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

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260622.172413-squid.

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