]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agomgr/dashboard: Display a warning message in Dashboard when debug mode is enabled 38473/head
Volker Theile [Mon, 7 Dec 2020 12:56:56 +0000 (13:56 +0100)]
mgr/dashboard: Display a warning message in Dashboard when debug mode is enabled

Set a health check warning if debug mode is enabled.

Fixes: https://tracker.ceph.com/issues/48475
Signed-off-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38316 from rhcs-dashboard/temporary-lockout
Ernesto Puerta [Wed, 16 Dec 2020 12:29:22 +0000 (13:29 +0100)]
Merge pull request #38316 from rhcs-dashboard/temporary-lockout

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38534 from votdev/issue_48542_rgw_status
Ernesto Puerta [Wed, 16 Dec 2020 12:27:32 +0000 (13:27 +0100)]
Merge pull request #38534 from votdev/issue_48542_rgw_status

mgr/dashboard: The /rgw/status endpoint does not check for running service

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38536 from dillaman/wip-48553
Mykola Golub [Wed, 16 Dec 2020 11:20:38 +0000 (13:20 +0200)]
Merge pull request #38536 from dillaman/wip-48553

librbd/mirror: unlink the third snapshot when the limit is reached

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agomgr/dashboard: Updating the docs regarding the user lockout 38316/head
Nizamudeen A [Thu, 10 Dec 2020 08:05:38 +0000 (13:35 +0530)]
mgr/dashboard: Updating the docs regarding the user lockout

Fixes: https://tracker.ceph.com/issues/40914
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agomgr/dashboard: Temporary User Lockout if 10 Invalid Login attempts
Nizamudeen A [Thu, 26 Nov 2020 10:25:00 +0000 (15:55 +0530)]
mgr/dashboard: Temporary User Lockout if 10 Invalid Login attempts

Implemented a user lockout mechanism if the user enters 10 invalid attempts. The attempt count gets resetted to 0 once the user succesfully logins before getting disabled. Once the user gets disabled administrator has to manually enable the user which will also resets the number of attempts.

Fixes: https://tracker.ceph.com/issues/40914
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38606 from rhcs-dashboard/log-e2e-fix
Ernesto Puerta [Wed, 16 Dec 2020 10:43:54 +0000 (11:43 +0100)]
Merge pull request #38606 from rhcs-dashboard/log-e2e-fix

mgr/dashboard: Fixing dashboard logs e2e test

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>
4 years agomgr/dashboard: Fixing dashboard logs e2e test 38606/head
Nizamudeen A [Wed, 16 Dec 2020 08:23:14 +0000 (13:53 +0530)]
mgr/dashboard: Fixing dashboard logs e2e test

Yesterday there were some changes went in which disables the logging of config set and config-key set to to be logged in mgr audit logs. Dashboard has an e2e test which checks for this config set and broke the current e2e jenkins job. This commit removes that certain test to fix the jenkins job.

Fixes: https://tracker.ceph.com/issues/48623
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38581 from cyx1231st/wip-seastar-msgr-fix-test-preemptive-shutdown
Kefu Chai [Wed, 16 Dec 2020 05:58:05 +0000 (13:58 +0800)]
Merge pull request #38581 from cyx1231st/wip-seastar-msgr-fix-test-preemptive-shutdown

crimson/net: fix test_preemptive_shutdown() failure

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #31358 from ideepika/wip-jaegertracing-in-ceph
Josh Durgin [Wed, 16 Dec 2020 00:29:26 +0000 (16:29 -0800)]
Merge pull request #31358 from ideepika/wip-jaegertracing-in-ceph

jaegertracing build/ops integration

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #38479 from neha-ojha/wip-37503-2
Josh Durgin [Tue, 15 Dec 2020 20:06:39 +0000 (12:06 -0800)]
Merge pull request #38479 from neha-ojha/wip-37503-2

