]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoRGW - Split RGWRados initialization 46115/head
Daniel Gryniewicz [Mon, 2 May 2022 14:15:40 +0000 (10:15 -0400)]
RGW - Split RGWRados initialization

The inter-connectedness of RadosStore and RGWRados resulted in a
segfault during RGWRados::init_complete due to the rados pointer not
being set in RadosStore yet.

Split the calls to RGWRados::initialize and RGWRados::init_complete, so
that we can set up RadosStore between them, allowing the services
created in RGWRados::init_complete to access the RadosStore.

Fixes: https://tracker.ceph.com/issues/55512
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #45889 from lxbsz/wip-mds-clienup
Venky Shankar [Mon, 2 May 2022 09:35:27 +0000 (15:05 +0530)]
Merge pull request #45889 from lxbsz/wip-mds-clienup

mds: remove duplicated code

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45983 from lxbsz/client_warning
Venky Shankar [Mon, 2 May 2022 09:35:02 +0000 (15:05 +0530)]
Merge pull request #45983 from lxbsz/client_warning

client: fix compile warning

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46051 from Matan-B/wip-matanb-ipv6-mount
Kefu Chai [Mon, 2 May 2022 08:33:58 +0000 (16:33 +0800)]
Merge pull request #46051 from Matan-B/wip-matanb-ipv6-mount

mount/conf: Fix IPv6 parsing

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #46102 from bluikko/ioctx_get_stats_docs
Anthony D'Atri [Mon, 2 May 2022 07:11:14 +0000 (00:11 -0700)]
Merge pull request #46102 from bluikko/ioctx_get_stats_docs

doc/rados/api: fix invalid RST syntax and don't sudo for vim

3 years agoMerge pull request #44305 from kotreshhr/vstart-fixes
Venky Shankar [Mon, 2 May 2022 06:37:07 +0000 (12:07 +0530)]
Merge pull request #44305 from kotreshhr/vstart-fixes

qa: Fix a few tracebacks in vstart_runner

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agopybind/rados: fix typo in get_stats documentation 46102/head
Ville Ojamo [Mon, 2 May 2022 03:15:17 +0000 (10:15 +0700)]
pybind/rados: fix typo in get_stats documentation

Ioctx.get_stats() had a typo in return value documentation
block so add the "c" in "objects".

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agodoc/rados/api: fix invalid RST syntax and don't sudo for vim
Ville Ojamo [Mon, 2 May 2022 03:14:05 +0000 (10:14 +0700)]
doc/rados/api: fix invalid RST syntax and don't sudo for vim

Fix invalid syntax where "linenos:" was printed in the
final rendered documentation instead of being used as
formatting syntax.

There is no need to use sudo for editing a source file
so run vim without sudo.

Change the whole block to use bash prompt since it is
a command.

Also modify the preceding text to hopefully not bold it.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agoMerge pull request #45794 from Matan-B/wip-matanb-c-submit_txn
Samuel Just [Sun, 1 May 2022 20:02:47 +0000 (13:02 -0700)]
Merge pull request #45794 from Matan-B/wip-matanb-c-submit_txn

crimson/osd: submit_transaction() refactoring

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: submit_transaction() refactoring 45794/head
Matan Breizman [Mon, 4 Apr 2022 12:24:54 +0000 (12:24 +0000)]
crimson/osd: submit_transaction() refactoring

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
3 years agoMerge pull request #45810 from zenomri/wip-rgw-lua-bucketname
Yuval Lifshitz [Sun, 1 May 2022 10:10:39 +0000 (13:10 +0300)]
Merge pull request #45810 from zenomri/wip-rgw-lua-bucketname

rgw: support bucket name in lua pre request execution

3 years agomount/conf: Fix IPv6 parsing 46051/head
Matan Breizman [Wed, 27 Apr 2022 10:06:13 +0000 (10:06 +0000)]
mount/conf: Fix IPv6 parsing

Fixes: https://tracker.ceph.com/issues/47300
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
3 years agorgw: support bucket name in pre request context 45810/head
Omri Zeneva [Sun, 27 Mar 2022 17:10:33 +0000 (20:10 +0300)]
rgw: support bucket name in pre request context

because bucket object is created only after authentication,
if bucket object is null upon accessing Request.Bucket.Name, we return req_state->init_state.url_bucket

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
3 years agoMerge pull request #46030 from ivancich/wip-fix-bucket-index-new
J. Eric Ivancich [Sat, 30 Apr 2022 23:29:19 +0000 (19:29 -0400)]
Merge pull request #46030 from ivancich/wip-fix-bucket-index-new

