]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agorgw/multisite: fix bucket shard state init function
Yuval Lifshitz [Fri, 14 May 2021 09:27:09 +0000 (12:27 +0300)]
rgw/multisite: fix bucket shard state init function

* make sure src/dest shard ids are the same in sync pair
* copy sync pair by value in coroutine loop

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
3 years agorgw: update bucket sync status after bucket shards finishes current gen
Shilpa Jagannath [Mon, 5 Apr 2021 20:15:45 +0000 (01:45 +0530)]
rgw: update bucket sync status after bucket shards finishes current gen

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: reshard preserves old index in multisite
Casey Bodley [Fri, 26 Mar 2021 15:00:57 +0000 (11:00 -0400)]
rgw: reshard preserves old index in multisite

if the old index is still referenced by an InIndex log layout, we can't
call clean_index() to remove the index objects yet. log trimming will do
that later, once the bilogs are no longer needed

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: BILog_List handles requests for generation=0
Casey Bodley [Thu, 25 Feb 2021 20:39:26 +0000 (15:39 -0500)]
rgw: BILog_List handles requests for generation=0

previous logic treated requests for generation=0 as the latest gen

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: zero-initialize rgw_bucket_sync_status::incremental_gen
Casey Bodley [Tue, 9 Feb 2021 23:40:29 +0000 (18:40 -0500)]
rgw: zero-initialize rgw_bucket_sync_status::incremental_gen

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: handle older/newer generations after reading bucket sync status
Casey Bodley [Tue, 9 Feb 2021 23:00:14 +0000 (18:00 -0500)]
rgw: handle older/newer generations after reading bucket sync status

wait until we've read the bucket sync status and found that we're in
incremental sync before we start using incremental_gen for comparison

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: Handle entries of the wrong generation
Adam C. Emerson [Mon, 14 Dec 2020 05:56:23 +0000 (00:56 -0500)]
rgw: Handle entries of the wrong generation

Drop entries from past generations.

Send entries of future generations to the error repo for retry.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
3 years agorgw: rgw_data_change can decode v1 format if gen was 0
Casey Bodley [Wed, 10 Feb 2021 00:04:19 +0000 (19:04 -0500)]
rgw: rgw_data_change can decode v1 format if gen was 0

but if gen>0, require decoders to understand the v2 format. this way,
old clients can't decode entries with gen>0, so they won't be able to
serve them to other zones

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: rename rgw_data_change::gen_id
Casey Bodley [Wed, 10 Feb 2021 00:03:43 +0000 (19:03 -0500)]
rgw: rename rgw_data_change::gen_id

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add gen parameter to RGWDataChangesLog::add_entry
Adam C. Emerson [Mon, 14 Dec 2020 02:13:44 +0000 (21:13 -0500)]
rgw: add gen parameter to RGWDataChangesLog::add_entry

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
3 years agorgw: Add gen_id to rgw_data_change
Adam C. Emerson [Mon, 14 Dec 2020 01:30:52 +0000 (20:30 -0500)]
rgw: Add gen_id to rgw_data_change

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
3 years agorgw: vector<rgw_data_change_log_entry> not list
Adam C. Emerson [Sun, 13 Dec 2020 23:54:28 +0000 (18:54 -0500)]
rgw: vector<rgw_data_change_log_entry> not list

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
3 years agorgw: add json encoding of bucket layout types
Casey Bodley [Mon, 1 Feb 2021 19:39:39 +0000 (14:39 -0500)]
rgw: add json encoding of bucket layout types

adds a "layout" section to RGWBucketInfo

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agojson: add encode_json() overload for string_view
Casey Bodley [Mon, 1 Feb 2021 19:34:54 +0000 (14:34 -0500)]
json: add encode_json() overload for string_view

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: refactor per-entry reshard logic into separate function
Casey Bodley [Tue, 2 Feb 2021 17:51:14 +0000 (12:51 -0500)]
rgw: refactor per-entry reshard logic into separate function