Do not add sensitive information in Ceph log files

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #38514 from lixiaoy1/rbd_types_fix
Jason Dillaman [Tue, 15 Dec 2020 19:53:48 +0000 (14:53 -0500)]
Merge pull request #38514 from lixiaoy1/rbd_types_fix

librbd/cmake: Add missed PWL related types

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38546 from rhcs-dashboard/round-button
Ernesto Puerta [Tue, 15 Dec 2020 19:07:23 +0000 (20:07 +0100)]
Merge pull request #38546 from rhcs-dashboard/round-button

mgr/dashboard: Making the edges of not rounded button rounded

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
4 years agoMerge pull request #38269 from rhcs-dashboard/fix-44960-master
Ernesto Puerta [Tue, 15 Dec 2020 18:51:45 +0000 (19:51 +0100)]
Merge pull request #38269 from rhcs-dashboard/fix-44960-master

mgr/dashboard: replace cdCopy2ClipboardButton Directive with a component

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #37937 from p-se/cd-alternative-grafana-fe-url
Ernesto Puerta [Tue, 15 Dec 2020 18:47:30 +0000 (19:47 +0100)]
Merge pull request #37937 from p-se/cd-alternative-grafana-fe-url

mgr/dashboard: enable different URL for users of browser to Grafana

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #36715 from rhcs-dashboard/fix-39128-master
Ernesto Puerta [Tue, 15 Dec 2020 17:59:14 +0000 (18:59 +0100)]
Merge pull request #36715 from rhcs-dashboard/fix-39128-master

mgr/dashboard: new generic HTTP error page component

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38456 from SMIL-Infra/fix-crush-map-viewer
Ernesto Puerta [Tue, 15 Dec 2020 17:57:03 +0000 (18:57 +0100)]
Merge pull request #38456 from SMIL-Infra/fix-crush-map-viewer

mgr/dashboard: Fix CRUSH map viewer VirtualScroll

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agomgr/dashboard: replace cdCopy2ClipboardButton Directive with a component 38269/head
Courtney Caldwell [Tue, 15 Dec 2020 16:41:18 +0000 (11:41 -0500)]
mgr/dashboard: replace cdCopy2ClipboardButton Directive with a component
Replaces Directive-Based copy2ClipboardButton with a Component-based version.
Further replaces all instances of Directive use with Component version.
Similar toastr logic used.
Fixes: https://tracker.ceph.com/issues/44960
Signed-off-by: Courtney Caldwell <ccaldwel@redhat.com>
4 years agomon, messages: use TOPNSPC::common for crimson compatibility 38479/head
Neha Ojha [Sat, 5 Dec 2020 01:22:11 +0000 (01:22 +0000)]
mon, messages: use TOPNSPC::common for crimson compatibility

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agomgr/ActivePyModules.cc: don't log config value in get_typed_config
Neha Ojha [Thu, 3 Dec 2020 21:54:23 +0000 (21:54 +0000)]
mgr/ActivePyModules.cc: don't log config value in get_typed_config

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agomon/ConfigMonitor.cc: don't log config values in refresh_config
Neha Ojha [Thu, 3 Dec 2020 21:00:51 +0000 (21:00 +0000)]
mon/ConfigMonitor.cc: don't log config values in refresh_config

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agomgr: don't add config values to mgr log in config_callback and module_config
Neha Ojha [Thu, 3 Dec 2020 20:34:53 +0000 (20:34 +0000)]
mgr: don't add config values to mgr log in config_callback and module_config

The original code has been commented out and left for future debugging
purposes.

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agomon/ConfigMonitor.cc: don't dump all keys and values in config map
Neha Ojha [Thu, 3 Dec 2020 20:33:20 +0000 (20:33 +0000)]
mon/ConfigMonitor.cc: don't dump all keys and values in config map

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agomon: don't log "config set" and "config-key set" dispatch and finished messages
Neha Ojha [Thu, 3 Dec 2020 19:24:39 +0000 (19:24 +0000)]
mon: don't log "config set" and "config-key set" dispatch and finished messages

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agomessages/MMonCommand, MMonCommandAck: don't log values for "config set" and "config...
Neha Ojha [Thu, 3 Dec 2020 19:18:04 +0000 (19:18 +0000)]
messages/MMonCommand, MMonCommandAck: don't log values for "config set" and "config-key set"