rgw: remove entries from bucket index shards directly in limited cases

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #45990 from cbodley/wip-55339
J. Eric Ivancich [Sat, 30 Apr 2022 21:32:52 +0000 (17:32 -0400)]
Merge pull request #45990 from cbodley/wip-55339

rgw: RGWPutLC does not require Content-MD5

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agoMerge pull request #46098 from anthonyeleven/anthonyeleven/submitting_patches_improvement
Anthony D'Atri [Sat, 30 Apr 2022 18:01:28 +0000 (11:01 -0700)]
Merge pull request #46098 from anthonyeleven/anthonyeleven/submitting_patches_improvement

SubmittingPatches: Improve SubmittingPatches example

3 years agoMerge pull request #45873 from BenoitKnecht/rgw-opa-segv
J. Eric Ivancich [Sat, 30 Apr 2022 15:27:29 +0000 (11:27 -0400)]
Merge pull request #45873 from BenoitKnecht/rgw-opa-segv

rgw: Avoid segfault when OPA authz is enabled

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #45882 from ivancich/wip-index-completion-mgr-crash
J. Eric Ivancich [Sat, 30 Apr 2022 15:26:15 +0000 (11:26 -0400)]
Merge pull request #45882 from ivancich/wip-index-completion-mgr-crash

rgw: address crash and race in RGWIndexCompletionManager

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agoSubmittingPatches: Improve SubmittingPatches example 46098/head
Anthony D'Atri [Sat, 30 Apr 2022 07:56:21 +0000 (00:56 -0700)]
SubmittingPatches: Improve SubmittingPatches example

The example commit didn't show the convention of prefixing the message with
the relative directory path where the file lives, which has led new
contributors to innocently submit changes that aren't formatted ideally.
This adds a path to the example.

Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #46011 from liu-chunmei/seastore_omap_set/get_header
Liu-Chunmei [Sat, 30 Apr 2022 05:05:58 +0000 (22:05 -0700)]
Merge pull request #46011 from liu-chunmei/seastore_omap_set/get_header

crimson/seastore: add OMAP_GET/SET_HEADER

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/seastore: add OMAP_GET/SET_HEADER 46011/head
chunmei-liu [Tue, 26 Apr 2022 08:53:46 +0000 (01:53 -0700)]
crimson/seastore: add OMAP_GET/SET_HEADER

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agoMerge pull request #45993 from markhpc/wip-crimson-argparse
Mark Nelson [Fri, 29 Apr 2022 18:42:28 +0000 (13:42 -0500)]
Merge pull request #45993 from markhpc/wip-crimson-argparse

crimson/osd: fix argument parsing after seastar changes

3 years agoMerge pull request #45987 from dang/wip-dang-zipper-standalone
Daniel Gryniewicz [Fri, 29 Apr 2022 15:58:02 +0000 (11:58 -0400)]
Merge pull request #45987 from dang/wip-dang-zipper-standalone

RGW - Allow starting RGW/dbstore without connecting to Mons

3 years agoMerge pull request #46044 from zdover23/wip-doc-2022-04-27-reef-PendingReleaseNotes...
zdover23 [Thu, 28 Apr 2022 21:39:43 +0000 (07:39 +1000)]
Merge pull request #46044 from zdover23/wip-doc-2022-04-27-reef-PendingReleaseNotes-cleanup

doc: clean up PendingReleaseNotes for reef

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agorgw: address technical debt in RGWBucket::check_bad_index_multipart 46030/head
J. Eric Ivancich [Tue, 26 Apr 2022 16:11:54 +0000 (12:11 -0400)]
rgw: address technical debt in RGWBucket::check_bad_index_multipart

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #43371 from liavt/master
Yuval Lifshitz [Thu, 28 Apr 2022 16:12:55 +0000 (19:12 +0300)]
Merge pull request #43371 from liavt/master

rgw: notifications on object replication

3 years agoMerge pull request #46023 from linuxbox2/wip-dbstore-shutdown
Matt Benjamin [Thu, 28 Apr 2022 14:14:35 +0000 (10:14 -0400)]
Merge pull request #46023 from linuxbox2/wip-dbstore-shutdown

rgw: dbstore: add mechanism to signal gc_worker to exit

3 years agoMerge pull request #46053 from guits/cv-quick-change-log-level
Guillaume Abrioux [Thu, 28 Apr 2022 08:13:14 +0000 (10:13 +0200)]
Merge pull request #46053 from guits/cv-quick-change-log-level

ceph-volume: only warn when config file isn't found