this cuts down on nesting and avoids the need for goto

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: reshard adds a log layout for the new index
Casey Bodley [Mon, 1 Feb 2021 17:04:36 +0000 (12:04 -0500)]
rgw: reshard adds a log layout for the new index

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoradosgw-admin: try reshard even if bucket is resharding
Casey Bodley [Mon, 1 Feb 2021 17:02:44 +0000 (12:02 -0500)]
radosgw-admin: try reshard even if bucket is resharding

allow reshard in case a previous reshard failed. if the reshard is
actually still in progress, we'll fail to get the reshard lock

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agotest: fix threading for FaultInjector death tests
Casey Bodley [Tue, 19 Jan 2021 14:27:13 +0000 (09:27 -0500)]
test: fix threading for FaultInjector death tests

addresses test timeout and warning message:

[WARNING] /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest-death-test.cc:1121:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 3 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoradosgw-admin: remove fault injection options from usage
Casey Bodley [Fri, 18 Dec 2020 21:01:15 +0000 (16:01 -0500)]
radosgw-admin: remove fault injection options from usage

these are only used for testing, not administration

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: RGWBucketReshard doesn't need a friend
Casey Bodley [Fri, 18 Dec 2020 16:19:55 +0000 (11:19 -0500)]
rgw: RGWBucketReshard doesn't need a friend

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: fix decode of cls_rgw reshard types
Casey Bodley [Fri, 18 Dec 2020 15:46:49 +0000 (10:46 -0500)]
rgw: fix decode of cls_rgw reshard types

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: BucketReshardManager takes layouts
Casey Bodley [Fri, 18 Dec 2020 15:23:55 +0000 (10:23 -0500)]
rgw: BucketReshardManager takes layouts

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: clean up uses of BucketShard::init() without info
Casey Bodley [Fri, 18 Dec 2020 15:22:23 +0000 (10:22 -0500)]
rgw: clean up uses of BucketShard::init() without info