This acts like a big hammer to avoid adding sensitive information, like passwords
into mon/mgr/cluster logs when using "config set" and "config-key set" to set keys
whose values should be secure.

Fixes: https://tracker.ceph.com/issues/37503
Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #38010 from cbodley/wip-rgw-doc-reshard-syncstop
Casey Bodley [Tue, 15 Dec 2020 13:51:07 +0000 (08:51 -0500)]
Merge pull request #38010 from cbodley/wip-rgw-doc-reshard-syncstop

doc/rgw: update reshard design regarding 'bucket sync disable'

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agoMerge pull request #38585 from tchaikov/wip-doc-dev-errorator
Kefu Chai [Tue, 15 Dec 2020 12:28:57 +0000 (20:28 +0800)]
Merge pull request #38585 from tchaikov/wip-doc-dev-errorator

doc/dev/crimson: highlight code blocks using C++ lexer

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #38582 from tchaikov/wip-crimson-cleanup
Kefu Chai [Tue, 15 Dec 2020 12:26:52 +0000 (20:26 +0800)]
Merge pull request #38582 from tchaikov/wip-crimson-cleanup

crimson/osd: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agodoc/dev/crimson: quote inline codeblock using "``" 38585/head
Kefu Chai [Tue, 15 Dec 2020 09:50:35 +0000 (17:50 +0800)]
doc/dev/crimson: quote inline codeblock using "``"

backquote is used for quoting italic typed text.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/dev/crimson: highlight code blocks using C++ lexer
Kefu Chai [Tue, 15 Dec 2020 09:40:59 +0000 (17:40 +0800)]
doc/dev/crimson: highlight code blocks using C++ lexer

also remove redundant ":", normally "::" would suffice to start a
codeblock.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: handle error using handle_error() 38582/head
Kefu Chai [Tue, 15 Dec 2020 09:21:08 +0000 (17:21 +0800)]
crimson/osd: handle error using handle_error()

no need to use safe_then() for this purpose.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: do not use __func__ in lambda
Kefu Chai [Tue, 15 Dec 2020 08:56:21 +0000 (16:56 +0800)]
crimson/osd: do not use __func__ in lambda

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: drop log messages only for debugging
Kefu Chai [Tue, 15 Dec 2020 08:54:30 +0000 (16:54 +0800)]
crimson/osd: drop log messages only for debugging

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: do not capture dup variable
Kefu Chai [Tue, 15 Dec 2020 08:47:20 +0000 (16:47 +0800)]
crimson/osd: do not capture dup variable

first can be deduced by variable already captured, so store it as a
local variable. it's less expensive than storing it as a captured
variable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: do not use do_with() unless necessary
Kefu Chai [Tue, 15 Dec 2020 08:40:44 +0000 (16:40 +0800)]
crimson/osd: do not use do_with() unless necessary

in this change, a seastar::do_with() is removed, as the captured
variables are passed to submit_push_data() by value. so no need to keep
them alive after the call.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: let trim_pushed_data() return extents
Kefu Chai [Tue, 15 Dec 2020 08:14:21 +0000 (16:14 +0800)]
crimson/osd: let trim_pushed_data() return extents

trim_pushed_data() is responsible for building up the extents to be used
for pushing. so let it return the extents.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: use range-based for loop
Kefu Chai [Tue, 15 Dec 2020 07:36:50 +0000 (15:36 +0800)]
crimson/osd: use range-based for loop

also add comment explaining
ReplicatedRecoveryBackend::trim_pushed_data()

and move the definition of local variable closer to where it is used.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38539 from dillaman/wip-48526
Mykola Golub [Tue, 15 Dec 2020 09:00:08 +0000 (11:00 +0200)]
Merge pull request #38539 from dillaman/wip-48526

