]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agocrimson/osd: forward declare OSDOp and ObjectState 41319/head
Kefu Chai [Thu, 13 May 2021 06:23:58 +0000 (14:23 +0800)]
crimson/osd: forward declare OSDOp and ObjectState

simpler this way, also, silence clang warning, as OSDOp is defined as
struct, let's declare it as struct as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: construct future state in-place
Kefu Chai [Thu, 13 May 2021 06:21:48 +0000 (14:21 +0800)]
crimson/osd: construct future state in-place

instead of constructing the value of state, pass the parameters for
building it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40646 from rzarzynski/wip-crimson-watch-timeout
Kefu Chai [Thu, 13 May 2021 06:18:25 +0000 (14:18 +0800)]
Merge pull request #40646 from rzarzynski/wip-crimson-watch-timeout

crimson/osd: implement timeout support for watches

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40608 from tschoonj/etag-spelling
Yuval Lifshitz [Thu, 13 May 2021 05:46:42 +0000 (08:46 +0300)]
Merge pull request #40608 from tschoonj/etag-spelling

rgw: fix spelling of eTag in S3 message structure

4 years agoMerge pull request #41245 from tchaikov/wip-doc-confval-ext
Kefu Chai [Thu, 13 May 2021 01:21:51 +0000 (09:21 +0800)]
Merge pull request #41245 from tchaikov/wip-doc-confval-ext

doc/_ext: fixes related to mgr option rendering

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #41309 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Wed, 12 May 2021 19:44:50 +0000 (12:44 -0700)]
Merge pull request #41309 from yuriw/wip-yuriw-crontab-master

qa/tests: added pacific-p2p

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #41303 from tchaikov/wip-crimson-os-cleanups
Samuel Just [Wed, 12 May 2021 19:13:19 +0000 (12:13 -0700)]
Merge pull request #41303 from tchaikov/wip-crimson-os-cleanups

crimson/os/seastore: do not capture unused variables

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #41261 from cbodley/wip-rgw-beast-sync
Casey Bodley [Wed, 12 May 2021 18:47:21 +0000 (14:47 -0400)]
Merge pull request #41261 from cbodley/wip-rgw-beast-sync

rgw: add config option to disable beast's async process_request()

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
4 years agocrimson/osd: unify the interruption handling between {Internal,}ClientRequest. 40646/head
Radoslaw Zarzynski [Wed, 12 May 2021 16:02:29 +0000 (16:02 +0000)]
crimson/osd: unify the interruption handling between {Internal,}ClientRequest.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: share do_recover_missing() between {Internal,}ClientRequest.
Radoslaw Zarzynski [Wed, 12 May 2021 14:29:25 +0000 (14:29 +0000)]
crimson/osd: share do_recover_missing() between {Internal,}ClientRequest.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoqa/tests: added pacific-p2p 41309/head
Yuri Weinstein [Wed, 12 May 2021 16:00:06 +0000 (09:00 -0700)]
qa/tests: added pacific-p2p

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agoMerge pull request #41094 from dvanders/negative_progress
Kefu Chai [Wed, 12 May 2021 15:04:41 +0000 (23:04 +0800)]
Merge pull request #41094 from dvanders/negative_progress

mgr/progress: ensure progress stays between [0,1]

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #41092 from ifed01/wip-ifed-fix-alloc-init-add-free-0-len
Kefu Chai [Wed, 12 May 2021 15:02:37 +0000 (23:02 +0800)]
Merge pull request #41092 from ifed01/wip-ifed-fix-alloc-init-add-free-0-len

os/bluestore: tolerate zero length for allocators' init_[add/rm]_free()

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40864 from wjwithagen/wjw-fix-KernelDevice-locking
Kefu Chai [Wed, 12 May 2021 15:02:01 +0000 (23:02 +0800)]
Merge pull request #40864 from wjwithagen/wjw-fix-KernelDevice-locking

include, blk: fallback to basic locking if a OS does not have F_OFD_SETLK

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/common: use parameter pack for building future<> 41303/head
Kefu Chai [Wed, 12 May 2021 14:38:15 +0000 (22:38 +0800)]
crimson/common: use parameter pack for building future<>