3 years agoMerge pull request #46009 from ljflores/wip-link-submitting-backports
Laura Flores [Wed, 27 Apr 2022 23:01:30 +0000 (18:01 -0500)]
Merge pull request #46009 from ljflores/wip-link-submitting-backports

3 years agoRGW - Allow radosgw-admin to work on other stores 45987/head
Daniel Gryniewicz [Wed, 27 Apr 2022 18:02:30 +0000 (14:02 -0400)]
RGW - Allow radosgw-admin to work on other stores

For debugging purposes, allow radosgw-admin to run with stores other
than RadosStore.  Many operations will still fail (by crashing), so care
must be taken when running this way.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoRGW - Allow starting RGW/dbstore without connecting to Mons
Daniel Gryniewicz [Thu, 21 Apr 2022 15:45:44 +0000 (11:45 -0400)]
RGW - Allow starting RGW/dbstore without connecting to Mons

DBStore, and some other Stores like Motr, don't need to connect to the
Mons to work.  However, startup automatically connects to the mons.
There's provision to not connect, but the split isn't quite right.  We
need to call global_pre_init() to get config from the file, to determine
which store to start, but we then need to decide before calling
global_init() whether the configured store needs to connect to the mons.

This requires a slight change to global_init() to set no_mon_config from
the new flags.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #46025 from CongMinYin/fix-endianness-issue-encoding
Ilya Dryomov [Wed, 27 Apr 2022 16:22:43 +0000 (18:22 +0200)]
Merge pull request #46025 from CongMinYin/fix-endianness-issue-encoding

librbd/cache/pwl: fix bit field endianness issue

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agorgw: "bucket check --fix" should delete damaged multipart uploads from bi
J. Eric Ivancich [Tue, 26 Apr 2022 16:46:08 +0000 (12:46 -0400)]
rgw: "bucket check --fix" should delete damaged multipart uploads from bi

As one of the steps in `radosgw-admin bucket check --fix ...` it looks
for bucket index entries for incomplete multipart uploads that do not
have a corresponding ".meta" entry in the same bucket index. It then
intends to delete those entries, however the function that it calls
to perform the bucket index deletions was flawed and did not direct
the removals to the appropriate shard(s), but instead a non-existant
oid.

This commit determines the appropriate shard for each of the entries
to be removed and asynchronously issues a librados call to
omap_rm_keys.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agorgw: dbstore: add mechanism to signal gc_worker to exit 46023/head
Matt Benjamin [Mon, 25 Apr 2022 15:22:32 +0000 (11:22 -0400)]
rgw: dbstore: add mechanism to signal gc_worker to exit

This addresses a trivial hang on shutdown.

Fixes: https://tracker.ceph.com/issues/55431
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
3 years agoMerge pull request #46022 from linuxbox2/wip-dbstore-nfs
Matt Benjamin [Wed, 27 Apr 2022 13:43:36 +0000 (09:43 -0400)]
Merge pull request #46022 from linuxbox2/wip-dbstore-nfs

librgw: teach librgw about rgw_backend_store

3 years agoMerge pull request #45954 from Matan-B/wip-matanb-c-cyanlog
Radoslaw Zarzynski [Wed, 27 Apr 2022 13:13:15 +0000 (15:13 +0200)]
Merge pull request #45954 from Matan-B/wip-matanb-c-cyanlog

crimson/os: CyanStore debug subsystem

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoceph-volume: only warn when config file isn't found 46053/head
Guillaume Abrioux [Wed, 27 Apr 2022 12:12:23 +0000 (14:12 +0200)]
ceph-volume: only warn when config file isn't found

According to [1], this should only be a warning.

[1] https://github.com/ceph/ceph/commit/0487a9ac60c5ba289b7dd7c730b014a298c5998f

Fixes: https://tracker.ceph.com/issues/47633
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agoMerge pull request #45811 from rhcs-dashboard/grafana-e2e
Ernesto Puerta [Wed, 27 Apr 2022 12:09:29 +0000 (14:09 +0200)]
Merge pull request #45811 from rhcs-dashboard/grafana-e2e

mgr/dashboard: introduce grafana frontend e2e testing

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoqa/cephfs: don't remove sudo from the command arguments 44305/head
Rishabh Dave [Mon, 24 Jan 2022 18:33:05 +0000 (00:03 +0530)]
qa/cephfs: don't remove sudo from the command arguments

run_shell() in qa.tasks.cephfs.mount.CephFSMount prepends "sudo" to its
command arguments but it doesn't specify to the underlying method that
"sudo" shouldn't be deleted from the command arguments.

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: set LocalCephManager.cluster
Rishabh Dave [Mon, 24 Jan 2022 18:46:32 +0000 (00:16 +0530)]
qa/vstart_runner: set LocalCephManager.cluster