librbd/object_map: don't assert if a snapshot doesn't exist

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agocrimson/net: abort on-going v1 protocol when closed 38581/head
Yingxin Cheng [Tue, 15 Dec 2020 07:52:08 +0000 (15:52 +0800)]
crimson/net: abort on-going v1 protocol when closed

Fixes: http://tracker.ceph.com/issues/48108
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/net: track closing connections for v1
Yingxin Cheng [Tue, 15 Dec 2020 07:51:01 +0000 (15:51 +0800)]
crimson/net: track closing connections for v1

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/net: report unexpected exceptions during closing
Yingxin Cheng [Tue, 15 Dec 2020 07:48:43 +0000 (15:48 +0800)]
crimson/net: report unexpected exceptions during closing

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/net: assert connection gate is not unexpectedly closed
Yingxin Cheng [Tue, 15 Dec 2020 07:45:52 +0000 (15:45 +0800)]
crimson/net: assert connection gate is not unexpectedly closed

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/net: fix test error report
Yingxin Cheng [Tue, 15 Dec 2020 07:42:02 +0000 (15:42 +0800)]
crimson/net: fix test error report

Report unexpected exceptions before destructing the tests.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoMerge pull request #38570 from rzarzynski/wip-crimson-recover_missing-noopt
Kefu Chai [Tue, 15 Dec 2020 07:14:53 +0000 (15:14 +0800)]
Merge pull request #38570 from rzarzynski/wip-crimson-recover_missing-noopt

crimson/osd: recover_missing() doesn't return std::optional anymore.

Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38569 from tchaikov/wip-crimson-cleanups
Kefu Chai [Tue, 15 Dec 2020 06:08:04 +0000 (14:08 +0800)]
Merge pull request #38569 from tchaikov/wip-crimson-cleanups

crimson/osd: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #38525 from varshar16/wip-ls-nfs-services
Tim Serong [Tue, 15 Dec 2020 05:48:57 +0000 (16:48 +1100)]
Merge pull request #38525 from varshar16/wip-ls-nfs-services

mgr/rook: Fix various 'orch ls' issues

Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
4 years agoMerge pull request #38557 from pcuzner/bootstrap-allocate-output-dir
Tim Serong [Tue, 15 Dec 2020 05:43:03 +0000 (16:43 +1100)]
Merge pull request #38557 from pcuzner/bootstrap-allocate-output-dir

cephadm: create default output dir during bootstrap

Reviewed-by: Tim Serong <tserong@suse.com>
4 years agoMerge pull request #38577 from athanatos/sjust/wip-fix-crimson-nbd
Kefu Chai [Tue, 15 Dec 2020 05:28:44 +0000 (13:28 +0800)]
Merge pull request #38577 from athanatos/sjust/wip-fix-crimson-nbd

crimson/tools: fix bugs introduced in 3333ff

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/dashboard: new generic HTTP error page component 36715/head
Aashish Sharma [Tue, 15 Dec 2020 04:35:32 +0000 (10:05 +0530)]
mgr/dashboard: new generic HTTP error page component

Added a generic Error component for HTTP Errors such as 404,403,501

Fixes:https://tracker.ceph.com/issues/39128
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
4 years agocrimson/tools: fix bugs introduced in 3333ff 38577/head
Samuel Just [Tue, 15 Dec 2020 03:04:02 +0000 (19:04 -0800)]
crimson/tools: fix bugs introduced in 3333ff

You can't actually mix buffered and direct io on a stream.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #38572 from rzarzynski/wip-crimson-obc-not-blocker
Kefu Chai [Tue, 15 Dec 2020 01:09:45 +0000 (09:09 +0800)]
Merge pull request #38572 from rzarzynski/wip-crimson-obc-not-blocker

crimson/osd: ObjectContext is not a Blocker anymore.

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #38563 from tchaikov/wip-admin-breathe
Kefu Chai [Tue, 15 Dec 2020 01:07:12 +0000 (09:07 +0800)]
Merge pull request #38563 from tchaikov/wip-admin-breathe