it mirrors the way how seastar::make_ready_future() works. and more
importantly, it allows us to build interruptible_future in the same
way as we build plain seastar::future<> in-place. so we can, for
instance, create a future<tuepl<int,int>> using:

make_ready_future<tuple<int,int>>(1, 2)

instead of using

make_ready_future<tuple<int,int>>(make_tuple(1, 2))

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os: do not capture unused variables
Kefu Chai [Wed, 12 May 2021 12:26:35 +0000 (20:26 +0800)]
crimson/os: do not capture unused variables

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: ClientRequest::do_recover_missing doesn't depend on OSD anymore.
Radoslaw Zarzynski [Wed, 12 May 2021 13:38:32 +0000 (13:38 +0000)]
crimson/osd: ClientRequest::do_recover_missing doesn't depend on OSD anymore.

This commit enables the unification of missing objects between
`ClientRequest` and `InternalClientRequest`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: sending EVENT_DISCONNECT becomes implementation detail of Watch.
Radoslaw Zarzynski [Wed, 7 Apr 2021 11:41:39 +0000 (11:41 +0000)]
crimson/osd: sending EVENT_DISCONNECT becomes implementation detail of Watch.

In contrast to ceph-osd crimson sends CEPH_WATCH_EVENT_DISCONNECT directly
from the timeout handler and after CEPH_WATCH_EVENT_NOTIFY_COMPLETE.
This simplifies the Watch::remove() interface as callers aren't obliged
anymore to decide whether EVENT_DISCONNECT needs to be send or not -- it
becomes an implementation detail of Watch.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: wire up handling of watch timeouts.
Radoslaw Zarzynski [Mon, 15 Mar 2021 11:59:54 +0000 (11:59 +0000)]
crimson/osd: wire up handling of watch timeouts.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: s/do_timeout/do_notify_timeout/ per the upcoming do_watch_timeout().
Radoslaw Zarzynski [Mon, 15 Mar 2021 11:54:22 +0000 (11:54 +0000)]
crimson/osd: s/do_timeout/do_notify_timeout/ per the upcoming do_watch_timeout().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: introduce the InternalClientRequest infrastructure.
Radoslaw Zarzynski [Thu, 18 Mar 2021 09:49:39 +0000 (09:49 +0000)]
crimson/osd: introduce the InternalClientRequest infrastructure.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: PG::with_locked_obc() doesn't depend on MOSDOp anymore.
Radoslaw Zarzynski [Wed, 31 Mar 2021 17:47:00 +0000 (17:47 +0000)]
crimson/osd: PG::with_locked_obc() doesn't depend on MOSDOp anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #41161 from rhcs-dashboard/ingress-creation-follow-up
Ernesto Puerta [Wed, 12 May 2021 12:02:15 +0000 (14:02 +0200)]
Merge pull request #41161 from rhcs-dashboard/ingress-creation-follow-up

mgr/dashboard: ingress service creation follow-up

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #41174 from pritha-srivastava/wip-rgw-sts-cert-url-fix
Matt Benjamin [Wed, 12 May 2021 10:52:11 +0000 (06:52 -0400)]
Merge pull request #41174 from pritha-srivastava/wip-rgw-sts-cert-url-fix

rgw/sts: code to fetch certs using .well-known/openid-configuration url

4 years agoMerge pull request #41221 from rhcs-dashboard/50686-fix-osd-host-grafana
Ernesto Puerta [Wed, 12 May 2021 10:37:05 +0000 (12:37 +0200)]
Merge pull request #41221 from rhcs-dashboard/50686-fix-osd-host-grafana

mgr/dashboard: fix OSDs Host details/overview grafana graphs

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agomgr/dashboard: ingress service creation follow-up 41161/head
Avan Thakkar [Tue, 4 May 2021 22:01:10 +0000 (03:31 +0530)]
mgr/dashboard: ingress service creation follow-up

Fixes: https://tracker.ceph.com/issues/50568
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Pre-populating the service id(read-only) with the value same as backend service.

4 years agoMerge pull request #41103 from navinbarnwal/RenameFilesystems
Ernesto Puerta [Wed, 12 May 2021 10:13:15 +0000 (12:13 +0200)]
Merge pull request #41103 from navinbarnwal/RenameFilesystems

