Skip to content

bilog api modifications#38586

Closed
smanjara wants to merge 38 commits intoceph:wip-rgw-multisite-reshardfrom
smanjara:wip-rgw-multisite-reshard-bilog
Closed

bilog api modifications#38586
smanjara wants to merge 38 commits intoceph:wip-rgw-multisite-reshardfrom
smanjara:wip-rgw-multisite-reshard-bilog

Conversation

@smanjara
Copy link
Contributor

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
@

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
allows other code to spawn this coroutine without having the class
definition

Signed-off-by: Casey Bodley <cbodley@redhat.com>
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 <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
a coroutine to initialize a bucket for full sync using a new bucket-wide
sync status object

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
full sync happens as the bucket level, so the shards will always start
in StateIncrementalSync

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
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 <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
if metadata sync hasn't finished, the 'bucket checkpoint' commands may
not find its bucket info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
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 <cbodley@redhat.com>
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 <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
@github-actions github-actions bot added the rgw label Dec 15, 2020
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
@smanjara smanjara force-pushed the wip-rgw-multisite-reshard-bilog branch from 6b9f2fa to f2f141a Compare January 7, 2021 14:19
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
@smanjara smanjara force-pushed the wip-rgw-multisite-reshard-bilog branch from a22b0a4 to fe0175b Compare January 8, 2021 14:45
@smanjara
Copy link
Contributor Author

@cbodley I have pushed update addressing most of your comments except the one about BILog_Delete.

@smanjara smanjara force-pushed the wip-rgw-multisite-reshard-bilog branch 2 times, most recently from 9c205f8 to 207af92 Compare January 12, 2021 13:32
@smanjara
Copy link
Contributor Author

@cbodley updated with the changes.

@smanjara smanjara force-pushed the wip-rgw-multisite-reshard-bilog branch from a092aa6 to 2f19ba3 Compare January 18, 2021 11:35
@smanjara
Copy link
Contributor Author

@cbodley pushed updates. seems to build fine now.

@smanjara smanjara force-pushed the wip-rgw-multisite-reshard-bilog branch from aee7aa4 to e3fa7bb Compare January 22, 2021 12:08
Shilpa Jagannath added 4 commits January 28, 2021 17:24
- make conversions from log layout to index layout wherever necessary
- bilog apis take bucket_log_layout_generation instead of generation number

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
- organize helper functions

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
@smanjara smanjara force-pushed the wip-rgw-multisite-reshard-bilog branch from 3a2b4aa to 8cb4720 Compare January 28, 2021 11:56
@cbodley cbodley force-pushed the wip-rgw-multisite-reshard branch from d26c424 to 19ce2fb Compare January 28, 2021 19:00
@github-actions
Copy link

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

@cbodley
Copy link
Contributor

cbodley commented Jan 28, 2021

i rebased, squashed, and pushed this to wip-rgw-multisite-reshard

@cbodley cbodley closed this Jan 28, 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.

2 participants