admin/doc-requirements.txt: require breathe >= 4.20

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #38567 from rzarzynski/wip-doc-dev-errorator
Kefu Chai [Tue, 15 Dec 2020 01:04:20 +0000 (09:04 +0800)]
Merge pull request #38567 from rzarzynski/wip-doc-dev-errorator

doc/dev/crimson: exemplify errorator usage in error-handling.rst

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agomessages,osd,crimson: let MOSDPGPull::take_pulls() return pulls 38569/head
Kefu Chai [Mon, 14 Dec 2020 17:45:02 +0000 (01:45 +0800)]
messages,osd,crimson: let MOSDPGPull::take_pulls() return pulls

so the caller can grab the pulls without creating a pull vector first.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: let build_push_op() return PushOp
Kefu Chai [Mon, 14 Dec 2020 17:32:08 +0000 (01:32 +0800)]
crimson/osd: let build_push_op() return PushOp

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38111 from ronen-fr/wip-ronenf-scrub-v2
Samuel Just [Mon, 14 Dec 2020 22:29:26 +0000 (14:29 -0800)]
Merge pull request #38111 from ronen-fr/wip-ronenf-scrub-v2

osd: Extracting scrub-related code from the PG & friends

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agorbd-mirror: validate that remote start snapshot still exists 38536/head
Jason Dillaman [Fri, 11 Dec 2020 00:31:45 +0000 (19:31 -0500)]
rbd-mirror: validate that remote start snapshot still exists

Perform a basic sanity check to verify that the remote start snapshot
still exists. This was previosly being deleted as part of the unlink
process due to a race condition between the remote side completing
a sync between snapshots 1 and 2 and snapshot 2 being unlinked due
to reaching max snapshots.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38566 from tchaikov/crimson-tools
Samuel Just [Mon, 14 Dec 2020 20:19:16 +0000 (12:19 -0800)]
Merge pull request #38566 from tchaikov/crimson-tools

crimson/tools: use helpers from byteorder.hh

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #38565 from tchaikov/wip-crimson-cmake
Samuel Just [Mon, 14 Dec 2020 20:17:11 +0000 (12:17 -0800)]
Merge pull request #38565 from tchaikov/wip-crimson-cmake

cmake: add alien::cflags and move SubProcess.cc into crimson-alien-common

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agocephadm: update permissions on newly created dirs 38557/head
Paul Cuzner [Mon, 14 Dec 2020 20:12:36 +0000 (09:12 +1300)]
cephadm: update permissions on newly created dirs

Use 755 instead of 700 on new directories created during
bootstrap

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
4 years agocrimson/osd: ObjectContext is not a Blocker anymore. 38572/head
Radoslaw Zarzynski [Mon, 14 Dec 2020 17:10:10 +0000 (18:10 +0100)]
crimson/osd: ObjectContext is not a Blocker anymore.

This is a follow-up to the c2dc437f78cd8be393c4d2eb8d79ce9c351ec4de
which removes unused OBC mebers after the with_lock() transition.

I'm not sure there is a reason to keep the `Blocker` bits as all
`ObjectContext::dump_detail()` does is just dumping `object_state_t`
while entering the OBC stage is already denoted by `PGPipeline::get_obc`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: recover_missing() doesn't return std::optional anymore. 38570/head
Radoslaw Zarzynski [Mon, 14 Dec 2020 17:54:11 +0000 (18:54 +0100)]
crimson/osd: recover_missing() doesn't return std::optional anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocmake: add "alien::cflags" library 38565/head
Kefu Chai [Mon, 14 Dec 2020 12:46:50 +0000 (20:46 +0800)]
cmake: add "alien::cflags" library