mgr/dashboard: fix typo: Filesystems to File Systems

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41023 from rhcs-dashboard/bucket-name-async-validator-performance
Ernesto Puerta [Wed, 12 May 2021 08:26:00 +0000 (10:26 +0200)]
Merge pull request #41023 from rhcs-dashboard/bucket-name-async-validator-performance

 mgr/dashboard: RGW buckets async validator performance enhancement and name constraints

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@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>
4 years agoMerge pull request #41196 from rhcs-dashboard/add-services-e2e
Ernesto Puerta [Wed, 12 May 2021 08:09:27 +0000 (10:09 +0200)]
Merge pull request #41196 from rhcs-dashboard/add-services-e2e

mgr/dashboard: add Services e2e tests

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #41292 from tchaikov/wip-crimson-alienstore-cleanup
Kefu Chai [Wed, 12 May 2021 06:55:10 +0000 (14:55 +0800)]
Merge pull request #41292 from tchaikov/wip-crimson-alienstore-cleanup

crimson/os/alienstore: cleanups

Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
4 years agoMerge pull request #41291 from athanatos/sjust/wip-store-nbd-fs
Samuel Just [Wed, 12 May 2021 05:50:00 +0000 (22:50 -0700)]
Merge pull request #41291 from athanatos/sjust/wip-store-nbd-fs

crimson: add seastore and bluestore to crimson-store-nbd

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/tools/store_nbd: ensure RequestWriter outlives any requests on error 41291/head
Samuel Just [Sat, 8 May 2021 01:58:14 +0000 (18:58 -0700)]
crimson/tools/store_nbd: ensure RequestWriter outlives any requests on error

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/seastore.cc: swap stop and umount
Samuel Just [Sat, 8 May 2021 01:57:46 +0000 (18:57 -0700)]
crimson/os/seastore/seastore.cc: swap stop and umount

start/stop seem to be intended for things like thread pools, etc that
seastore doesn't have.  Umount maps more cleanly here.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/tools/store_nbd: add FuturizedStore driver
Samuel Just [Sat, 8 May 2021 01:56:14 +0000 (18:56 -0700)]
crimson/tools/store_nbd: add FuturizedStore driver

Allows usage of bluestore and seastore.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/alienstore: create tuple in-place 41292/head
Kefu Chai [Wed, 12 May 2021 03:50:49 +0000 (11:50 +0800)]
crimson/os/alienstore: create tuple in-place

no need to use make_tuple<> when constructing a future whose value is
available. as future<> can be constructed by perfect forwarding the
parameters to its state constructor.

also, wrap the lines whose length is over 80 chars.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/alienstore: add curly brackets
Kefu Chai [Wed, 12 May 2021 03:45:32 +0000 (11:45 +0800)]
crimson/os/alienstore: add curly brackets

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/alienstore: use get_conf() helper
Kefu Chai [Wed, 12 May 2021 03:44:03 +0000 (11:44 +0800)]
crimson/os/alienstore: use get_conf() helper

do not use cct->_conf.get_val<>, unless we are in alien threads.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore: add debugging on shutdown for cache, pin contents
Samuel Just [Sat, 8 May 2021 01:55:09 +0000 (18:55 -0700)]
crimson/os/seastore: add debugging on shutdown for cache, pin contents

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/tools/store-nbd: break into multiple files
Samuel Just [Tue, 4 May 2021 17:16:57 +0000 (17:16 +0000)]
crimson/tools/store-nbd: break into multiple files

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #41271 from cyx1231st/wip-seastore-onode-tree-logger
Kefu Chai [Wed, 12 May 2021 01:08:07 +0000 (09:08 +0800)]
Merge pull request #41271 from cyx1231st/wip-seastore-onode-tree-logger

crimson/onode-staged-tree: switch to seastore logger macros

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41256 from tchaikov/wip-doc-rbd-confval
Ilya Dryomov [Tue, 11 May 2021 20:28:46 +0000 (22:28 +0200)]
Merge pull request #41256 from tchaikov/wip-doc-rbd-confval

