]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoMerge pull request #43030 from dsavineau/cephadm_fix_prometheus_spelling
Sebastian Wagner [Fri, 3 Sep 2021 07:37:04 +0000 (09:37 +0200)]
Merge pull request #43030 from dsavineau/cephadm_fix_prometheus_spelling

cephadm: fix prometheus namespace spelling

Reviewed-by: Sage Weil <sage@newdream.net>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge PR #42873 into master
Sage Weil [Thu, 2 Sep 2021 21:11:51 +0000 (17:11 -0400)]
Merge PR #42873 into master

* refs/pull/42873/head:
qa/tasks/rook: add OSD creation to Rook QA

Reviewed-by: Sage Weil <sage@redhat.com>
3 years agoMerge pull request #43018 from cyx1231st/wip-seastore-onode-tree-alloc-hint
Samuel Just [Thu, 2 Sep 2021 19:34:08 +0000 (12:34 -0700)]
Merge pull request #43018 from cyx1231st/wip-seastore-onode-tree-alloc-hint

crimson/onode-staged-tree: improve laddr hints during allocation

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #43031 from rzarzynski/wip-crimson-watch-reconnect
Samuel Just [Thu, 2 Sep 2021 18:34:07 +0000 (11:34 -0700)]
Merge pull request #43031 from rzarzynski/wip-crimson-watch-reconnect

crimson/osd: fix Watch::connect() behaviour on reconnect.

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #43033 from markhpc/wip-cyanstore-moreops
Samuel Just [Thu, 2 Sep 2021 18:30:40 +0000 (11:30 -0700)]
Merge pull request #43033 from markhpc/wip-cyanstore-moreops

src/crimson: Add various missing ops to cyanstore

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: fix Watch::connect() behaviour on reconnect. 43031/head
Radoslaw Zarzynski [Thu, 2 Sep 2021 14:41:38 +0000 (14:41 +0000)]
crimson/osd: fix Watch::connect() behaviour on reconnect.

It's perfectly legal for a client to reconnect to particular `Watch`
using different socket / `Connection` than original one. This shall
include proper handling of the watch timer which is currently broken
as, when reconnecting, we don't cancel the timer. This leaded to the
following crash at Sepia:

```
rzarzynski@teuthology:/home/teuthworker/archive/rzarzynski-2021-09-02_07:44:51-rados-master-distro-basic-smithi/6372357$ less ./remote/smithi183/log/ceph-osd.4.log.gz
...
DEBUG 2021-09-02 08:10:45,462 [shard 0] osd - client_request(id=12, detail=m=[osd_op(client.5087.0:93 7.1e 7:7c7084bd:::repobj:head {watch reconnect cookie 94478891024832 gen 1} snapc 0={} ondisk+write+know
n_if_redirected e40) v8]): got obc lock
...
DEBUG 2021-09-02 08:10:45,462 [shard 0] osd - do_op_watch
INFO  2021-09-02 08:10:45,462 [shard 0] osd - found existing watch by client.5087
DEBUG 2021-09-02 08:10:45,462 [shard 0] osd - do_op_watch_subop_watch
INFO  2021-09-02 08:10:45,462 [shard 0] osd - found existing watch watch(cookie 94478891024832 30s 172.21.15.150:0/3544196211) by client.5087
...
INFO  2021-09-02 08:10:45,462 [shard 0] osd - op_effect: found existing watcher: 94478891024832,client.5087
ceph-osd: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7406-g9d30203c/rpm/el8/BUILD/ceph-
17.0.0-7406-g9d30203c/src/seastar/include/seastar/core/timer.hh:95: void seastar::timer<Clock>::arm_state(seastar::timer<Clock>::time_point, std::optional<typename Clock::duration>) [with Clock = seastar::l
owres_clock; seastar::timer<Clock>::time_point = std::chrono::time_point<seastar::lowres_clock, std::chrono::duration<long int, std::ratio<1, 1000> > >; typename Clock::duration = std::chrono::duration<long
 int, std::ratio<1, 1000> >]: Assertion `!_armed' failed.