which exposes the definitions needed for building alienized bluestore
and the shared facilities compiled with -DWITH_ALIEN and -DWITH_SEASTAR

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: move SubProcess.cc from crimson-common to crimson-alien-common
Kefu Chai [Mon, 14 Dec 2020 10:30:29 +0000 (18:30 +0800)]
cmake: move SubProcess.cc from crimson-common to crimson-alien-common

SubProcess is used by blkdev.cc only

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: let prep_push() return a map of PushOp
Kefu Chai [Mon, 14 Dec 2020 16:38:05 +0000 (00:38 +0800)]
crimson/osd: let prep_push() return a map of PushOp

ReplicatedRecoveryBackend::prep_push() is responsible for building
PushOps, so it's more natural to let it return a map of PushOp.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: move unrelated continuation out of do_with()
Kefu Chai [Mon, 14 Dec 2020 15:56:11 +0000 (23:56 +0800)]
crimson/osd: move unrelated continuation out of do_with()

if the variables held by do_with() is not used by the continuation, and
the continuation does not depend on the other continuations called in
the do_with(), let's move it out for smaller lexical scope. and hence
better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: mark const method "const"
Kefu Chai [Mon, 14 Dec 2020 15:39:07 +0000 (23:39 +0800)]
crimson/osd: mark const method "const"

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: pass vector<pg_shard_t> for recovery
Kefu Chai [Mon, 14 Dec 2020 15:26:45 +0000 (23:26 +0800)]
crimson/osd: pass vector<pg_shard_t> for recovery

std::list<std::map<pg_shard_t, pg_missing_t>::const_iterator> is
difficult to parse and understand. and what we need is no more than a
collection of pg_shard_t here. we do the look in
ReplicatedRecoveryBackend::prep_push() again anyway.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: use range-based for loop
Kefu Chai [Mon, 14 Dec 2020 15:14:11 +0000 (23:14 +0800)]
crimson/osd: use range-based for loop

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: do not return unused value
Kefu Chai [Mon, 14 Dec 2020 14:49:55 +0000 (22:49 +0800)]
crimson/osd: do not return unused value

do not return a bool from
`ReplicatedRecoveryBackend::maybe_pull_missing_obj()` anymore, as the
caller does not check it at all.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #36146 from rhcs-dashboard/wip-46577-master
Ernesto Puerta [Mon, 14 Dec 2020 16:35:52 +0000 (17:35 +0100)]
Merge pull request #36146 from rhcs-dashboard/wip-46577-master

mgr: add types to MODULE_OPTIONS

Reviewed-by: p-se <pseidensal@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: sebastian-philipp <swagner@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38406 from votdev/issue_48438_drop_rgw_instance
Ernesto Puerta [Mon, 14 Dec 2020 15:40:05 +0000 (16:40 +0100)]
Merge pull request #38406 from votdev/issue_48438_drop_rgw_instance

mgr/dashboard: Drop invalid RGW client instances, improve logging

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agodoc/dev/crimson: exemplify errorator usage in error-handling.rst 38567/head
Radoslaw Zarzynski [Mon, 14 Dec 2020 15:23:21 +0000 (16:23 +0100)]
doc/dev/crimson: exemplify errorator usage in error-handling.rst

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agodoc/dev/crimson: add error-handling.rst
Kefu Chai [Thu, 10 Dec 2020 13:27:42 +0000 (21:27 +0800)]
doc/dev/crimson: add error-handling.rst

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37642 from alimaredia/wip-rgw-apache-log-timestamp-change
Mark Kogan [Mon, 14 Dec 2020 15:06:04 +0000 (17:06 +0200)]
Merge pull request #37642 from alimaredia/wip-rgw-apache-log-timestamp-change

rgw: add request time into beast log instead of current time

4 years agovstart: add jaeger option + misc refactoring 31358/head
Deepika Upadhyay [Mon, 10 Aug 2020 11:58:19 +0000 (17:28 +0530)]
vstart: add jaeger option + misc refactoring

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
4 years agoMerge pull request #38559 from xxhdx1985126/wip-crimson-bug-fix
Kefu Chai [Mon, 14 Dec 2020 13:51:26 +0000 (21:51 +0800)]
Merge pull request #38559 from xxhdx1985126/wip-crimson-bug-fix