doc/rbd/rbd-config-ref: use confval directive to define options

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 years agomgr/dashboard: fix typo: Filesystems to File Systems 41103/head
Navin Barnwal [Tue, 11 May 2021 18:49:56 +0000 (00:19 +0530)]
mgr/dashboard: fix typo: Filesystems to File Systems

Fixes: https://tracker.ceph.com/issues/50341
Signed-off-by: Navin Barnwal <knbarnwal@gmail.com>
4 years agomgr/dashboard: fix typo: Filesystems to File Systems
Navin Barnwal [Tue, 11 May 2021 18:29:53 +0000 (23:59 +0530)]
mgr/dashboard: fix typo: Filesystems to File Systems

Fixes: https://tracker.ceph.com/issues/50341
Signed-off-by: Navin Barnwal <knbarnwal@gmail.com>
4 years agoMerge pull request #41226 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Tue, 11 May 2021 18:21:01 +0000 (11:21 -0700)]
Merge pull request #41226 from yuriw/wip-yuriw-crontab-master

qa/tests: removed most of runs for nautilus as it's almost EOL

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agomgr/dashboard: Detailed error messages in rgw bucket name validation 41023/head
Nizamudeen A [Sun, 25 Apr 2021 12:41:03 +0000 (18:11 +0530)]
mgr/dashboard: Detailed error messages in rgw bucket name validation

Explain the rgw bucket name constrains for each bucket name validation
errors.

Fixes: https://tracker.ceph.com/issues/50516
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agomgr/dashboard: fix typo: Filesystems to File Systems
Navin Barnwal [Tue, 11 May 2021 17:11:08 +0000 (22:41 +0530)]
mgr/dashboard: fix typo: Filesystems to File Systems

Fixes: https://tracker.ceph.com/issues/50341
Signed-off-by: Navin Barnwal <knbarnwal@gmail.com>
4 years agomgr/dashboard: add Services e2e tests 41196/head
Avan Thakkar [Thu, 6 May 2021 11:05:38 +0000 (16:35 +0530)]
mgr/dashboard: add Services e2e tests

Fixes: https://tracker.ceph.com/issues/50567
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Introducing e2e tests for service creation for Ingress and RGW service types.

4 years agoqa/tests: removed most of runs for nautilus as it's almost EOL 41226/head
Yuri Weinstein [Tue, 11 May 2021 15:59:33 +0000 (08:59 -0700)]
qa/tests: removed most of runs for nautilus as it's almost EOL

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agoMerge pull request #41272 from Aran85/fix-assert
Samuel Just [Tue, 11 May 2021 15:06:56 +0000 (08:06 -0700)]
Merge pull request #41272 from Aran85/fix-assert

crimson/os: cleanup wrongly assertion

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #41274 from tchaikov/wip-crimson-os-cleanups
Samuel Just [Tue, 11 May 2021 15:06:01 +0000 (08:06 -0700)]
Merge pull request #41274 from tchaikov/wip-crimson-os-cleanups

crimson/os/seastore: do not capture unused variables

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agomgr/dashboard: RGW buckets async validator performance enhancement
Nizamudeen A [Sun, 25 Apr 2021 08:47:07 +0000 (14:17 +0530)]
mgr/dashboard: RGW buckets async validator performance enhancement

The rgw bucket creation form has the Name field which have an async
validator. The validator calls all the bucket name and check if the
entered name is unique or not. This happens on every keystroke. So if
100 or more buckets are there, then the async validation can be real
    slow and causes misvalidations in different fields.

I changed the validation logic and did some cleanups to improve the
performance of the async validation.

Fixes: https://tracker.ceph.com/issues/50514
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #41193 from sebastian-philipp/cephadm-cephfs-mirror-key-profile...
Sebastian Wagner [Tue, 11 May 2021 14:45:44 +0000 (16:45 +0200)]
Merge pull request #41193 from sebastian-philipp/cephadm-cephfs-mirror-key-profile-cephfs-mirror

mgr/cephadm: Use `cephfs-mirror` caps profile

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 years agoMerge pull request #41181 from adk3798/iscsi-timeout
Sebastian Wagner [Tue, 11 May 2021 14:44:17 +0000 (16:44 +0200)]
Merge pull request #41181 from adk3798/iscsi-timeout

mgr/cephadm: add timeout when removing iscsi gateway.conf