the rgw_bucket overload of BucketShard::init() has to look up the bucket
info. use the RGWBucketInfo overload when we have one

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoqa/rgw: disable coredumps for reshard fault injection
Casey Bodley [Thu, 17 Dec 2020 17:19:12 +0000 (12:19 -0500)]
qa/rgw: disable coredumps for reshard fault injection

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agotest/rgw: add test_bucket_reshard() for fault injection testing
Casey Bodley [Wed, 16 Dec 2020 23:17:29 +0000 (18:17 -0500)]
test/rgw: add test_bucket_reshard() for fault injection testing

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agotest/rgw: test_rgw_reshard.py exec_cmd() can return error code
Casey Bodley [Wed, 16 Dec 2020 23:16:41 +0000 (18:16 -0500)]
test/rgw: test_rgw_reshard.py exec_cmd() can return error code

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoradosgw-admin: 'bucket reshard' returns positive error codes
Casey Bodley [Wed, 16 Dec 2020 23:13:43 +0000 (18:13 -0500)]
radosgw-admin: 'bucket reshard' returns positive error codes

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: reshard first cleans up old-style reshards
Casey Bodley [Wed, 16 Dec 2020 18:57:28 +0000 (13:57 -0500)]
rgw: reshard first cleans up old-style reshards

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: refactor reshard init/cleanup with fault injection
Casey Bodley [Tue, 15 Dec 2020 18:57:31 +0000 (13:57 -0500)]
rgw: refactor reshard init/cleanup with fault injection

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add typedef for ReshardFaultInjector
Casey Bodley [Tue, 15 Dec 2020 17:55:03 +0000 (12:55 -0500)]
rgw: add typedef for ReshardFaultInjector

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: BucketReshardManager stores BucketReshardShards by value
Casey Bodley [Tue, 15 Dec 2020 17:07:14 +0000 (12:07 -0500)]
rgw: BucketReshardManager stores BucketReshardShards by value

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: remove unused attrs from RGWBucketReshard
Casey Bodley [Tue, 15 Dec 2020 17:06:24 +0000 (12:06 -0500)]
rgw: remove unused attrs from RGWBucketReshard

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: reshard tests with fault injection
Shilpa Jagannath [Mon, 12 Oct 2020 12:51:16 +0000 (18:21 +0530)]
rgw: reshard tests with fault injection

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agocommon: add generic FaultInjector
Casey Bodley [Wed, 19 Aug 2020 19:15:56 +0000 (15:15 -0400)]
common: add generic FaultInjector

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: Better error handling
Shilpa Jagannath [Mon, 21 Sep 2020 07:31:44 +0000 (13:01 +0530)]
rgw: Better error handling

  - function update_bucket() handles updating bucket state

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: use a helper function to handle repetitive num_shards check
Shilpa Jagannath [Fri, 11 Sep 2020 06:28:55 +0000 (11:58 +0530)]
rgw: use a helper function to handle repetitive num_shards check

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: code organization fixes and error handling
Shilpa Jagannath [Tue, 1 Sep 2020 18:25:42 +0000 (23:55 +0530)]
rgw: code organization fixes and error handling

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: clean up fixes for extra spaces and indentation.
Shilpa Jagannath [Fri, 28 Aug 2020 06:00:04 +0000 (11:30 +0530)]
rgw: clean up fixes for extra spaces and indentation.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: helper function to set reshard status from rgw::BucketReshardState.
Shilpa Jagannath [Tue, 21 Jul 2020 13:10:09 +0000 (18:40 +0530)]
rgw: helper function to set reshard status from rgw::BucketReshardState.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: minor fixes
Shilpa Jagannath [Tue, 21 Jul 2020 08:08:24 +0000 (13:38 +0530)]
rgw: minor fixes

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: failing to reshard, restore old indexes
Shilpa Jagannath [Tue, 14 Jul 2020 12:26:05 +0000 (17:56 +0530)]
rgw: failing to reshard, restore old indexes

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: allow clean_index to take const bucket_index_layout_generation&
Shilpa Jagannath [Tue, 14 Jul 2020 07:33:31 +0000 (13:03 +0530)]
rgw: allow clean_index to take const bucket_index_layout_generation&

fix bi_get() to get objects after being resharded

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: - take non-optional gen_id in svc_bi_rados functions
Shilpa Jagannath [Fri, 10 Jul 2020 08:05:25 +0000 (13:35 +0530)]
rgw: - take non-optional gen_id in svc_bi_rados functions

     - call init_index() on target layout during reshard process.
       Takes const rgw::bucket_index_layout_generation&

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: make RGWBucketInfo non-const in functions using guard_reshard()
Shilpa Manjarabad Jagannath [Thu, 9 Jul 2020 07:18:52 +0000 (12:48 +0530)]
rgw: make RGWBucketInfo non-const in functions using guard_reshard()

 - remove unused 'instance_id' from cls_rgw_reshard_entry
 - other minor fixes

Signed-off-by: Shilpa Manjarabad Jagannath <smanjara@redhat.com>
3 years agorgw: target_layout to be optional
Shilpa Manjarabad Jagannath [Mon, 6 Jul 2020 09:47:15 +0000 (15:17 +0530)]
rgw: target_layout to be optional

Signed-off-by: Shilpa Manjarabad Jagannath <smanjara@redhat.com>
3 years agorgw: use rgw::BucketReshardState for reshard state change
Shilpa Jagannath [Mon, 29 Jun 2020 19:17:53 +0000 (00:47 +0530)]
rgw: use rgw::BucketReshardState for reshard state change

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: fetch updated bucketinfo rather than bucket_id in guard_reshard
Shilpa Jagannath [Wed, 10 Jun 2020 14:09:55 +0000 (19:39 +0530)]
rgw: fetch updated bucketinfo rather than bucket_id in guard_reshard

To be able to read the updated layout.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: use BucketReshardState states in appropriate places
Shilpa Jagannath [Tue, 9 Jun 2020 03:05:27 +0000 (08:35 +0530)]
rgw: use BucketReshardState states in appropriate places