Aborting on shard 0.
Backtrace:
 0# 0x000055CC052CF0B6 in ceph-osd
 1# FatalSignal::signaled(int, siginfo_t const&) in ceph-osd
 2# FatalSignal::install_oneshot_signal_handler<6>()::{lambda(int, siginfo_t*, void*)#1}::_FUN(int, siginfo_t*, void*) in ceph-osd
 3# 0x00007FA58349FB20 in /lib64/libpthread.so.0
 4# gsignal in /lib64/libc.so.6
 5# abort in /lib64/libc.so.6
 6# 0x00007FA581A98C89 in /lib64/libc.so.6
 7# 0x00007FA581AA6A76 in /lib64/libc.so.6
 8# 0x000055CC0BEEE9DD in ceph-osd
 9# crimson::osd::Watch::connect(seastar::shared_ptr<crimson::net::Connection>, bool) in ceph-osd
10# 0x000055CC00B1D246 in ceph-osd
11# 0x000055CBFFEF01AE in ceph-osd
...
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agosrc/crimson: Add various missing ops to cyanstore 43033/head
Mark Nelson [Thu, 2 Sep 2021 14:46:26 +0000 (14:46 +0000)]
src/crimson: Add various missing ops to cyanstore

Signed-off-by: Mark Nelson <mnelson@redhat.com>
3 years agoMerge pull request #43015 from ktdreyer/build-doc-venv
Deepika Upadhyay [Thu, 2 Sep 2021 14:41:01 +0000 (20:11 +0530)]
Merge pull request #43015 from ktdreyer/build-doc-venv

admin/build-doc: use venv module again

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agocephadm: fix prometheus namespace spelling 43030/head
Dimitri Savineau [Thu, 2 Sep 2021 14:28:18 +0000 (10:28 -0400)]
cephadm: fix prometheus namespace spelling

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
3 years agoMerge pull request #42994 from ceph/wip-crimson-monmap-more-srcs
Kefu Chai [Thu, 2 Sep 2021 13:51:06 +0000 (21:51 +0800)]
Merge pull request #42994 from ceph/wip-crimson-monmap-more-srcs

monmap, crimson: add support for mon_host_override

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #39849 from pritha-srivastava/wip-rgw-sts-principal-tags
Matt Benjamin [Thu, 2 Sep 2021 11:39:49 +0000 (07:39 -0400)]
Merge pull request #39849 from pritha-srivastava/wip-rgw-sts-principal-tags

rgw/sts: adding code for aws:RequestTags as part

3 years agoMerge pull request #42982 from adk3798/async-mock-py3-8
Sebastian Wagner [Thu, 2 Sep 2021 10:04:01 +0000 (12:04 +0200)]
Merge pull request #42982 from adk3798/async-mock-py3-8

mgr/cephadm: don't fail unit tests if can't import AsyncMock

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #42830 from ifed01/wip-ifed-fix-bluefs-replay-crc
Igor Fedotov [Thu, 2 Sep 2021 09:40:27 +0000 (12:40 +0300)]
Merge pull request #42830 from ifed01/wip-ifed-fix-bluefs-replay-crc

os/bluestore: accept undecodable multi-block bluefs transactions on log

Reviewed-by: Sage Weil <sweil@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agocrimson/onode-staged-tree: add logs for hint 43018/head
Yingxin Cheng [Thu, 2 Sep 2021 04:42:27 +0000 (12:42 +0800)]
crimson/onode-staged-tree: add logs for hint

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/onode-staged-tree: implement hint based on the splitting node
Yingxin Cheng [Thu, 2 Sep 2021 04:39:27 +0000 (12:39 +0800)]
crimson/onode-staged-tree: implement hint based on the splitting node

Instead of the hint from the inserting key.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/onode-staged-tree: implement hint in NodeImpl::rebuild_extent()
Yingxin Cheng [Thu, 2 Sep 2021 03:05:18 +0000 (11:05 +0800)]
crimson/onode-staged-tree: implement hint in NodeImpl::rebuild_extent()

Get the hint from its first key when rebuilding a node extent.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #43016 from athanatos/sjust/wip-fix-build
Yingxin [Thu, 2 Sep 2021 01:19:29 +0000 (09:19 +0800)]
Merge pull request #43016 from athanatos/sjust/wip-fix-build

crimson/os/seastore/lba_manager/btree/lba_btree: fix FTBFS on gcc 9

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agocrimson/os/seastore/lba_manager/btree/lba_btree: fix FTBFS on gcc 9 wip-sjust-testing 43016/head
Samuel Just [Wed, 1 Sep 2021 21:44:14 +0000 (14:44 -0700)]
crimson/os/seastore/lba_manager/btree/lba_btree: fix FTBFS on gcc 9

gcc-9 doesn't seem to consider interator nothrow move constructible with
the default move constructor implementation yielding the following build
failure:

m/el8/BUILD/ceph-17.0.0-7373-gfc349212/src/seastar/include/seastar/core/future.hh:584:58: error: static assertion failed: Types must be no-throw move constructible
  584 |     static_assert(std::is_nothrow_move_constructible<T>::value,

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoadmin/build-doc: use venv module again 43015/head
Ken Dreyer [Wed, 1 Sep 2021 21:40:35 +0000 (17:40 -0400)]
admin/build-doc: use venv module again

Commit 690ca1c5628af629a25a80611c20e56095f13352 accidentally
re-introduced virtualenv. Switch back to the venv module in stdlib.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
3 years agoMerge pull request #42942 from zdover23/wip-doc-mgr-progress
zdover23 [Wed, 1 Sep 2021 16:17:22 +0000 (02:17 +1000)]
Merge pull request #42942 from zdover23/wip-doc-mgr-progress

doc/mgr: add progress module documentation

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoqa/tasks/rook: add OSD creation to Rook QA 42873/head
Joseph Sawaya [Wed, 18 Aug 2021 15:52:39 +0000 (11:52 -0400)]
qa/tasks/rook: add OSD creation to Rook QA

This commit adds OSD creation to the Rook QA tasks. The Rook task will
explicitly wait for the mgr to start and the CLI to work (instead of
implicitly doing so while waiting for 'ceph osd dump' to work).
Then it will do `ceph orch apply osd --all-available-devices` to create
OSDs on the rest of the PVs.

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
3 years agoMerge pull request #42948 from llamerada-jp/fix-radosgw-admin-document
Daniel Gryniewicz [Wed, 1 Sep 2021 12:40:04 +0000 (08:40 -0400)]
Merge pull request #42948 from llamerada-jp/fix-radosgw-admin-document

rgw: fix document

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agomgr/cephadm: run coroutines in a new event loop 42982/head
Michael Fritch [Mon, 30 Aug 2021 22:53:07 +0000 (16:53 -0600)]
mgr/cephadm: run coroutines in a new event loop

`asyncio.run` does not exist until python37 or later

Signed-off-by: Michael Fritch <mfritch@suse.com>
3 years agoqa/tasks: Addition of new code for session tags in STS 39849/head
Kalpesh Pandya [Wed, 28 Jul 2021 06:23:31 +0000 (11:53 +0530)]
qa/tasks: Addition of new code for session tags in STS

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
3 years agoqa/tasks: Addition of two new parameters for sts-tests
Kalpesh Pandya [Fri, 16 Jul 2021 09:51:53 +0000 (15:21 +0530)]
qa/tasks: Addition of two new parameters for sts-tests

Addition of SUB and AZP parameter for some new sts-tests

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
3 years agorgw/sts: configuration steps to add tags to a user in
Pritha Srivastava [Fri, 20 Aug 2021 09:51:24 +0000 (15:21 +0530)]
rgw/sts: configuration steps to add tags to a user in
Keycloak.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: documentation related to tag, list tags
Pritha Srivastava [Fri, 30 Jul 2021 10:22:58 +0000 (15:52 +0530)]
rgw/sts: documentation related to tag, list tags
and untag REST APIs for a role.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: adding documentation for session tags,
Pritha Srivastava [Mon, 26 Jul 2021 05:30:36 +0000 (11:00 +0530)]
rgw/sts: adding documentation for session tags,
all kinds of tag keys and related examples.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: documentation related to supporting all claims
Pritha Srivastava [Wed, 14 Jul 2021 10:33:22 +0000 (16:03 +0530)]
rgw/sts: documentation related to supporting all claims
in the JWT in the condition of the trust policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: code changes to store multi-valued tags
Pritha Srivastava [Sat, 5 Jun 2021 15:42:02 +0000 (21:12 +0530)]
rgw/sts: code changes to store multi-valued tags
for objects and buckets (to be used as s3:ResourceTags
in Identity and Resource policies).

Test code changes as suggested by Yuval Lifshitz.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: code to add role tags as aws:PrincipalTags and
Pritha Srivastava [Thu, 3 Jun 2021 10:03:03 +0000 (15:33 +0530)]
rgw/sts: code to add role tags as aws:PrincipalTags and
iam:ResourceTags.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: added code to tag, untag and list role tags.
Pritha Srivastava [Tue, 1 Jun 2021 16:15:37 +0000 (21:45 +0530)]
rgw/sts: added code to tag, untag and list role tags.

The role tags can be used as iam:ResourceTags in AssumeRoleWithWebIdentity
or as aws:PrincipalTags in a session using temporary credentials.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: code to add s3:ResourceTag to IAM environment
Pritha Srivastava [Fri, 7 May 2021 13:06:23 +0000 (18:36 +0530)]
rgw/sts: code to add s3:ResourceTag to IAM environment
for objects and buckets, that will be used in evaluation of
Condition element in the IAM policies.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: code for runtime evaluation of Condition
Pritha Srivastava [Sun, 2 May 2021 03:59:03 +0000 (09:29 +0530)]
rgw/sts: code for runtime evaluation of Condition
element of an IAM policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: code for aws:TagKeys to be used as Condition
Pritha Srivastava [Thu, 8 Apr 2021 09:04:23 +0000 (14:34 +0530)]
rgw/sts: code for aws:TagKeys to be used as Condition
element of a role's trust and permission policy.

This also includes implementation of ForAnyValue and
ForAllValues to be used in conjunction with
StringLike, StringEquals and StringEqualsIgnoreCase
which are used alongwith aws:TagKeys.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: code to use session tags in AssumeRoleWithWebIdentity call,
Pritha Srivastava [Wed, 10 Mar 2021 06:54:49 +0000 (12:24 +0530)]
rgw/sts: code to use session tags in AssumeRoleWithWebIdentity call,
as aws:PrincipalTags in an IAM policy's Condition element.

The incoming session tags in AssumeRoleWithWebIdentity call
are passed along with the session credentials (temporary creds)
as aws:PrincipalTags, and those can be used as Condition element
of an IAM Policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: adding code for aws:RequestTags as part
Pritha Srivastava [Thu, 4 Mar 2021 08:57:46 +0000 (14:27 +0530)]
rgw/sts: adding code for aws:RequestTags as part
of session tags implementation.

Session Tags can be passed in the web token in
AssumeRoleWithWebIdentity call by configuring
them in the IDP. These tags can be used as Conditions
in the trust policy of a role as aws:RequestTag, based
on which a federated user is allowed to assume a role.
The trust policy should have a statement for 'sts:TagSession'
alongwith 'sts:AssumeRoleWithWebIdentity' in case principal
tags are passed in the web token.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw/sts: adding code to enable usage of all
Pritha Srivastava [Wed, 31 Mar 2021 08:57:20 +0000 (14:27 +0530)]
rgw/sts: adding code to enable usage of all
token claims as 'Condition' of a role's
trust policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agoMerge pull request #42995 from rhcs-dashboard/fix-kcli-dashboard-e2e-doc
Ernesto Puerta [Wed, 1 Sep 2021 09:26:46 +0000 (11:26 +0200)]
Merge pull request #42995 from rhcs-dashboard/fix-kcli-dashboard-e2e-doc

doc/dashboard: Fix kcli pool and network requirements documentation

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #43004 from gregsfortytwo/wip-nodaemon
Samuel Just [Wed, 1 Sep 2021 03:59:53 +0000 (20:59 -0700)]
Merge pull request #43004 from gregsfortytwo/wip-nodaemon

vstart: make "--crimson" imply "--nodaemon"

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #43003 from gregsfortytwo/wip-error-code-value
Samuel Just [Wed, 1 Sep 2021 02:12:26 +0000 (19:12 -0700)]
Merge pull request #43003 from gregsfortytwo/wip-error-code-value

crimson: osd: do not capture std::error_code by reference

Reviewed-by: Xuehan Xu <xuxuehan@360.cn>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agovstart: make "--crimson" imply "--nodaemon" 43004/head
Greg Farnum [Tue, 31 Aug 2021 23:59:51 +0000 (23:59 +0000)]
vstart: make "--crimson" imply "--nodaemon"

If you want to run multiple crimson-osd instances, you need nodaemon. Default
to nodaemon when using crimson.

Add a new "--crimson-foreground" which preserves the old behavior, in case
it's needed.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agocrimson: osd: do not capture std::error_code by reference 43003/head
Greg Farnum [Tue, 31 Aug 2021 20:18:49 +0000 (20:18 +0000)]
crimson: osd: do not capture std::error_code by reference

I can't find any reason to assume it has a longer lifetime than
the future we're creating has.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agoMerge pull request #42831 from ifed01/wip-ifed-fix-52311
Yuri Weinstein [Tue, 31 Aug 2021 23:46:30 +0000 (16:46 -0700)]
Merge pull request #42831 from ifed01/wip-ifed-fix-52311

os/bluestore: fix using incomplete bluefs log when dumping it.

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoMerge pull request #41912 from trociny/wip-crushdiff
Neha Ojha [Tue, 31 Aug 2021 21:18:37 +0000 (14:18 -0700)]
Merge pull request #41912 from trociny/wip-crushdiff

tools/crushdiff: new tool to test crushmap change

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agomgr/cephadm: add asyncmock to python venv
Michael Fritch [Mon, 30 Aug 2021 22:49:24 +0000 (16:49 -0600)]
mgr/cephadm: add asyncmock to python venv

for running unittests on python <= 3.8

Signed-off-by: Michael Fritch <mfritch@suse.com>
3 years agomgr/cephadm: don't fail unit tests if can't import AsyncMock
Adam King [Mon, 30 Aug 2021 20:18:19 +0000 (16:18 -0400)]
mgr/cephadm: don't fail unit tests if can't import AsyncMock

AsyncMock was added in python 3.8. We don't want unit tests to
be failing if somebody tries running them with pytohn 3.7. Our
Jenkins job should be unaffected and still run the test.

Signed-off-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #42985 from cyx1231st/wip-seastore-lba-metrics
Samuel Just [Tue, 31 Aug 2021 14:56:27 +0000 (07:56 -0700)]
Merge pull request #42985 from cyx1231st/wip-seastore-lba-metrics

crimson/os/seastore: misc improvements to metrics

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agodoc/dashboard: Fix kcli pool and network requirements documentation 42995/head
Pere Diaz Bou [Tue, 31 Aug 2021 14:25:56 +0000 (16:25 +0200)]
doc/dashboard: Fix kcli pool and network requirements documentation

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agomonmap, crimson: unify handling of mon_host and most_host_override. 42994/head
Radoslaw Zarzynski [Tue, 31 Aug 2021 13:50:56 +0000 (13:50 +0000)]
monmap, crimson: unify handling of mon_host and most_host_override.

This commit unifies the code for `mon_host` and `mon_host_override`
handling but only in the `WITH_SEASTAR` domain. The next step is to
extend to to the classical world but there is a subtle difference
in error handling.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #42874 from cbodley/wip-51491
Daniel Gryniewicz [Tue, 31 Aug 2021 13:29:56 +0000 (09:29 -0400)]
Merge pull request #42874 from cbodley/wip-51491

rgw: use existing s->bucket in s3 website retarget()

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agocrimson/os/seastore: drop Transaction::src_t::INIT category from metrics 42985/head
Yingxin Cheng [Tue, 31 Aug 2021 05:26:09 +0000 (13:26 +0800)]
crimson/os/seastore: drop Transaction::src_t::INIT category from metrics

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: measure insert/erase operations
Yingxin Cheng [Tue, 31 Aug 2021 04:54:08 +0000 (12:54 +0800)]
crimson/os/seastore/lba_manager: measure insert/erase operations

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: fix logs
Yingxin Cheng [Tue, 31 Aug 2021 04:39:45 +0000 (12:39 +0800)]
crimson/os/seastore/lba_manager: fix logs

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #42973 from liewegas/doc-foundation-osnexus
Josh Durgin [Mon, 30 Aug 2021 21:51:09 +0000 (14:51 -0700)]
Merge pull request #42973 from liewegas/doc-foundation-osnexus

doc/foundation: add osnexus

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
3 years agoMerge pull request #42966 from cyx1231st/wip-seastore-lba-cleanup
Samuel Just [Mon, 30 Aug 2021 20:44:35 +0000 (13:44 -0700)]
Merge pull request #42966 from cyx1231st/wip-seastore-lba-cleanup

crimson/os/seastore/lba_manager: misc cleanup

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #42970 from sebastian-philipp/monitoring-custom-webhook
Sebastian Wagner [Mon, 30 Aug 2021 14:34:45 +0000 (16:34 +0200)]
Merge pull request #42970 from sebastian-philipp/monitoring-custom-webhook

doc/cephadm: monitoring: Add "Adding Alertmanager webhooks"

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
3 years agodoc/foundation: add osnexus 42973/head
Sage Weil [Mon, 30 Aug 2021 13:11:37 +0000 (08:11 -0500)]
doc/foundation: add osnexus

Signed-off-by: Sage Weil <sage@newdream.net>
3 years agomonmap, crimson: add support for the mon_host_override configurable.
Radoslaw Zarzynski [Thu, 26 Aug 2021 17:17:14 +0000 (17:17 +0000)]
monmap, crimson: add support for the mon_host_override configurable.

NOTE: crimson still misses the `CephContext::get_mon_addrs()` support.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agodoc/cephadm: monitoring: Further Reading 42970/head
Sebastian Wagner [Mon, 30 Aug 2021 11:14:30 +0000 (13:14 +0200)]
doc/cephadm: monitoring: Further Reading

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years ago.github/labeler: Add monitoring
Sebastian Wagner [Mon, 30 Aug 2021 10:45:56 +0000 (12:45 +0200)]
.github/labeler: Add monitoring

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc/cephadm: monitoring: Add "Adding Alertmanager webhooks"
Sebastian Wagner [Mon, 30 Aug 2021 10:37:26 +0000 (12:37 +0200)]
doc/cephadm: monitoring: Add "Adding Alertmanager webhooks"

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc/cephadm: monitoring: Add "Setting up Grafana"
Sebastian Wagner [Mon, 30 Aug 2021 10:26:23 +0000 (12:26 +0200)]
doc/cephadm: monitoring: Add "Setting up Grafana"

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc/cephadm: monitoring: move "deploying w/o" up
Sebastian Wagner [Mon, 30 Aug 2021 10:23:13 +0000 (12:23 +0200)]
doc/cephadm: monitoring: move "deploying w/o" up

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc/cephadm: monitoring: default placements
Sebastian Wagner [Mon, 30 Aug 2021 10:20:53 +0000 (12:20 +0200)]
doc/cephadm: monitoring: default placements

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #42848 from ronen-fr/wip-ronenf-argv2vec-users
Ronen Friedman [Mon, 30 Aug 2021 09:44:40 +0000 (12:44 +0300)]
Merge pull request #42848 from ronen-fr/wip-ronenf-argv2vec-users

common: modify 'main()s' to use new argv_to_vec() signature

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #42959 from idryomov/wip-krbd-escape-match-sysattr
Ilya Dryomov [Mon, 30 Aug 2021 09:25:31 +0000 (11:25 +0200)]
Merge pull request #42959 from idryomov/wip-krbd-escape-match-sysattr

krbd: escape udev_enumerate_add_match_sysattr values

Reviewed-by: Mykola Golub <mgolub@suse.com>
3 years agoMerge pull request #42913 from yaarith/update-sudoers-smartctl
Deepika Upadhyay [Mon, 30 Aug 2021 08:56:03 +0000 (14:26 +0530)]
Merge pull request #42913 from yaarith/update-sudoers-smartctl

rpm, debian: move smartmontools and nvme-cli to ceph-base

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #42770 from ktdreyer/no-lsb-release
Deepika Upadhyay [Mon, 30 Aug 2021 08:43:02 +0000 (14:13 +0530)]
Merge pull request #42770 from ktdreyer/no-lsb-release

Remove dependency on lsb_release

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agocrimson/os/seastore/lba_manager: drop the unecessary lookup in leaf 42966/head
Yingxin Cheng [Mon, 30 Aug 2021 08:03:13 +0000 (16:03 +0800)]
crimson/os/seastore/lba_manager: drop the unecessary lookup in leaf

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: drop the impossible case that the insert key exists...
Yingxin Cheng [Mon, 30 Aug 2021 07:50:06 +0000 (15:50 +0800)]
crimson/os/seastore/lba_manager: drop the impossible case that the insert key exists after handle_split

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: end iterator should be pointing to the leaf-node...
Yingxin Cheng [Mon, 30 Aug 2021 07:44:41 +0000 (15:44 +0800)]
crimson/os/seastore/lba_manager: end iterator should be pointing to the leaf-node size already

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: misc improvements on debugging
Yingxin Cheng [Mon, 30 Aug 2021 07:41:22 +0000 (15:41 +0800)]
crimson/os/seastore/lba_manager: misc improvements on debugging

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: check depth when load lba node
Yingxin Cheng [Mon, 30 Aug 2021 07:37:16 +0000 (15:37 +0800)]
crimson/os/seastore/lba_manager: check depth when load lba node

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: mark iterator(depth_t) private
Yingxin Cheng [Mon, 30 Aug 2021 07:31:11 +0000 (15:31 +0800)]
crimson/os/seastore/lba_manager: mark iterator(depth_t) private

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: cleanup LBABtree::iterate_repeat()
Yingxin Cheng [Mon, 30 Aug 2021 07:24:58 +0000 (15:24 +0800)]
crimson/os/seastore/lba_manager: cleanup LBABtree::iterate_repeat()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/lba_manager: drop unused code
Yingxin Cheng [Mon, 30 Aug 2021 07:13:42 +0000 (15:13 +0800)]
crimson/os/seastore/lba_manager: drop unused code

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #42961 from tchaikov/wip-docker-test
Kefu Chai [Sun, 29 Aug 2021 23:42:53 +0000 (07:42 +0800)]
Merge pull request #42961 from tchaikov/wip-docker-test

test/docker-test.sh: add support for fedora 34 and debian stretch

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
3 years agotest/docker-test.sh: add support for fedora 34 and debian strech 42961/head
Kefu Chai [Sun, 29 Aug 2021 13:43:23 +0000 (21:43 +0800)]
test/docker-test.sh: add support for fedora 34 and debian strech

and drop fedora-31, fedora32, debian-jessie and ubuntu-16.04 since
they are not maintained anymore. see

- https://fedoraproject.org/wiki/End_of_life
- https://wiki.debian.org/LTS
- https://wiki.ubuntu.com/Releases

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agokrbd: escape udev_enumerate_add_match_sysattr values 42959/head
Ilya Dryomov [Sat, 28 Aug 2021 09:05:28 +0000 (11:05 +0200)]
krbd: escape udev_enumerate_add_match_sysattr values

libudev uses fnmatch(3) for matching attributes, meaning that shell
glob pattern matching is employed instead of literal string matching.
Escape glob metacharacters to suppress pattern matching.

Fixes: https://tracker.ceph.com/issues/52425
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agoMerge pull request #42957 from athanatos/sjust/wip-lba-rewrite-working
Samuel Just [Sat, 28 Aug 2021 07:14:22 +0000 (00:14 -0700)]
Merge pull request #42957 from athanatos/sjust/wip-lba-rewrite-working

crimson: add object_info, log support to crimson-store-nbd, fix lba btree bugs

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agocrimson/os/seastore/lba_manager/btree: don't assert deltas are empty 42957/head
Samuel Just [Fri, 27 Aug 2021 21:19:54 +0000 (21:19 +0000)]
crimson/os/seastore/lba_manager/btree: don't assert deltas are empty

We use the contents to update counters when transactions conflict,
deltas may validly be empty there.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/os/seastore/cache: retire_extent_addr: add addr asserts
Samuel Just [Fri, 27 Aug 2021 20:56:42 +0000 (13:56 -0700)]
crimson/os/seastore/cache: retire_extent_addr: add addr asserts

retire_extent_addr can only be called on absolute or record-relative
addrs.  Record-relative addrs are only valid on extents allocated as
part of the current transaction.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/os/seastore/lba_manager/btree: fix get_val() paddr value from iterator
Samuel Just [Fri, 27 Aug 2021 05:42:38 +0000 (05:42 +0000)]
crimson/os/seastore/lba_manager/btree: fix get_val() paddr value from iterator

This was causing a stray RETIRED_PLACEHOLDER to be created resulting in
a segment cleaner segfault in release on an invalid segment and a crash
upon adding a duplicate lba btree pin since the returned addr didn't
match the addr of the INITIAL_PENDING extent on the transaction.

Fixes: https://tracker.ceph.com/issues/52434
Fixes: https://tracker.ceph.com/issues/52435
Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/tools/store_nbd: add log emulation to fs_driver
Samuel Just [Fri, 27 Aug 2021 21:41:22 +0000 (14:41 -0700)]
crimson/tools/store_nbd: add log emulation to fs_driver

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agodoc/mgr: add progress module documentation 42942/head
Zac Dover [Thu, 26 Aug 2021 23:52:51 +0000 (09:52 +1000)]
doc/mgr: add progress module documentation

This PR ingests the work added to the documentation
in PR#29335.

The technical information in this PR concerns the
installation and use of the "Progress Module".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Signed-off-by: kamoltat <ksirivad@redhat.com>
3 years agoMerge PR #42899 into master
Patrick Donnelly [Sat, 28 Aug 2021 01:31:04 +0000 (21:31 -0400)]
Merge PR #42899 into master

* refs/pull/42899/head:
src/client: fix dump mds twice

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge PR #42751 into master
Patrick Donnelly [Sat, 28 Aug 2021 01:30:22 +0000 (21:30 -0400)]
Merge PR #42751 into master

* refs/pull/42751/head:
cephfs-mirror: shutdown ClusterWatcher on termination

Reviewed-by: Jos Collin <jcollin@redhat.com>
3 years agoMerge PR #42687 into master
Patrick Donnelly [Sat, 28 Aug 2021 01:29:17 +0000 (21:29 -0400)]
Merge PR #42687 into master

* refs/pull/42687/head:
qa: test the "ms_mode" options in kclient workflows

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge PR #42620 into master
Patrick Donnelly [Sat, 28 Aug 2021 01:28:02 +0000 (21:28 -0400)]
Merge PR #42620 into master

* refs/pull/42620/head:
mds: switch mds_lock to fair mutex
common/Timer: make SafeTimer a template
common/fair_mutex: add is_locked_by_me support
common: do not compile condition_variable_debug in none debug mode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge PR #38481 into master
Patrick Donnelly [Sat, 28 Aug 2021 01:26:41 +0000 (21:26 -0400)]
Merge PR #38481 into master

* refs/pull/38481/head:
qa/vstart_runner: inherit methods instead of duplicating them
qa/ceph_manager: make it possible to reuse few methods
qa/vstart_runner: don't use "shell=False" in run_ceph_w()
qa/ceph_manager: minor refactor

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #42955 from tchaikov/wip-fio-tag
Kefu Chai [Sat, 28 Aug 2021 00:08:48 +0000 (08:08 +0800)]
Merge pull request #42955 from tchaikov/wip-fio-tag

cmake: use ceph repo with tag

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agocrimson/tools/store_nbd: add object_info emulation to fs_driver
Samuel Just [Thu, 26 Aug 2021 20:48:30 +0000 (20:48 +0000)]
crimson/tools/store_nbd: add object_info emulation to fs_driver

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common/interruptible_future: move int future refcounting to trace
Samuel Just [Fri, 27 Aug 2021 05:03:30 +0000 (22:03 -0700)]
crimson/common/interruptible_future: move int future refcounting to trace

We probably want to add a dedicated subsys for this, but for now it's just
too much for debug level.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/tools/store_nbd/fs_driver: collid should be the msb
Samuel Just [Fri, 27 Aug 2021 02:10:26 +0000 (19:10 -0700)]
crimson/tools/store_nbd/fs_driver: collid should be the msb

This way, objects in a collection will sort together.  Probably
a typo.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #39377 from ifed01/wip-ifed-fix-huge-omap-rename
Neha Ojha [Fri, 27 Aug 2021 18:30:30 +0000 (11:30 -0700)]
Merge pull request #39377 from ifed01/wip-ifed-fix-huge-omap-rename

os/bluestore: cap omap naming scheme upgrade transaction

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoMerge pull request #42918 from ifed01/wip-ifed-fix-52398
Neha Ojha [Fri, 27 Aug 2021 18:29:20 +0000 (11:29 -0700)]
Merge pull request #42918 from ifed01/wip-ifed-fix-52398

test/store_test: fix broken test case

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #42926 from zdover23/wip-doc-2021-08-26-nomad-cleanup-cherry-picker
Ilya Dryomov [Fri, 27 Aug 2021 17:04:05 +0000 (19:04 +0200)]
Merge pull request #42926 from zdover23/wip-doc-2021-08-26-nomad-cleanup-cherry-picker

doc: clean rbd-nomad.rst

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agocmake: use ceph repo with tag 42955/head
Kefu Chai [Fri, 27 Aug 2021 16:14:55 +0000 (00:14 +0800)]
cmake: use ceph repo with tag

to address following warning:

fatal: reference is not a tree: 7f02f21f53ccd5e2448086f8e9015489693dd2dc
CMake Error at /home/jenkins-build/build/workspace/ceph-pull-requests/build/fio_ext-prefix/tmp/fio_ext-gitclone.cmake:40 (message):
  Failed to checkout tag: '7f02f21f53ccd5e2448086f8e9015489693dd2dc'

it seems that the shallow option does not work with a sha1 tag option,
let's continue using the ceph repo with a tag.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agomailmap, organizationmap: update Mykola Golub affiliation 41912/head
Mykola Golub [Wed, 4 Aug 2021 08:30:07 +0000 (11:30 +0300)]
mailmap, organizationmap: update Mykola Golub affiliation

Signed-off-by: Mykola Golub <mykola.golub@clyso.com>