Use LocalContext instance to set LocalCephManager.cluster.

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa: Fix a few tracebacks in vstart_runner
Kotresh HR [Tue, 14 Dec 2021 10:13:41 +0000 (15:43 +0530)]
qa: Fix a few tracebacks in vstart_runner

1. CommandFailedError: Command failed with status 127: \
['None/archive/coverage', 'rados' ...]
2. TypeError: a bytes-like object is required, not '_io.BytesIO'

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Kotresh HR <khiremat@redhat.com>
3 years agomgr/dashboard: prometheus rules internal server error 45811/head
Nizamudeen A [Tue, 26 Apr 2022 10:19:09 +0000 (15:49 +0530)]
mgr/dashboard: prometheus rules internal server error

After we increase/decrease the count of the node-exporter, we get a 500
- Internal server error from api/prometheus/rules endpoint. On further
  debugging its caused by the jsonDecodder, because I guess the expected
input for the json.loads() is not a json formatted input. So to fix
that issue I can either do an error handling on the json.loads() or I
can move the json.loads() on the already existing try block. I went for
the second approach here.

Fixes: https://tracker.ceph.com/issues/54356
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #46012 from liu-chunmei/crimson-osd_op.rval
Samuel Just [Tue, 26 Apr 2022 23:22:38 +0000 (16:22 -0700)]
Merge pull request #46012 from liu-chunmei/crimson-osd_op.rval

crimson/osd: still need set error code value in osd_op.rval

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agorgw: address crash and race in RGWIndexCompletionManager 45882/head
J. Eric Ivancich [Tue, 12 Apr 2022 18:47:45 +0000 (14:47 -0400)]
rgw: address crash and race in RGWIndexCompletionManager

An atomic int was used in a modulo operator to distribute contention
among a set of locks and to track completions. Because it was an int,
enough increments would cause it to go negative (due to
twos-complement encoding and overflow) thereby causing a
crash. Additionally, even though it was atomic, the read and increment
were separate operations, leading to a race.

This commit addresses both of these issues.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #45598 from rkachach/fix_issue_55008
Adam King [Tue, 26 Apr 2022 19:48:03 +0000 (15:48 -0400)]
Merge pull request #45598 from rkachach/fix_issue_55008

mgr/cephadm: Adding image tag and date to cephadm startup messages

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #45855 from rkachach/fix_issue_55265
Adam King [Tue, 26 Apr 2022 19:11:34 +0000 (15:11 -0400)]
Merge pull request #45855 from rkachach/fix_issue_55265

mgr/cephadm: fixing call method timeout handling

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45877 from rkachach/fix_issue_55185
Adam King [Tue, 26 Apr 2022 19:10:26 +0000 (15:10 -0400)]
Merge pull request #45877 from rkachach/fix_issue_55185

mgr/cephadm: Adding support to store ceph conf per cluster fsid

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45899 from rkachach/fix_issue_53527
Adam King [Tue, 26 Apr 2022 19:09:37 +0000 (15:09 -0400)]
Merge pull request #45899 from rkachach/fix_issue_53527

mgr/cephadm: fixing upgrade candidate versions listing

Reviewed-by: Adam King <adking@redhat.com>
3 years agorgw: notifications on object replication 43371/head
Liav Turkia [Sun, 27 Feb 2022 16:24:09 +0000 (18:24 +0200)]
rgw: notifications on object replication

Signed-off-by: liavt <liav.turkia@gmail.com>
3 years ago.github: remove "Submitting Patches to Ceph" comment 46009/head
Laura Flores [Tue, 26 Apr 2022 18:17:06 +0000 (13:17 -0500)]
.github: remove "Submitting Patches to Ceph" comment

Ideally, this should not be in comment form so users
can click on the link.

Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #45623 from dang/wip-dang-zipper-objctx
Daniel Gryniewicz [Tue, 26 Apr 2022 18:03:11 +0000 (14:03 -0400)]
Merge pull request #45623 from dang/wip-dang-zipper-objctx

RGW: Zipper - zonegroup, placement tier

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46010 from gregsfortytwo/wip-55419-blocklist-test
Neha Ojha [Tue, 26 Apr 2022 17:59:07 +0000 (10:59 -0700)]
Merge pull request #46010 from gregsfortytwo/wip-55419-blocklist-test

test: Fix a blocklist API test

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agomgr/dashboard: introduce grafana frontend e2e testing
Nizamudeen A [Thu, 7 Apr 2022 13:31:39 +0000 (19:01 +0530)]
mgr/dashboard: introduce grafana frontend e2e testing