Reviewed-by: Daniel Pivonka <dpivonka@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #41175 from mgfritch/cephadm-autopep8
Sebastian Wagner [Tue, 11 May 2021 14:43:14 +0000 (16:43 +0200)]
Merge pull request #41175 from mgfritch/cephadm-autopep8

cephadm: introduce autopep8

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #41250 from VasishtaShastry/tune_err_msg
Sebastian Wagner [Tue, 11 May 2021 13:03:49 +0000 (15:03 +0200)]
Merge pull request #41250 from VasishtaShastry/tune_err_msg

mgr: Fix orch osd rm stop help message

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #41240 from tchaikov/wip-debian-install-cleanup
Kefu Chai [Tue, 11 May 2021 13:02:53 +0000 (21:02 +0800)]
Merge pull request #41240 from tchaikov/wip-debian-install-cleanup

debian/ceph-common.postinst: fix indent and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge pull request #41276 from tchaikov/wip-docs-responsive-button
Kefu Chai [Tue, 11 May 2021 12:57:49 +0000 (20:57 +0800)]
Merge pull request #41276 from tchaikov/wip-docs-responsive-button

doc/_theme: show the menu button

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #41265 from zdover23/wip-doc-config-ssl-tls-for-grafana-2021-05-11
zdover23 [Tue, 11 May 2021 12:52:14 +0000 (22:52 +1000)]
Merge pull request #41265 from zdover23/wip-doc-config-ssl-tls-for-grafana-2021-05-11

doc/cephadm: rewrite "config ssl/tls f. grafana"

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #41194 from idryomov/wip-rbd-pwl-status
Ilya Dryomov [Tue, 11 May 2021 11:05:11 +0000 (13:05 +0200)]
Merge pull request #41194 from idryomov/wip-rbd-pwl-status

rbd: don't attempt to interpret image cache state json

Reviewed-by: Yin Congmin <congmin.yin@intel.com>
Reviewed-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
4 years agomgr/dashboard: fix typo: Filesystems to File Systems
Navin Barnwal [Tue, 11 May 2021 10:58:08 +0000 (16:28 +0530)]
mgr/dashboard: fix typo: Filesystems to File Systems
Added breadcrumbs and edited Filesystem -> File Systems in dashboard
Navigation.

Fixes: https://tracker.ceph.com/issues/50341
Signed-off-by: Navin Barnwal <knbarnwal@gmail.com>
4 years agodoc/_theme: show the menu button 41276/head
Kefu Chai [Tue, 11 May 2021 09:55:32 +0000 (17:55 +0800)]
doc/_theme: show the menu button

because we have a top-nav bar, which is setting on top of the bar
containing the menu button when the docs is displayed wit a device with
smaller width. in this change, the container of the menu button is moved
down a little bit, so it is visible again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore: do not capture unused variables 41274/head
Kefu Chai [Tue, 11 May 2021 08:55:57 +0000 (16:55 +0800)]
crimson/os/seastore: do not capture unused variables

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41100 from navinbarnwal/MinorIssueFeature
Ernesto Puerta [Tue, 11 May 2021 08:28:36 +0000 (10:28 +0200)]
Merge pull request #41100 from navinbarnwal/MinorIssueFeature

mgr/dashboard: fix rename inventory to disks

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
4 years agocrimson/os: cleanup wrongly assertion 41272/head
Aran85 [Tue, 11 May 2021 08:13:44 +0000 (16:13 +0800)]
crimson/os: cleanup wrongly assertion

Signed-off-by: Zengran Zhang <zhangzengran@sangfor.com.cn>
4 years agodoc/mgr/prometheus: use confval directive to define options 41245/head
Kefu Chai [Mon, 10 May 2021 03:45:34 +0000 (11:45 +0800)]
doc/mgr/prometheus: use confval directive to define options

less repeating this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_ext: print "default" using "literal" filter
Kefu Chai [Tue, 11 May 2021 07:50:02 +0000 (15:50 +0800)]
doc/_ext: print "default" using "literal" filter

there is chance that the default value of an option is empty, before
this change the rendered result would be "````", and sphinx is confused
at seeing this:

Unexpected section title or transition.