This replaces cls_rgw_reshard_status.

Remove unused parameters in cls_rgw_bucket_instance_entry.
Other minor cleanup fixes.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw/dynamic-resharding: Allow clean_index to take generation number
Shilpa Jagannath [Thu, 21 May 2020 12:59:15 +0000 (18:29 +0530)]
rgw/dynamic-resharding: Allow clean_index to take generation number

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw/dynamic-resharding: reshard bucket using the same instance id
Shilpa Jagannath [Thu, 21 May 2020 12:54:29 +0000 (18:24 +0530)]
rgw/dynamic-resharding: reshard bucket using the same instance id

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw/dynamic-resharding: remove creation of new bucket instance
Shilpa Jagannath [Thu, 21 May 2020 12:33:01 +0000 (18:03 +0530)]
rgw/dynamic-resharding: remove creation of new bucket instance

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agotest/rgw: add --gen to radosgw-admin/help.t
Casey Bodley [Wed, 3 Feb 2021 15:39:18 +0000 (10:39 -0500)]
test/rgw: add --gen to radosgw-admin/help.t

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add generations to error repo with binary format
Casey Bodley [Fri, 22 Jan 2021 23:28:50 +0000 (18:28 -0500)]
rgw: add generations to error repo with binary format

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 <cbodley@redhat.com>
3 years agorgw: add generation support to BILog admin APIs
Shilpa Jagannath [Thu, 3 Dec 2020 06:23:40 +0000 (11:53 +0530)]
rgw: add generation support to BILog admin APIs

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agorgw: remove rgw_bucket_shard_sync_info::full_marker
Casey Bodley [Fri, 20 Nov 2020 17:32:48 +0000 (12:32 -0500)]
rgw: remove rgw_bucket_shard_sync_info::full_marker

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: disable backoff on data sync error_retry_time
Casey Bodley [Wed, 18 Nov 2020 21:24:11 +0000 (16:24 -0500)]
rgw: disable backoff on data sync error_retry_time

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>
3 years agoqa/rgw: rgw_multisite_tests task loads default plugins
Adam C. Emerson [Sat, 8 May 2021 00:01:11 +0000 (20:01 -0400)]
qa/rgw: rgw_multisite_tests task loads default plugins

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>
3 years agoqa/rgw: disable multisite tests for 'bucket sync disable'
Casey Bodley [Tue, 10 Nov 2020 16:36:31 +0000 (11:36 -0500)]
qa/rgw: disable multisite tests for 'bucket sync disable'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoqa/rgw: add missing meta checkpoint to test_multipart_object_sync
Casey Bodley [Tue, 10 Nov 2020 21:38:10 +0000 (16:38 -0500)]
qa/rgw: add missing meta checkpoint to test_multipart_object_sync

if metadata sync hasn't finished, the 'bucket checkpoint' commands may
not find its bucket info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: RGWSyncBucketCR holds lease over Init state too
Casey Bodley [Tue, 10 Nov 2020 20:00:40 +0000 (15:00 -0500)]
rgw: RGWSyncBucketCR holds lease over Init state too

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: fix up BucketShardIncrementalSync log message
Casey Bodley [Tue, 6 Oct 2020 21:59:44 +0000 (17:59 -0400)]
rgw: fix up BucketShardIncrementalSync log message

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: move full sync from SyncBucketShard to SyncBucket
Casey Bodley [Tue, 6 Oct 2020 21:59:41 +0000 (17:59 -0400)]
rgw: move full sync from SyncBucketShard to SyncBucket

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>
3 years agoradosgw-admin: 'bucket sync checkpoint' waits for full sync
Casey Bodley [Tue, 6 Oct 2020 21:59:39 +0000 (17:59 -0400)]
radosgw-admin: 'bucket sync checkpoint' waits for full sync

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoradosgw-admin: 'bucket sync status' displays new full sync status
Casey Bodley [Tue, 6 Oct 2020 21:59:36 +0000 (17:59 -0400)]
radosgw-admin: 'bucket sync status' displays new full sync status

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add rgw_read_bucket_full_sync_status()
Casey Bodley [Tue, 6 Oct 2020 21:59:34 +0000 (17:59 -0400)]
rgw: add rgw_read_bucket_full_sync_status()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: InitBucketShardSyncStatus always sets state to Incremental
Casey Bodley [Tue, 6 Oct 2020 21:59:31 +0000 (17:59 -0400)]
rgw: InitBucketShardSyncStatus always sets state to Incremental