crimson/osd: fix two bugs

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/tools: use helpers from byteorder.hh 38566/head
Kefu Chai [Mon, 14 Dec 2020 13:06:24 +0000 (21:06 +0800)]
crimson/tools: use helpers from byteorder.hh

simpler this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: recovery read lock should be held across the hole object push phase 38559/head
Xuehan Xu [Mon, 14 Dec 2020 02:54:11 +0000 (10:54 +0800)]
crimson/osd: recovery read lock should be held across the hole object push phase

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agomgr/dashboard: Drop invalid RGW client instances, improve logging 38406/head
Volker Theile [Wed, 2 Dec 2020 16:14:45 +0000 (17:14 +0100)]
mgr/dashboard: Drop invalid RGW client instances, improve logging

* Log RGW settings for easier problem tracking.
* Drop RGW client instances that do not exist anymore. This happens when a RGW service is removed via the orchestrator. The Dashboard tries to access the RGW client using the previous settings which leads to an error which might be confusing. Without dropping the error message 'RGW REST API failed request ...' is displayed instead of the correct one 'No RGW found'. Dropping the RGW client instance will produce correct error messages the next time the backend tries to establish a new connection.

Fixes: https://tracker.ceph.com/issues/48586
Signed-off-by: Volker Theile <vtheile@suse.com>
4 years agomgr: add types to MODULE_OPTIONS 36146/head
Ernesto Puerta [Thu, 16 Jul 2020 18:21:14 +0000 (20:21 +0200)]
mgr: add types to MODULE_OPTIONS

Uses a typed Option class for MODULE_OPTIONS and replaces those in the
modules that are checked by mypy.

Fixes: https://tracker.ceph.com/issues/46577
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoadmin/doc-requirements.txt: require breathe >= 4.20 38563/head
Kefu Chai [Mon, 14 Dec 2020 08:25:07 +0000 (16:25 +0800)]
admin/doc-requirements.txt: require breathe >= 4.20

to be compatible with Sphinx 3.2
see https://github.com/michaeljones/breathe/tree/v4.20.0#change-log

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37047 from sebastian-philipp/doc-cephadm-rm-host
zdover23 [Mon, 14 Dec 2020 05:54:49 +0000 (15:54 +1000)]
Merge pull request #37047 from sebastian-philipp/doc-cephadm-rm-host

doc/cephadm: Add remove host to operations

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agocrimson/osd: allow obc to promote lock state from none to excl
Xuehan Xu [Mon, 14 Dec 2020 02:52:43 +0000 (10:52 +0800)]
crimson/osd: allow obc to promote lock state from none to excl

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocephadm: create default output dir during bootstrap
Paul Cuzner [Sun, 13 Dec 2020 22:15:38 +0000 (11:15 +1300)]
cephadm: create default output dir during bootstrap

If the output dir doesn't exist the old behaviour was to
abort bootstrap. Since we're running with UID=0, this
patch will create the missing dirs for the user to keep the
bootstrap process going

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
4 years agoMerge pull request #38545 from tchaikov/wip-crimson-test-errorator
Kefu Chai [Sun, 13 Dec 2020 11:26:40 +0000 (19:26 +0800)]
Merge pull request #38545 from tchaikov/wip-crimson-test-errorator

test/crimson: add a test to verify that errorator does not copy

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agotest/crimson: add a test to verify that errorator does not copy 38545/head
Kefu Chai [Fri, 11 Dec 2020 13:58:14 +0000 (21:58 +0800)]
test/crimson: add a test to verify that errorator does not copy

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/crimson: move member variable into test
Kefu Chai [Fri, 11 Dec 2020 09:13:10 +0000 (17:13 +0800)]
test/crimson: move member variable into test