Used the https://www.npmjs.com/package/@grafana/e2e npm packages and
followed
https://github.com/grafana/grafana/blob/main/contribute/style-guides/e2e.md
to understand the style of the grafana e2e testing.

In this PR I introduces the tests for the Hosts Overall
Performance and also RGW per Daemon and Overall Performance

Fixes: https://tracker.ceph.com/issues/54356
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agodoc: clean up PendingReleaseNotes for reef 46044/head
Zac Dover [Tue, 26 Apr 2022 17:15:27 +0000 (03:15 +1000)]
doc: clean up PendingReleaseNotes for reef

This PR removes all of the release notes up to
version 17 (Quincy) inclusive.

As far as I know, for as long as I have worked
on the Ceph project, we have never cleaned up
the release notes from release to release.

Until now.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #44958 from rishabh-d-dave/qa-cephfs-timeout
Venky Shankar [Tue, 26 Apr 2022 17:00:43 +0000 (22:30 +0530)]
Merge pull request #44958 from rishabh-d-dave/qa-cephfs-timeout

qa/cephfs: change default timeout from 900 secs to 300

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agorgw: use dpp in bitx logging code
J. Eric Ivancich [Tue, 26 Apr 2022 16:35:05 +0000 (12:35 -0400)]
rgw: use dpp in bitx logging code

This updates the bitx logging code to use the logging provided by
DoutPrefixProvider.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #45737 from cbodley/wip-rgw-ops-log-defaults
Casey Bodley [Tue, 26 Apr 2022 16:43:44 +0000 (12:43 -0400)]
Merge pull request #45737 from cbodley/wip-rgw-ops-log-defaults

rgw: change default ops log backend from rados to file

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Cory Snyder <csnyder@iland.com>
3 years agoMerge pull request #46007 from cbodley/wip-49302
Casey Bodley [Tue, 26 Apr 2022 16:25:36 +0000 (12:25 -0400)]
Merge pull request #46007 from cbodley/wip-49302

rgw: RGWCoroutine::set_sleeping() checks for null stack

Reviewed-by: Or Friedmann <ofriedma@redhat.com>
3 years agoMerge pull request #46027 from cbodley/wip-55432
Casey Bodley [Tue, 26 Apr 2022 16:24:35 +0000 (12:24 -0400)]
Merge pull request #46027 from cbodley/wip-55432

rgw: OpsLogFile::stop() signals under mutex

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Cory Snyder <csnyder@iland.com>
3 years agoMerge pull request #45784 from cbodley/wip-rgw-multisite-configurables
Casey Bodley [Tue, 26 Apr 2022 16:22:43 +0000 (12:22 -0400)]
Merge pull request #45784 from cbodley/wip-rgw-multisite-configurables

rgw multisite: configurable polling intervals and concurrency windows

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
3 years agoqa/cephfs: change default timeout from 900 secs to 300 44958/head
Rishabh Dave [Wed, 9 Feb 2022 18:16:27 +0000 (23:46 +0530)]
qa/cephfs: change default timeout from 900 secs to 300

15 minutes is unnecessarily large as a default value for timeout for a
command. Not having to wait unnecessarily on a crash of a command will
reduce teuthology's testing queue and will save individual developer's
time while running tests locally.

Whatever lines are modified for this purpose are also modified to follow
the stlye guideline, specfically wrapping at 80 characters.

Fixes: https://tracker.ceph.com/issues/54236
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #45830 from rhcs-dashboard/cephadm-logs-save
Ernesto Puerta [Tue, 26 Apr 2022 10:50:43 +0000 (12:50 +0200)]
Merge pull request #45830 from rhcs-dashboard/cephadm-logs-save

mgr/dashboard: save mgr logs inside a folder

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agolibrbd/cache/pwl: fix endianness issue 46025/head
Yin Congmin [Mon, 25 Apr 2022 17:10:18 +0000 (01:10 +0800)]
librbd/cache/pwl: fix endianness issue

fix endianness issue with WriteLogCacheEntry encoding. abandon the
use of bits in the union. make '&' operation with the whole union
filed(flags) to get the bit information.

Fixes: https://tracker.ceph.com/issues/55389
Signed-off-by: Yin Congmin <congmin.yin@intel.com>
3 years agoMerge pull request #45370 from lxbsz/wip-54411
Venky Shankar [Tue, 26 Apr 2022 04:25:04 +0000 (09:55 +0530)]
Merge pull request #45370 from lxbsz/wip-54411