full sync happens as the bucket level, so the shards will always start
in StateIncrementalSync

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: split SyncBucket from SyncBucketShard
Casey Bodley [Tue, 6 Oct 2020 21:59:29 +0000 (17:59 -0400)]
rgw: split SyncBucket from SyncBucketShard

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add InitBucketFullSyncStatusCR
Casey Bodley [Tue, 6 Oct 2020 21:59:28 +0000 (17:59 -0400)]
rgw: add InitBucketFullSyncStatusCR

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>
3 years agorgw: RGWSimpleRadosWriteAttrsCR supports exclusive create
Casey Bodley [Tue, 13 Oct 2020 13:56:11 +0000 (09:56 -0400)]
rgw: RGWSimpleRadosWriteAttrsCR supports exclusive create

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: system objects can set exclusive on set_attrs()
Casey Bodley [Tue, 13 Oct 2020 13:54:56 +0000 (09:54 -0400)]
rgw: system objects can set exclusive on set_attrs()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add exclusive flag to RGWSimpleRadosWriteCR
Casey Bodley [Tue, 6 Oct 2020 21:59:26 +0000 (17:59 -0400)]
rgw: add exclusive flag to RGWSimpleRadosWriteCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: generalize error handling in RGWShardCollectCR
Casey Bodley [Tue, 6 Oct 2020 21:59:24 +0000 (17:59 -0400)]
rgw: generalize error handling in RGWShardCollectCR

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>
3 years agorgw: add sync_bucket_shard_cr() factory function
Casey Bodley [Tue, 6 Oct 2020 21:59:22 +0000 (17:59 -0400)]
rgw: add sync_bucket_shard_cr() factory function

allows other code to spawn this coroutine without having the class
definition

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: rename to RGWSyncBucketShardCR
Casey Bodley [Tue, 6 Oct 2020 21:59:20 +0000 (17:59 -0400)]
rgw: rename to RGWSyncBucketShardCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add full_status_oid() for buckets
Casey Bodley [Tue, 6 Oct 2020 21:59:18 +0000 (17:59 -0400)]
rgw: add full_status_oid() for buckets

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: use const for string constants in rgw_data_sync.cc
Casey Bodley [Tue, 6 Oct 2020 21:59:16 +0000 (17:59 -0400)]
rgw: use const for string constants in rgw_data_sync.cc

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: rename to inc_status_oid
Casey Bodley [Tue, 6 Oct 2020 21:59:14 +0000 (17:59 -0400)]
rgw: rename to inc_status_oid

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: add data structures for bucket sync status
Casey Bodley [Tue, 6 Oct 2020 21:59:11 +0000 (17:59 -0400)]
rgw: add data structures for bucket sync status

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: rename to rgw_read_bucket_inc_sync_status
Casey Bodley [Tue, 6 Oct 2020 21:59:09 +0000 (17:59 -0400)]
rgw: rename to rgw_read_bucket_inc_sync_status

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: remove unused RGWRunBucketsSyncBySourceCR
Casey Bodley [Tue, 6 Oct 2020 21:59:07 +0000 (17:59 -0400)]
rgw: remove unused RGWRunBucketsSyncBySourceCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: RGWSimpleRadosReadCR copies out objv_tracker
Casey Bodley [Tue, 6 Oct 2020 21:59:00 +0000 (17:59 -0400)]
rgw: RGWSimpleRadosReadCR copies out objv_tracker

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44833 from fstachura/wip-doc-more-pdf-links
Ilya Dryomov [Sun, 30 Jan 2022 16:58:07 +0000 (17:58 +0100)]
Merge pull request #44833 from fstachura/wip-doc-more-pdf-links