as it takes it as a notion of section title. after this change,
the "literal" filter is always applied to the default value, so an empty
string is rendered like "<empty string>" instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_ext: define a helper for current_module()
Kefu Chai [Mon, 10 May 2021 03:56:54 +0000 (11:56 +0800)]
doc/_ext: define a helper for current_module()

less repeating this way, this change also addresses the missing option
issue if the option to be rendered is the first option in a document,
and there is no "mgr_module" directive before it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/onode-staged-tree: switch to use seastore logger macros 41271/head
Yingxin Cheng [Tue, 11 May 2021 07:45:27 +0000 (15:45 +0800)]
crimson/onode-staged-tree: switch to use seastore logger macros

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/seastore: remove duplicated log prefix
Yingxin Cheng [Mon, 10 May 2021 08:28:56 +0000 (16:28 +0800)]
crimson/seastore: remove duplicated log prefix

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/onode-staged-tree: change to test logger in TreeBuilder
Yingxin Cheng [Mon, 10 May 2021 08:15:12 +0000 (16:15 +0800)]
crimson/onode-staged-tree: change to test logger in TreeBuilder

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agodoc/_ext: do not require "mgr_module" at end of document
Kefu Chai [Mon, 10 May 2021 03:43:41 +0000 (11:43 +0800)]
doc/_ext: do not require "mgr_module" at end of document

before this change,

.. mgr_module:: None

is required at end of a mgr module document to reset the context, so
the builder env is not polluted when processing the next document.

after this change, this ending directive is not needed anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_ext: do not load all modules for a certain module
Kefu Chai [Mon, 10 May 2021 03:41:58 +0000 (11:41 +0800)]
doc/_ext: do not load all modules for a certain module

instead of collecting all options from all modules, just load the
options from the specified module, this addresses the issue where
options with the same name are overriden by the options defined by
another mgr module.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_ext: add "module" option to confval
Kefu Chai [Mon, 10 May 2021 03:40:11 +0000 (11:40 +0800)]
doc/_ext: add "module" option to confval

in addition to "mgr_module" directive, add the "module" option to
confval. this allows a certain option to specify its own module without
being nested in a "mgr_module" directive pair.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_ext: use str for mgr module options by default
Kefu Chai [Mon, 10 May 2021 02:12:11 +0000 (10:12 +0800)]
doc/_ext: use str for mgr module options by default

sometimes, they don't specify the option type and just default to "str".

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/prometheus: assign default values for server_[addr,port]
Kefu Chai [Mon, 10 May 2021 01:50:42 +0000 (09:50 +0800)]
pybind/mgr/prometheus: assign default values for server_[addr,port]

and add desc to them, so these metadata can be extracted by the sphinx extension.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_ext: compose name using cur_module and option name
Kefu Chai [Mon, 10 May 2021 01:33:34 +0000 (09:33 +0800)]
doc/_ext: compose name using cur_module and option name

so a mgr option can be referenced using
`mgr/<module_name>/<option_name>`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41269 from tchaikov/wip-mgr-max_misplaced
Kefu Chai [Tue, 11 May 2021 07:39:02 +0000 (15:39 +0800)]
Merge pull request #41269 from tchaikov/wip-mgr-max_misplaced

doc/rados/operations: s/max_misplaced/target_max_misplaced_ratio/

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #41075 from cyx1231st/wip-seastore-onode-mgr
Samuel Just [Tue, 11 May 2021 06:43:26 +0000 (23:43 -0700)]
Merge pull request #41075 from cyx1231st/wip-seastore-onode-mgr

crimson/seastore: integrate and test onode-erase/list features

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agodoc/rados/operations: s/max_misplaced/target_max_misplaced_ratio/ 41269/head
Kefu Chai [Tue, 11 May 2021 04:18:56 +0000 (12:18 +0800)]
doc/rados/operations: s/max_misplaced/target_max_misplaced_ratio/

max_misplaced with replaced by in target_max_misplaced_ratio
edbd592ee44e02a5328e1510879555c2f9dcfc9e, but the document was not
sync'ed. let's update it accordingly.

Fixes: https://tracker.ceph.com/issues/50745
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41207 from paulreece42/wip-doc-balancer-options
Kefu Chai [Tue, 11 May 2021 04:04:49 +0000 (12:04 +0800)]
Merge pull request #41207 from paulreece42/wip-doc-balancer-options

