Skip to content

rgw: read shard count from source using remote bilog info during bucket sync - #41810

Closed
smanjara wants to merge 105 commits into
ceph:wip-rgw-multisite-reshardfrom
smanjara:wip-multisite-reshard-num-shards
Closed

smanjara wants to merge 105 commits into
ceph:wip-rgw-multisite-reshardfrom
smanjara:wip-multisite-reshard-num-shards

Conversation

@smanjara

Copy link
Copy Markdown
Contributor

Signed-off-by: Shilpa Jagannath [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

cbodley and others added 30 commits May 7, 2021 13:34
allows other code to spawn this coroutine without having the class
definition

Signed-off-by: Casey Bodley <[email protected]>
RGWShardCollectCR was hard-coded to ignore ENOENT errors and print a
'failed to fetch log status' error message. this moves that logic into a
handle_result() virtual function. it also exposes the member variables
'status' and 'max_concurrent' as protected, so they can be consulted or
modified by overrides of handle_result() and spawn_next()

Signed-off-by: Casey Bodley <[email protected]>
a coroutine to initialize a bucket for full sync using a new bucket-wide
sync status object

Signed-off-by: Casey Bodley <[email protected]>
full sync happens as the bucket level, so the shards will always start
in StateIncrementalSync

Signed-off-by: Casey Bodley <[email protected]>
renamed ListBucketShardCR to ListRemoteBucketCR and removed the shard-id
parameter

renamed BucketFullSyncShardMarkerTrack to BucketFullSyncMarkerTrack,
which now updates the bucket-level rgw_bucket_sync_status

renamed BucketShardFullSyncCR to BucketFullSyncCR

BucketSyncCR now takes a bucket-wide lease during full sync

Signed-off-by: Casey Bodley <[email protected]>
if metadata sync hasn't finished, the 'bucket checkpoint' commands may
not find its bucket info

Signed-off-by: Casey Bodley <[email protected]>
the ability to filter tests by attribute is provided by the
nose.plugins.attrib plugin, which wasn't being loaded by default

Signed-off-by: Casey Bodley <[email protected]>
this backoff is triggered often by the per-bucket lease for full sync,
and causes tests to fail with checkpoint timeouts

Signed-off-by: Casey Bodley <[email protected]>
adds a backward-compatible binary encoding for error repo keys that can
contain a generation number along with the bucket and shard

Signed-off-by: Casey Bodley <[email protected]>
cbodley and others added 18 commits May 24, 2021 13:52
poll on rgw_read_bucket_full_sync_status() until
full_status.incremental_gen catches up to the latest_gen we got from
rgw_read_remote_bilog_info()

Signed-off-by: Casey Bodley <[email protected]>
…-fix-incremental

rgw/multisite_reshard: pass the right generation number for bilog listing
Needed so we can get the incremental generation.

Guard this behind a version check and return the original output if
less than 2.

Signed-off-by: Adam C. Emerson <[email protected]>
To bucket_index_layout_generation

Signed-off-by: Adam C. Emerson <[email protected]>
Fetch the current generation from remote peers and trim the minimum
marker on the minimum generation.

Signed-off-by: Adam C. Emerson <[email protected]>
From the REST interface and radosgw-admin. Assume Generation 0 if none
provided and error if it doesn't exist.

Signed-off-by: Adam C. Emerson <[email protected]>
A more generally applicable way of removing objects in coroutines.

Signed-off-by: Adam C. Emerson <[email protected]>
Only one generation per call.

Signed-off-by: Adam C. Emerson <[email protected]>
@github-actions github-actions Bot added the rgw label Jun 10, 2021
@smanjara
smanjara marked this pull request as draft June 10, 2021 18:25
@smanjara
smanjara requested a review from cbodley June 14, 2021 07:20
@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

@cbodley

cbodley commented Sep 20, 2021

Copy link
Copy Markdown
Contributor

merged in #43036

@cbodley cbodley closed this Sep 20, 2021
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.

4 participants