client: add option to disable collecting and sending metrics

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agocrimson/osd: still need set error code value in osd_op.rval 46012/head
chunmei-liu [Sat, 23 Apr 2022 08:59:31 +0000 (01:59 -0700)]
crimson/osd: still need set error code value in osd_op.rval

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agoMerge pull request #45904 from cfsnyder/fix_rocksdb_iter_perf
Yuri Weinstein [Mon, 25 Apr 2022 22:58:45 +0000 (15:58 -0700)]
Merge pull request #45904 from cfsnyder/fix_rocksdb_iter_perf

os/bluestore: set upper and lower bounds on rocksdb omap iterators

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
3 years agoMerge pull request #46028 from ceph/revert-43413-bluestore-bufferbloat-mitigation
Neha Ojha [Mon, 25 Apr 2022 22:07:38 +0000 (15:07 -0700)]
Merge pull request #46028 from ceph/revert-43413-bluestore-bufferbloat-mitigation

Revert "os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation"

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agorgw: OpsLogFile drops lock before flush() 46027/head
Casey Bodley [Mon, 25 Apr 2022 20:32:33 +0000 (16:32 -0400)]
rgw: OpsLogFile drops lock before flush()

flush() acquires the same lock, so lockdep complains about recursive
locking here

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: RGWCoroutine::set_sleeping() checks for null stack 46007/head
Or Friedmann [Tue, 19 Apr 2022 12:00:28 +0000 (12:00 +0000)]
rgw: RGWCoroutine::set_sleeping() checks for null stack

users of the RGWOmapAppend coroutine don't manage the lifetime of its
underlying coroutine stack, so end up making calls on RGWOmapAppend
after its stack goes away. this null check is a band-aid, and there are
still several other calls in RGWCoroutine that don't check for null
stack

Fixes: https://tracker.ceph.com/issues/49302
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agobluestore: Revert "os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation" 46028/head
Samuel Just [Mon, 25 Apr 2022 19:29:49 +0000 (12:29 -0700)]
bluestore: Revert "os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation"

Merge caused: https://tracker.ceph.com/issues/55433

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #44989 from Ejdesgaard/patch-1
Casey Bodley [Mon, 25 Apr 2022 18:26:08 +0000 (14:26 -0400)]
Merge pull request #44989 from Ejdesgaard/patch-1

radosgw-admin zone deletion uses zone delete

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: remove unnecessary OpsLogFile::flush_mutex
Casey Bodley [Mon, 25 Apr 2022 17:40:19 +0000 (13:40 -0400)]
rgw: remove unnecessary OpsLogFile::flush_mutex

this mutex was only held by one function, OpsLogFile::flush(). this
private member function is only ever called from the background thread,
so doesn't need to be protected by a mutex

as a further cleanup, i renamed 'cond' and 'mutex' now that we don't
need to differentiate between different locks

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agorgw: OpsLogFile::stop() signals under mutex
Casey Bodley [Mon, 25 Apr 2022 17:28:02 +0000 (13:28 -0400)]
rgw: OpsLogFile::stop() signals under mutex

this shuts up ceph::debug_condition_variable's assertion that the
associated mutex is held during notify_one(). this is not strictly
required for correct use, but is a common source of bugs

Fixes: https://tracker.ceph.com/issues/55432
Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agolibrgw: teach librgw about rgw_backend_store 46022/head
Matt Benjamin [Thu, 21 Apr 2022 23:26:55 +0000 (19:26 -0400)]
librgw: teach librgw about rgw_backend_store

With this change, basic i/o against dbstore works in the primary
librgw_file tests.

Fixes: https://tracker.ceph.com/issues/55430
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
3 years agoMerge pull request #45407 from vshankar/wip-54046
Venky Shankar [Mon, 25 Apr 2022 14:18:57 +0000 (19:48 +0530)]
Merge pull request #45407 from vshankar/wip-54046

mds: include encoded stray inode when sending dentry unlink message to replicas

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45243 from lxbsz/mdslog_bz
Venky Shankar [Mon, 25 Apr 2022 12:26:27 +0000 (17:56 +0530)]
Merge pull request #45243 from lxbsz/mdslog_bz

mds: flush mdlog if locked and still has wanted caps not satisfied

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45307 from lxbsz/wip54461
Venky Shankar [Mon, 25 Apr 2022 12:24:06 +0000 (17:54 +0530)]
Merge pull request #45307 from lxbsz/wip54461

mds: notify clients if the session has already opened

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45887 from bluikko/patch-3
Ilya Dryomov [Sat, 23 Apr 2022 08:53:31 +0000 (10:53 +0200)]
Merge pull request #45887 from bluikko/patch-3