doc: added doc on more throttling options for the PG balancer module

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/rbd/rbd-config-ref: use confval directive to define options 41256/head
Kefu Chai [Mon, 10 May 2021 12:56:15 +0000 (20:56 +0800)]
doc/rbd/rbd-config-ref: use confval directive to define options

less repeating this way.

also fix a typo of "rbd_qos_writ_bps_limit", it should be
"rbd_qos_write_bps_limit".

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/cephadm: rewrite "config ssl/tls f. grafana" 41265/head
Zac Dover [Mon, 10 May 2021 23:19:10 +0000 (09:19 +1000)]
doc/cephadm: rewrite "config ssl/tls f. grafana"

This PR streamlines the grammar in the subsection
called "Configuring SSL/TLS for Grafana" in the
monitoring.rst file. It also corrects the prompt
rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agocrimson/osd: PG::get_oid() doesn't depend on MOSDOp anymore.
Radoslaw Zarzynski [Wed, 31 Mar 2021 17:40:26 +0000 (17:40 +0000)]
crimson/osd: PG::get_oid() doesn't depend on MOSDOp anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoosd: introduce OpInfo filling from a vector of OSDOps.
Radoslaw Zarzynski [Wed, 31 Mar 2021 15:28:54 +0000 (15:28 +0000)]
osd: introduce OpInfo filling from a vector of OSDOps.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: expose the non-MOSDOp-taking variant of do_osd_ops() externally.
Radoslaw Zarzynski [Tue, 30 Mar 2021 18:38:47 +0000 (18:38 +0000)]
crimson/osd: expose the non-MOSDOp-taking variant of do_osd_ops() externally.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: PG::do_osd_ops_execute() doesn't depend on MOSDOp anymore.
Radoslaw Zarzynski [Tue, 23 Mar 2021 21:39:58 +0000 (21:39 +0000)]
crimson/osd: PG::do_osd_ops_execute() doesn't depend on MOSDOp anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: pass std::vector<OSDOp>& to PG::submit_transaction().
Radoslaw Zarzynski [Tue, 23 Mar 2021 21:27:16 +0000 (21:27 +0000)]
crimson/osd: pass std::vector<OSDOp>& to PG::submit_transaction().

This will allow in a moment to get rid of the dependency on
`MOSDOp` on all paths of `PG::do_osd_ops_execute()`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: PG::do_osd_ops_execute() doesn't directly takes ObjectContextRef.
Radoslaw Zarzynski [Tue, 23 Mar 2021 21:21:02 +0000 (21:21 +0000)]
crimson/osd: PG::do_osd_ops_execute() doesn't directly takes ObjectContextRef.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: PG::repair_object() doesn't depend on MOSDOp anymore.
Radoslaw Zarzynski [Tue, 23 Mar 2021 20:45:17 +0000 (20:45 +0000)]
crimson/osd: PG::repair_object() doesn't depend on MOSDOp anymore.

Before this commit the method was depending on `MOSDOp::get_min_epoch()`
to start an `UrgentRecovery`. However, it seems `PG::get_osdmap_epoch()`
would be sufficient here as the very early stages of the processing
in `ClientRequest` ensure the PG fits the `get_min_epoch()` requirement.

In the classical OSD the counterpart code looks like below:

```
int PrimaryLogPG::rep_repair_primary_object(const hobject_t& soid, OpContext *ctx)
{
  // ...
  queue_peering_event(
      PGPeeringEventRef(
        std::make_shared<PGPeeringEvent>(
        get_osdmap_epoch(),
        get_osdmap_epoch(),
        PeeringState::DoRecovery())));

  return -EAGAIN;
}
```

In addition to the dependency minimalisation, the commits reformats
the code around `PG::repair_object()` to fit our guidelines.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: reload obc also when handling ct_error::object_corrupted.
Radoslaw Zarzynski [Tue, 23 Mar 2021 16:51:22 +0000 (16:51 +0000)]
crimson/osd: reload obc also when handling ct_error::object_corrupted.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: introduce RollbackOrchestrator to OpsExecuter.
Radoslaw Zarzynski [Tue, 23 Mar 2021 13:26:53 +0000 (13:26 +0000)]
crimson/osd: introduce RollbackOrchestrator to OpsExecuter.

