Repository navigation
rgw: break the coupling of olh epoch and epochs of olh ops - #67661
Conversation
|
@cbodley can you please take a look at this as well? @igomon-bloomberg took a look and agreed with the fix |
|
more edge cases need to be handled. working on it now |
bc5aa6e to
8e0da92
Compare
|
This should also fix the issue described in https://tracker.ceph.com/issues/74428 |
|
the PR is ready for review now |
8e0da92 to
8410e30
Compare
| # Delete all object versions | ||
| cmd = ['object', 'rm', '--bucket', bucket.name, '--object', obj, '--object-version', version_id_1] | ||
| secondary.zone.cluster.admin(cmd) |
There was a problem hiding this comment.
still curious about why s3 DeleteObject behaves differently than lifecycle and radosgw-admin
There was a problem hiding this comment.
still curious about why s3 DeleteObject behaves differently than lifecycle and radosgw-admin
I'm curious too. In my todo list to test more and figure it out. Will come back to this soon
There was a problem hiding this comment.
I was not able to get the exact same test results with my earlier one. Might be because I had some local changes that I didn't notice.
However I did notice something interesting regarding the difference between s3 DeleteObject and radosgw-admin object rm when multisite replication is involved.
Testing steps:
- spawn a pairs of mstart clusters
- create a versioned bucket, and uploaded a few versions of an object
- disable the bucket sync
- on the secondary zone,
(1) delete a version using s3 DeleteObject
or
(2) delete a version using radosgw-admin object rm, or lc process - enable the bucket sync
- do a radosgw-admin bucket list on the secondary zone, we can see
(1) if the delete is done using s3 request, the deleted object version is not re-synced back from the primary,
(2) if the delete is done using radosgw-admin object rm or lc process, the object version is re-synced.
The culprit is obj_tombstone_cache. obj_tombstone_cache is in memory per rgw instance. The radosgw-admin has a different rados store instance hence its obj_tombstone_cache is not visible in the rgw instances.
It might be ok that s3 delete and radosgw-admin delete have a slight different behavior, but the same different behavior could happen when only rgw instances involved: the outcomes are different when the s3 DeleteObject and replication are handled by the same rgw instance, or handled by different rgw instances.
There was a problem hiding this comment.
The culprit is obj_tombstone_cache. obj_tombstone_cache is in memory per rgw instance. The radosgw-admin has a different rados store instance hence its obj_tombstone_cache is not visible in the rgw instances.
oof, thanks :( that cache was a hack and we should probably remove it. let's think about a better model for that
There was a problem hiding this comment.
opened a tracker for this issue: https://tracker.ceph.com/issues/75690
thanks! i had written a test case in #67109 that reproduced that leak. would you be willing to pull that commit into this pr so we can validate that too? |
sure will do |
done |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
enkins test make check |
719a865 to
e43a047
Compare
|
jenkins test make check arm64 |
|
@jzhu116-bloomberg, looking at the test results from 119253, the tests and
|
yup, checking on them |
…the epochs of olh ops ever-increasing Signed-off-by: Jane Zhu <[email protected]>
…uring upgrade Signed-off-by: Jane Zhu <[email protected]>
use the 'bucket check olh/unlinked' commands to test that all index entries are cleaned up after all versions are deleted by lifecycle Fixes: https://tracker.ceph.com/issues/74594 Signed-off-by: Casey Bodley <[email protected]>
…d make the epochs of olh ops ever-increasing add an olh op log for a missed success scenario in olh handling Signed-off-by: Jane Zhu <[email protected]>
do one bucket metadata update at a time to avoid a concurrent op failure Signed-off-by: Jane Zhu <[email protected]>
e43a047 to
2d5d75f
Compare
|
Missed one scenario where we need to fill in a CLS_RGW_OLH_OP_STALE to the op log. |
|
Here is my latest Teuthology run: The 2 tests cases (test_versioned_bucket_sync_disable_enable_object_delete and test_versioned_lifecycle_deletes) failed in one of the multisite tests, and succeeded in the other. I compared the success one and the failed one, and found something strange. The Failed one: https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-04-05_15:22:17-rgw-wip-bbjzhu116-testing-2026-04-04-1804-distro-default-trial/132773/teuthology.log Test: test_versioned_lifecycle_deletes <-- FAIL The success one: https://qa-proxy.ceph.com/teuthology/bcs-ceph-2026-04-05_15:22:17-rgw-wip-bbjzhu116-testing-2026-04-04-1804-distro-default-trial/132808/teuthology.log Test: test_versioned_lifecycle_deletes <-- ok We can see in the failed one, the radosgw-admin commands that should be run against the cluster c2 was actually running against c1. It happened to an existing test case test_bucket_log_trim_after_delete_bucket_secondary_reshard too. I wonder if there is any known issues here? |
|
jenkins test make check |
|
jenkins test api |
the teuthology.log corresponding to the your test case is only using the primary zonegroup a, so everything it does is against cluster c1: def test_versioned_bucket_sync_disable_enable_object_delete():
zonegroup = realm.master_zonegroup()
zonegroup_conns = ZonegroupConns(zonegroup)so i think the radosgw-admin command's # Delete the second object version
cmd = ['object', 'rm', '--bucket', bucket.name, '--object', obj, '--object-version', version_id_2]
- secondary.zone.cluster.admin(cmd)
+ secondary.zone.cluster.admin(cmd + secondary.zone.zone_args()) |
let me try this. |
Ah never mind. I know why now |
|
^ i pushed a squash commit to #67109 that adds |
I'll bring that in |
…d make the epochs of olh ops ever-increasing Signed-off-by: Jane Zhu <[email protected]>
Signed-off-by: Jane Zhu <[email protected]>
8b35011 to
1c7171b
Compare
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
|
Sorry @smanjara , it looks like I had a misunderstanding on the merge -- I thought it was "merge with squash", hence didn't squash my commits . Since this PR is already in the main, is there anything I can do to clean it up? |
test_bucket_log_trim_after_delete_bucket_secondary_reshard is meant to reshard the bucket on the *secondary* zone, then delete it on the primary and verify bilog autotrim cleans up the stale bucket.instance metadata. But the reshard command was issued without zone arguments, so radosgw-admin fell back to the default zone of the client it ran on (the primary). The bucket was therefore resharded on the primary, not the secondary, so the test never exercised the cross-zone generation mismatch that the trim fix handles. Append secondary.zone.zone_args() so the reshard explicitly targets the secondary zone. This is the single relevant hunk of upstream commit 3ae0007 (PR ceph#67661, tracker https://tracker.ceph.com/issues/75340). The remainder of that commit adjusts test_versioned_bucket_sync_disable_enable_object_delete, which does not exist on this branch, so only this hunk is taken. Signed-off-by: Oguzhan Ozmen <[email protected]>
This PR solves two issues:
Fixes: https://tracker.ceph.com/issues/75340
Signed-off-by: Jane Zhu [email protected]
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.