doc: Fix links to CRUSH, RADOS and DSP research papers

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agodoc: Fix links to CRUSH, RADOS and DSP research papers. 44833/head
Franciszek Stachura [Sat, 29 Jan 2022 09:43:02 +0000 (10:43 +0100)]
doc: Fix links to CRUSH, RADOS and DSP research papers.

Signed-off-by: Franciszek Stachura <fbstachura@gmail.com>
3 years agoMerge pull request #44707 from liumiaomiaoIntel/qatdoc
Kefu Chai [Sat, 29 Jan 2022 06:13:41 +0000 (14:13 +0800)]
Merge pull request #44707 from liumiaomiaoIntel/qatdoc

doc/radosgw: update QAT acceleration to specify the configuration

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agodoc/radosgw: update QAT acceleration to specify the configuration 44707/head
Miaomiao Liu [Fri, 21 Jan 2022 07:45:44 +0000 (15:45 +0800)]
doc/radosgw: update QAT acceleration to specify the configuration

add and change the configuration steps to enable latest version of QAT
driver on QAT based encryption and compression

Signed-off-by: Miaomiao Liu <miaomiao.liu@intel.com>
3 years agoMerge pull request #44816 from cbodley/wip-rgw-cmake-system
Casey Bodley [Fri, 28 Jan 2022 19:09:59 +0000 (14:09 -0500)]
Merge pull request #44816 from cbodley/wip-rgw-cmake-system

cmake/rgw: src/rgw and src/rgw/services are not system headers

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
3 years agoMerge pull request #44801 from sebastian-philipp/doc-cephadm-count-per-host
Sebastian Wagner [Fri, 28 Jan 2022 15:19:35 +0000 (16:19 +0100)]
Merge pull request #44801 from sebastian-philipp/doc-cephadm-count-per-host

doc/cephadm: Co-location of daemons

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by:Anthony D'Atri <anthony.datri@gmail.com>

3 years agoMerge pull request #44823 from andriytk/fix-install-deps2
Daniel Gryniewicz [Fri, 28 Jan 2022 14:39:41 +0000 (09:39 -0500)]
Merge pull request #44823 from andriytk/fix-install-deps2

install-deps.sh: fix cortx-motr installation condition

3 years agoinstall-deps.sh: fix cortx-motr installation condition 44823/head
Andriy Tkachuk [Fri, 28 Jan 2022 11:33:12 +0000 (11:33 +0000)]
install-deps.sh: fix cortx-motr installation condition

Don't try to install cortx-motr if it is already installed
or not needed. (Currently, it installs on any run from an
interactive terminal session).

Signed-off-by: Andriy Tkachuk <andriy.tkachuk@seagate.com>
3 years agoMerge pull request #44711 from zdover23/wip-doc-2022-01-21-rados-bluestore-cache...
zdover23 [Thu, 27 Jan 2022 23:29:14 +0000 (09:29 +1000)]
Merge pull request #44711 from zdover23/wip-doc-2022-01-21-rados-bluestore-cache-autotune-interval-rewrite-2

src/rados: rewrite bs cache autotune instructions

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #44703 from phlogistonjohn/jjm-issue46773
Adam King [Thu, 27 Jan 2022 22:35:21 +0000 (17:35 -0500)]
Merge pull request #44703 from phlogistonjohn/jjm-issue46773

cephadm: validate that the constructed YumDnf baseurl is usable

Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #44517 from adk3798/agent-cache
Adam King [Thu, 27 Jan 2022 22:34:01 +0000 (17:34 -0500)]
Merge pull request #44517 from adk3798/agent-cache

mgr/cephadm: store agent metadata in its own cache