doc: replace spaces with underscores in config option names

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agodoc: remove spaces at line ends and doubles, fix wrapping 45887/head
Ville Ojamo [Fri, 22 Apr 2022 13:36:44 +0000 (20:36 +0700)]
doc: remove spaces at line ends and doubles, fix wrapping

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agodoc: replace spaces with underscores in config option names
Ville Ojamo [Wed, 13 Apr 2022 03:33:36 +0000 (10:33 +0700)]
doc: replace spaces with underscores in config option names

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agoMerge pull request #45948 from cyx1231st/wip-seastore-cleaner-work
Yingxin [Sat, 23 Apr 2022 04:07:09 +0000 (12:07 +0800)]
Merge pull request #45948 from cyx1231st/wip-seastore-cleaner-work

crimson/os/seastore/segment_cleaner: cleanup segment_info_set_t

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agotest: use the same address input format as output will generate 46010/head
Greg Farnum [Sat, 23 Apr 2022 00:00:59 +0000 (00:00 +0000)]
test: use the same address input format as output will generate

Otherwise, our grep fails!

Fixes: https://tracker.ceph.com/issues/55419
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years ago.github: add a "Contribution Guidelines" to the pull request template
Laura Flores [Fri, 22 Apr 2022 23:06:09 +0000 (23:06 +0000)]
.github: add a "Contribution Guidelines" to the pull request template

These guidelines refer contributors to the "Submitting Patches to Ceph" doc
and the "Submitting Patches to Ceph - Backports" doc. Even though there are
already tips for titling/signing commits in the PR template, these tips
are commented out and easy to gloss over once the contributor creates the
PR. These existing tips do not include any pointers about staging backports.

Fixes: https://tracker.ceph.com/issues/55418
Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #43413 from esmaeil-mirvakili/bluestore-bufferbloat-mitigation
Samuel Just [Fri, 22 Apr 2022 21:37:04 +0000 (14:37 -0700)]
Merge pull request #43413 from esmaeil-mirvakili/bluestore-bufferbloat-mitigation

os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agomgr/cephadm: fixing call method timeout handling 45855/head
Redouane Kachach [Mon, 11 Apr 2022 14:13:05 +0000 (16:13 +0200)]
mgr/cephadm: fixing call method timeout handling
Fixes: https://tracker.ceph.com/issues/55265
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agomgr/cephadm: Adding support to store ceph conf per cluster fsid 45877/head
Redouane Kachach [Tue, 12 Apr 2022 12:27:02 +0000 (14:27 +0200)]
mgr/cephadm: Adding support to store ceph conf per cluster fsid
Fixes: https://tracker.ceph.com/issues/55185
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agocrimson/osd: fix argument parsing after seastar changes 45993/head
Mark Nelson [Wed, 20 Apr 2022 19:45:45 +0000 (19:45 +0000)]
crimson/osd: fix argument parsing after seastar changes

Last fall seastar changed the way that app-template works, separating internal "seastar" options from "app" options. Part of that change was to only return app_opts when get_options_description() is called, which is what we use to filter arguments that should be passed to seastare instead of crimson. This has the unfortunate effect of breaking all "seastar" options we pass to seastar such as "--memory" or "--cpuset". There is no way currently to access the internal seastar options short of scraping and parsing stdout (private member without an accessor). The PR that made the change can be seen here:

https://groups.google.com/g/seastar-dev/c/RQs-1JqqnRg

Potentially we could use our existing code if we got the seastar devs to provide something like "get_all_options_descrption(), but I don't think we should rely on a function like this. They clearly aren't intending for projects to rely on this behavior for argument filtering. It's brittle and something we can't easily fix ourselves if there are future problems.

Instead, we should filter our own options from argv and then pass what remains to seastar. Previously we didn't do this because crimson::common:ConfigProxy isn't available until seastar starts up, so we can't use it to filter out which options to give seastar (chicken and egg problem). We don't actually need ConfigProxy to filter the arguments though. It's good enough to create a throw-away md_config_t instance, give it a dummy tracker, and then let it parse the arguments as it normally does. This let's us filter out the arguments to give seastar before seastar itself starts up, which then let's us filter which arguments we should eventually pass to crimson's ConfigProxy.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
3 years agomgr/cephadm: fixing upgrade candidate verions listing 45899/head
Redouane Kachach [Wed, 13 Apr 2022 14:22:53 +0000 (16:22 +0200)]
mgr/cephadm: fixing upgrade candidate verions listing
Fixes: https://tracker.ceph.com/issues/53527
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agomgr/cephadm: Using '.ID' instead of '.Id' which is only supported by podman 45598/head
Redouane Kachach [Fri, 22 Apr 2022 13:53:34 +0000 (15:53 +0200)]
mgr/cephadm: Using '.ID' instead of '.Id' which is only supported by podman

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #45920 from adk3798/stop-mgr-nfs-upgrade-fail
Adam King [Fri, 22 Apr 2022 13:28:35 +0000 (09:28 -0400)]
Merge pull request #45920 from adk3798/stop-mgr-nfs-upgrade-fail