so the test is more self-contained.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/crimson: s/do_until_test_t/errorator_test_t/
Kefu Chai [Fri, 11 Dec 2020 09:10:11 +0000 (17:10 +0800)]
test/crimson: s/do_until_test_t/errorator_test_t/

so we can reuse this test suite for more errorator related tests.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38554 from tchaikov/wip-admin-build-doc
Kefu Chai [Sat, 12 Dec 2020 14:24:52 +0000 (22:24 +0800)]
Merge pull request #38554 from tchaikov/wip-admin-build-doc

admin/build-doc: consolidate the build deps into admin/doc-requirements.txt

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #38547 from varshar16/wip-kubejacker-updates
Sebastian Wagner [Sat, 12 Dec 2020 11:55:50 +0000 (12:55 +0100)]
Merge pull request #38547 from varshar16/wip-kubejacker-updates

script/kubejacker: Add python_common library and misc updates

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoadmin/build-doc: drop comments for building dummy C bindings 38554/head
Kefu Chai [Sat, 12 Dec 2020 08:49:14 +0000 (16:49 +0800)]
admin/build-doc: drop comments for building dummy C bindings

we don't build dummy C bindings since
2235c2db0ecc7a8fbe165aba2ea8aaf8189d349c

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoadmin/build-doc: revert "upgrade pip setuptools first"
Kefu Chai [Sat, 12 Dec 2020 07:26:09 +0000 (15:26 +0800)]
admin/build-doc: revert "upgrade pip setuptools first"

per Radoslow Zarzynski, the build failure was due to missing Python.h
for the python version he was using on the system.

This reverts commit bc73204812907b1e55f0f4b8ad977bcce8834c6f.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoadmin/build-doc: stop passing --use-feature=2020-resolver to pip
Kefu Chai [Sat, 12 Dec 2020 07:19:40 +0000 (15:19 +0800)]
admin/build-doc: stop passing --use-feature=2020-resolver to pip

to silence the warning of

WARNING: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. This will become an error in pip 21.0.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoadmin/build-doc: consolidate the build deps into admin/doc-pybind.txt
Kefu Chai [Sat, 12 Dec 2020 07:09:49 +0000 (15:09 +0800)]
admin/build-doc: consolidate the build deps into admin/doc-pybind.txt

since all the python bindings are required for building the doc, extract
them into admin/doc-pybind.txt.

because the pybind python extensions require Cython python module to build,
we have to move them  into another requirement file, and install them after
Cython is installed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37433 from aclamk/wip-rocksdb-better-options
Kefu Chai [Sat, 12 Dec 2020 04:36:54 +0000 (12:36 +0800)]
Merge pull request #37433 from aclamk/wip-rocksdb-better-options

kv/RocksDBStore: Added ability to set compound options

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #38020 from mdw-at-linuxbox/teuth-fix-x509-san
Kefu Chai [Sat, 12 Dec 2020 04:18:16 +0000 (12:18 +0800)]
Merge pull request #38020 from mdw-at-linuxbox/teuth-fix-x509-san

qa/tasks/openssl_keys.py: add subjectAltName to certificates

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38282 from vosdev/ceph-pool-alert
Kefu Chai [Sat, 12 Dec 2020 04:10:44 +0000 (12:10 +0800)]
Merge pull request #38282 from vosdev/ceph-pool-alert

mgr/prometheus: Fix 'pool filling up' with >50% usage

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
4 years agoMerge pull request #38290 from athanatos/sjust/wip-transaction-manager-nbd
Kefu Chai [Sat, 12 Dec 2020 03:48:41 +0000 (11:48 +0800)]
Merge pull request #38290 from athanatos/sjust/wip-transaction-manager-nbd

crimson/seastore: add journaling checksumming and nbd based simple perf tester

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #38322 into master
Patrick Donnelly [Sat, 12 Dec 2020 02:59:42 +0000 (18:59 -0800)]
Merge PR #38322 into master

* refs/pull/38322/head:
test_cephfs_shell: add tests for ls command

Reviewed-by: Rishabh Dave <ridave@redhat.com>