Reviewed-By: Sebastian Wagner <sewagner@redhat.com>
3 years agocmake/rgw: src/rgw and src/rgw/services are not system headers 44816/head
Casey Bodley [Thu, 27 Jan 2022 21:31:00 +0000 (16:31 -0500)]
cmake/rgw: src/rgw and src/rgw/services are not system headers

include these with -I instead of -isystem so we don't hide their
compiler warnings

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44719 from zdover23/wip-doc-2021-01-22-man-page-radosgw-multitena...
zdover23 [Thu, 27 Jan 2022 18:16:16 +0000 (04:16 +1000)]
Merge pull request #44719 from zdover23/wip-doc-2021-01-22-man-page-radosgw-multitenancy-remove-double-quotes

doc/radosgw: replace double quotes with single

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44379 from andriytk/add-motr-rgw-sal
Daniel Gryniewicz [Thu, 27 Jan 2022 16:33:25 +0000 (11:33 -0500)]
Merge pull request #44379 from andriytk/add-motr-rgw-sal

rgw: add CORTX Motr SAL implementation

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agoMerge pull request #44654 from rhcs-dashboard/page-title-feature
Ernesto Puerta [Thu, 27 Jan 2022 15:10:40 +0000 (16:10 +0100)]
Merge pull request #44654 from rhcs-dashboard/page-title-feature

mgr/dashboard: Page title should indicate current location

Reviewed-by: Sarthak0702 <NOT@FOUND>
Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #44793 from anthonyeleven/anthonyeleven/cephfs-mirroring
Venky Shankar [Thu, 27 Jan 2022 12:57:44 +0000 (18:27 +0530)]
Merge pull request #44793 from anthonyeleven/anthonyeleven/cephfs-mirroring

doc/cephfs: Clean up mirroring

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agorgw: add CORTX Motr SAL implementation 44379/head
Andriy Tkachuk [Mon, 1 Nov 2021 21:39:39 +0000 (21:39 +0000)]
rgw: add CORTX Motr SAL implementation

To build with Motr backend, use -DWITH_RADOSGW_MOTR=YES cmake
option. cortx-motr-devel rpm should be installed beforehand.

To connect to Motr cluster, add the following configuration
parameters to ceph.conf:

    [client]
            ...
            rgw backend store = motr
            motr profile fid  = 0x7000000000000001:0x4f
            motr ha endpoint  = inet:tcp:10.0.0.1@2001
    ...
    [client.rgw.8000]
            ...
            motr my endpoint  = inet:tcp:10.0.0.1@5001
            motr my fid       = 0x7200000000000001:0x29

The correct values for the Motr connection parameters can be
taken from `hctl status` cmd output after Motr cluster is
bootstrapped. In the example above, the values were taken from
the following output:

    Profile:
        0x7000000000000001:0x4f
    Services:
        centos8n1
        [started] hax       0x7200000000000001:0x6  inet:tcp:10.0.0.1@5001
        ...
        [unknown] m0_client 0x7200000000000001:0x29 inet:tcp:10.0.0.1@5001

Motr pkgs for the build/run can be taken from
https://github.com/Seagate/cortx-motr/releases/tag/2.0.0-rgw.

Co-authored-by: Sining Wu <sining.wu@seagate.com>
Signed-off-by: Andriy Tkachuk <andriy.tkachuk@seagate.com>
3 years agomgr/dashboard: Page title should indicate current location 44654/head
Sarthak0702 [Tue, 18 Jan 2022 20:39:27 +0000 (02:09 +0530)]
mgr/dashboard: Page title should indicate current location

Added titleService to BreadcrumbsComponent.

Fixes: https://tracker.ceph.com/issues/36587
Signed-off-by: Sarthak0702 <sarthak.0702@gmail.com>
3 years agodoc/cephadm: Co-location of daemons 44801/head
Sebastian Wagner [Thu, 27 Jan 2022 09:09:58 +0000 (10:09 +0100)]
doc/cephadm: Co-location of daemons

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>