qa/suites/orch/cephadm: stop upgrade tests if failures are seen

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #45931 from rkachach/fix_issue_51671
Adam King [Fri, 22 Apr 2022 13:27:47 +0000 (09:27 -0400)]
Merge pull request #45931 from rkachach/fix_issue_51671

mgr/cephadm: fixing logging output for rm-cluster operation

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45982 from rkachach/fix_issue_52727
Adam King [Fri, 22 Apr 2022 13:23:31 +0000 (09:23 -0400)]
Merge pull request #45982 from rkachach/fix_issue_52727

mgr/cephadm: do not add _admin label when no-minimize-config is provided

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45934 from ceph/fix-github_triage-master
Ernesto Puerta [Fri, 22 Apr 2022 12:02:24 +0000 (14:02 +0200)]
Merge pull request #45934 from ceph/fix-github_triage-master

.github/pr-triage: reorder milestone step

Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #45631 from Rethan/feat-mds-slow-ops
Venky Shankar [Fri, 22 Apr 2022 11:56:52 +0000 (17:26 +0530)]
Merge pull request #45631 from Rethan/feat-mds-slow-ops

mds: add a perf counter to record slow replies

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoclient: fix compile warning and incorrect computing the max_fwd 45983/head
Xiubo Li [Thu, 21 Apr 2022 10:15:20 +0000 (18:15 +0800)]
client: fix compile warning and incorrect computing the max_fwd

warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
   max_fwd = 1 << (max_fwd * CHAR_BIT) - 1;
                  ~~~~~~~~~~~~~~~~~~~~~^~~

And also the '-' has precedence over the '<<', more detail please
see https://en.cppreference.com/w/c/language/operator_precedence.

Fixes: https://tracker.ceph.com/issues/55409
Reported-by: Jos Collin <jcollin@redhat.com>
Reported-by: Rishabh Dave <ridave@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoMerge pull request #45978 from tchaikov/wip-cmake-python3-exact
Kefu Chai [Thu, 21 Apr 2022 23:10:02 +0000 (07:10 +0800)]
Merge pull request #45978 from tchaikov/wip-cmake-python3-exact

cmake/modules: use exact version of python3 when finding cython

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agokv/RocksDBStore: simplify RocksDBStore::get_cf_handle(string, IteratorBounds) 45904/head
Cory Snyder [Thu, 21 Apr 2022 19:56:06 +0000 (15:56 -0400)]
kv/RocksDBStore: simplify RocksDBStore::get_cf_handle(string, IteratorBounds)

Adds a precondition to RocksDBStore::get_cf_handle(string, IteratorBounds)
to avoid duplicating logic of the only caller (RocksDBStore::get_iterator).
Assertions will fail if preconditions are not met.

Signed-off-by: Cory Snyder <csnyder@iland.com>
3 years agorgw: RGWPutLC does not require Content-MD5 45990/head
Casey Bodley [Thu, 21 Apr 2022 18:44:01 +0000 (14:44 -0400)]
rgw: RGWPutLC does not require Content-MD5

amazon docs for PutBucketLifecycleConfiguration do say that a
Content-MD5 header is required, but clients in FIPS mode may not
be able to generate this header.

MD5 should not be used as a security feature, so rgw shouldn't require
it here. if no Content-MD5 is given, just skip the checksum verification
instead of rejecting the request

Fixes: https://tracker.ceph.com/issues/55339
Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agobluestore: add config option to allow rocksdb iterator bounds to be disabled
Cory Snyder [Thu, 21 Apr 2022 17:13:22 +0000 (13:13 -0400)]
bluestore: add config option to allow rocksdb iterator bounds to be disabled

Add osd_rocksdb_iterator_bounds_enabled config option to allow rocksdb iterator bounds to be disabled.
Also includes minor refactoring to shorten code associated with IteratorBounds initialization in bluestore.

Signed-off-by: Cory Snyder <csnyder@iland.com>
3 years agoMerge pull request #44151 from gregsfortytwo/wip-cidr-blocklist
Gregory Farnum [Thu, 21 Apr 2022 15:31:16 +0000 (08:31 -0700)]
Merge pull request #44151 from gregsfortytwo/wip-cidr-blocklist

Implement CIDR blocklisting

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>