If the execution of an `OSDOp` fails, we're left with potentially
altered `ObjectContext`. We deal with that by reloading `obc` if
there was any modification to it. To figure this out, `has_seen_write()`
on `OpsExecuter` is being called. Unfortunately, the current impl.
has following drawbacks:

 * `has_seen_write()` can be called after `std::move(ox).flush_...()`
    which is very inelegant;
 * it requires catching both `ObjectContext` and `OpsExecuter` while
   the latter already references the former;
 * there is no explicitly given reason in the header for justifying
   the presence of `has_seen_writes()`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: split PG::do_osd_ops() to facilitate InternalClientRequest.
Radoslaw Zarzynski [Mon, 29 Mar 2021 17:03:19 +0000 (17:03 +0000)]
crimson/osd: split PG::do_osd_ops() to facilitate InternalClientRequest.

This commit brings `PG::do_osd_ops_execute()` a subset of
`PG::do_osd_ops()`; it handles the ops execution through
`OpsExecuter` and the `submit_transaction()` but it stays
indepedent from `MOSDOp` and `MOSDOpReply`. This trait
facilitates the `InternalClientRequest`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: erase the message type in OpsExecuter.
Radoslaw Zarzynski [Thu, 18 Mar 2021 13:17:35 +0000 (13:17 +0000)]
crimson/osd: erase the message type in OpsExecuter.

THe reason is unification of infrastructure between external
client requests (everything represented by the `ClientRequest`)
and internal requests.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: drop namespace for arg in PG::with_locked_obc().
Radoslaw Zarzynski [Thu, 18 Mar 2021 09:54:40 +0000 (09:54 +0000)]
crimson/osd: drop namespace for arg in PG::with_locked_obc().

It's unnecessary.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: split ClientRequest::PGPipeline into CommonPGPipeline.
Radoslaw Zarzynski [Thu, 18 Mar 2021 09:41:55 +0000 (09:41 +0000)]
crimson/osd: split ClientRequest::PGPipeline into CommonPGPipeline.

This is another step towards the `InternalClientRequst`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: the ClientRequest::do_recover_missing() takes oid externally.
Radoslaw Zarzynski [Thu, 18 Mar 2021 09:34:54 +0000 (09:34 +0000)]
crimson/osd: the ClientRequest::do_recover_missing() takes oid externally.

This refactor is a first step towards sharing the recovery bits
with `InternalClientRequest`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: implement ObjectContext relocking.
Radoslaw Zarzynski [Mon, 29 Mar 2021 16:01:47 +0000 (16:01 +0000)]
crimson/osd: implement ObjectContext relocking.

This commit introduces a `ObjectContext`-taking variant of
`PG::with_locked_obc()`. The upcoming internal counterpart
for the `ClientRequest` is the intended audience.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: ObjectContext allows the hobject_t to be std::moved in ctor.
Radoslaw Zarzynski [Mon, 15 Mar 2021 19:56:43 +0000 (19:56 +0000)]
crimson/osd: ObjectContext allows the hobject_t to be std::moved in ctor.

Taken with "crimson/osd: use obc->get_oid() instead of passing
hobject_t around" and enriched with the move-constructing down
the `ObjectState` path this should allows to save some work in
e.g. `std::string` instances that are part of the `hobject_t`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: OpsExecuter retrieves PG when doing op effects.
Radoslaw Zarzynski [Tue, 9 Mar 2021 16:18:21 +0000 (16:18 +0000)]
crimson/osd: OpsExecuter retrieves PG when doing op effects.

This will necessary to spawn the upcoming `InternalClientRequest`
from the `Watch`'s timeout handler.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agorgw: add config option to disable beast's async process_request() 41261/head
Casey Bodley [Mon, 10 May 2021 15:17:50 +0000 (11:17 -0400)]
rgw: add config option to disable beast's async process_request()

when disabled, a null_yield is given to process_request() so that it
runs synchronously. mostly intended for debugging

Signed-off-by: Casey Bodley <cbodley@redhat.com>