]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomds/MDSRank: fix typo in "unrecognized" 36196/head
Nathan Cutler [Sun, 19 Jul 2020 06:40:21 +0000 (08:40 +0200)]
mds/MDSRank: fix typo in "unrecognized"

Fixes: beb12fa25315153e1a06a0104883de89776438a6
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #36080 from winndows/superfluous_break5
Kefu Chai [Sun, 19 Jul 2020 06:11:32 +0000 (14:11 +0800)]
Merge pull request #36080 from winndows/superfluous_break5

osd/PGBackend: Remove superfluous breaks

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36067 from winndows/superfluous_break1
Kefu Chai [Sun, 19 Jul 2020 06:00:05 +0000 (14:00 +0800)]
Merge pull request #36067 from winndows/superfluous_break1

mon/OSDMonitor: Remove the superfluous break

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36068 from winndows/superfluous_break2
Kefu Chai [Sun, 19 Jul 2020 05:59:07 +0000 (13:59 +0800)]
Merge pull request #36068 from winndows/superfluous_break2

common: Remove the superfluous break

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36078 from winndows/superfluous_break7
Kefu Chai [Sun, 19 Jul 2020 05:58:05 +0000 (13:58 +0800)]
Merge pull request #36078 from winndows/superfluous_break7

mgr: Remove the superfluous break

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35994 from jschmid1/osd_support_reweight
Kefu Chai [Sun, 19 Jul 2020 05:54:47 +0000 (13:54 +0800)]
Merge pull request #35994 from jschmid1/osd_support_reweight

mgr/osd_support: add unittests

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35836 from mgfritch/vstart-out-dir-logs
Kefu Chai [Sun, 19 Jul 2020 05:52:37 +0000 (13:52 +0800)]
Merge pull request #35836 from mgfritch/vstart-out-dir-logs

vstart: out dir can contain a large number of files

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #36152 from sebastian-philipp/ceph-tell-cephadm
Kefu Chai [Sun, 19 Jul 2020 05:50:55 +0000 (13:50 +0800)]
Merge pull request #36152 from sebastian-philipp/ceph-tell-cephadm

ceph: Fix `tell` for cephadm

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35629 from dillaman/wip-librbd-asio-2
Mykola Golub [Sat, 18 Jul 2020 16:42:00 +0000 (19:42 +0300)]
Merge pull request #35629 from dillaman/wip-librbd-asio-2

librbd: switch IO path to use new librados asio API

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge PR #36134 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:30:42 +0000 (20:30 -0700)]
Merge PR #36134 into master

* refs/pull/36134/head:
mgr/nfs: Remove NParts and Cache_Size from MDCACHE block

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #36107 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:29:44 +0000 (20:29 -0700)]
Merge PR #36107 into master

* refs/pull/36107/head:
mds: fix mds forwarding request 'no_available_op_found'

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #36097 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:28:50 +0000 (20:28 -0700)]
Merge PR #36097 into master

* refs/pull/36097/head:
mds: fix nullptr dereference in MDCache::finish_rollback

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35969 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:28:03 +0000 (20:28 -0700)]
Merge PR #35969 into master

* refs/pull/35969/head:
mds: optimize random threshold lookup for dentry load

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agoMerge PR #35953 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:20:47 +0000 (20:20 -0700)]
Merge PR #35953 into master

* refs/pull/35953/head:
qa: Fix name collisions

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge PR #35902 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:19:33 +0000 (20:19 -0700)]
Merge PR #35902 into master

* refs/pull/35902/head:
ceph-dedup-tool: fix warning
mds: slave -> peer
mds: master -> leader

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #36139 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:17:30 +0000 (20:17 -0700)]
Merge PR #36139 into master

* refs/pull/36139/head:
mon: refactor ServiceMap::Service::get_task_summary()
mon: only dump non-empty "task status"
mgr/ServiceMap: move ServiceMap::Daemon implementation into .cc file

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge PR #36140 into master
Patrick Donnelly [Sat, 18 Jul 2020 03:15:29 +0000 (20:15 -0700)]
Merge PR #36140 into master

* refs/pull/36140/head:
mgr/volumes: fix "ceph nfs export" help messages

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35851 from dang/wip-dang-zipper-6
Daniel Gryniewicz [Fri, 17 Jul 2020 19:35:47 +0000 (15:35 -0400)]
Merge pull request #35851 from dang/wip-dang-zipper-6

Wip dang zipper 6

5 years agoClean up some leaks in rgw_admin 35851/head
Daniel Gryniewicz [Wed, 17 Jun 2020 14:23:02 +0000 (10:23 -0400)]
Clean up some leaks in rgw_admin

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoNULL out g_ceph_context when deleting it
Daniel Gryniewicz [Wed, 17 Jun 2020 14:21:04 +0000 (10:21 -0400)]
NULL out g_ceph_context when deleting it

This avoids a use-after-free when there is a crash on shutdown (or when
something like ASAN triggers an ABORT on leak).

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoZipper Object
Daniel Gryniewicz [Thu, 19 Dec 2019 17:23:57 +0000 (12:23 -0500)]
Zipper Object

This pass modifies RGW to use RGWObject and RGWRadosObject.
Also improves RGWBucket usage.  This converts many of the APIs to
unique_ptr.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoMerge pull request #35553 from zdover23/wip-doc-iscsi-target-cli-daemon
Jason Dillaman [Fri, 17 Jul 2020 11:16:31 +0000 (07:16 -0400)]
Merge pull request #35553 from zdover23/wip-doc-iscsi-target-cli-daemon

doc/rbd: add rbd-target-gw enable and start

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Alexandra Settle <asettle@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35846 from sebastian-philipp/podman-pull-retry
Sebastian Wagner [Fri, 17 Jul 2020 11:02:27 +0000 (13:02 +0200)]
Merge pull request #35846 from sebastian-philipp/podman-pull-retry

cephadm: Retry pull on transient error

Reviewed-by: Ricardo Marques <rimarques@suse.com>
5 years agoceph: Fix `tell` for cephadm 36152/head
Sebastian Wagner [Fri, 17 Jul 2020 10:50:07 +0000 (12:50 +0200)]
ceph: Fix `tell` for cephadm

The tell target might contain dots now. Like
`mds.myfs.myhost.rnusmq` is now a valid
target.

Fixes: https://tracker.ceph.com/issues/46560
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34696 from tspmelo/wip-locl
Laura Paduano [Fri, 17 Jul 2020 09:20:28 +0000 (11:20 +0200)]
Merge pull request #34696 from tspmelo/wip-locl

mgr/dashboard: Use $localize and locl for TS translations

Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
5 years agoMerge pull request #36000 from tspmelo/wip-favicon
Laura Paduano [Fri, 17 Jul 2020 07:55:09 +0000 (09:55 +0200)]
Merge pull request #36000 from tspmelo/wip-favicon

mgr/dashboard: Display cluster status in favicon

Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35456 from sebastian-philipp/cephadm-events
Sebastian Wagner [Fri, 17 Jul 2020 07:49:14 +0000 (09:49 +0200)]
Merge pull request #35456 from sebastian-philipp/cephadm-events

mgr/cephadm: Add k8s-style event system

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35985 from bk201/wip-46413
Laura Paduano [Fri, 17 Jul 2020 07:33:15 +0000 (09:33 +0200)]
Merge pull request #35985 from bk201/wip-46413

mgr/dashboard: fix regression in delete OSD modal

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agomgr/nfs: Remove NParts and Cache_Size from MDCACHE block 36134/head
Varsha Rao [Thu, 16 Jul 2020 09:34:45 +0000 (15:04 +0530)]
mgr/nfs: Remove NParts and Cache_Size from MDCACHE block

As setting them to small value affects the performance and they are not related
to metadata caching. https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/495185

Fixes: https://tracker.ceph.com/issues/46579
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge PR #36124 into master
Patrick Donnelly [Fri, 17 Jul 2020 04:10:07 +0000 (21:10 -0700)]
Merge PR #36124 into master

* refs/pull/36124/head:
script/ptl-tool: add flag to turn off credits

Reviewed-by: Jos Collin <jcollin@redhat.com>
5 years agotest/librbd: drop test_internal.ShrinkFlushCase test case 35629/head
Jason Dillaman [Thu, 16 Jul 2020 21:19:04 +0000 (17:19 -0400)]
test/librbd: drop test_internal.ShrinkFlushCase test case

It's a racey test that is better exercised by the existing resize
state machine mock tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: utilize neorados to issue async blacklist request
Jason Dillaman [Tue, 14 Jul 2020 22:38:17 +0000 (18:38 -0400)]
librbd: utilize neorados to issue async blacklist request

The librados API does not currently offer an async 'mon_command'
API method. Instead of adding one just to support this effort,
re-use the neorados API to issue an asynchronous 'mon_command'
for blacklisting a client.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: managed_lock::BreakRequest needs a reference to AsioEngine
Jason Dillaman [Tue, 14 Jul 2020 21:38:56 +0000 (17:38 -0400)]
librbd: managed_lock::BreakRequest needs a reference to AsioEngine

The current usage of the asio::ContextWQ to similate an asynchronous blocklist
API call is resulting in deadlock in the rbd-mirror HA tests when multiple
blocklists are occurring concurrently. The next commit will switch to use the
neorados async MON command API (since librados doesn't offer one).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: fix race condition with AIO completion callbacks
Jason Dillaman [Mon, 13 Jul 2020 17:45:44 +0000 (13:45 -0400)]
librbd: fix race condition with AIO completion callbacks

Now that librbd utilizes multiple threads for the IO path, it's
possible for a race condition to occur if a client app is waiting
on a completion to fire and the actual invokation of the
completion.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: directly post completions to the asio strand
Jason Dillaman [Fri, 10 Jul 2020 16:50:54 +0000 (12:50 -0400)]
librbd: directly post completions to the asio strand

Avoid the unnecessary wrapping of the strand completion in a
bind_executor by just directly posting the completion to the
strand.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: allocate the asio strands directly on the heap
Jason Dillaman [Fri, 10 Jul 2020 16:46:27 +0000 (12:46 -0400)]
librbd: allocate the asio strands directly on the heap

This will assist with potential race condition debugging since the
stand pointer will be invalidated by the time the strand has been
destructed and shut down.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: ensure all asio completions are complete at ImageCtx destruction
Jason Dillaman [Fri, 10 Jul 2020 15:24:08 +0000 (11:24 -0400)]
librbd: ensure all asio completions are complete at ImageCtx destruction

With multiple threads of execution possible, we need to ensure that
all completions have fired prior to the destruction of the AsioEngine.
We also need to ensure that the AsioEngine is destoyed outside the
context of its owned stands.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: increased logging for asio::ContextWQ
Jason Dillaman [Fri, 10 Jul 2020 14:00:46 +0000 (10:00 -0400)]
librbd: increased logging for asio::ContextWQ

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: switch the IO path to utilize the neorados API
Jason Dillaman [Thu, 9 Jul 2020 21:04:50 +0000 (17:04 -0400)]
librbd: switch the IO path to utilize the neorados API

IO operations to the cluster are now dispatched via the neorados
API which allows multiple threads to be utilized for processing
incoming and outgoing IO.

This also involves switching from a map for tracking sparse extents
to a vector of pairs since that matches the new API for sparse
read operations.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: switch all queued contexts in IO path to use asio post
Jason Dillaman [Wed, 17 Jun 2020 19:20:35 +0000 (15:20 -0400)]
librbd: switch all queued contexts in IO path to use asio post

The post operation is similar to the asio::ContextWQ::queue wrapper
but execution is not limited to a single thread strand.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: switch external API callbacks to use dedicated asio strand
Jason Dillaman [Tue, 16 Jun 2020 16:59:11 +0000 (12:59 -0400)]
librbd: switch external API callbacks to use dedicated asio strand

This ensures that the API callers will not receive concurrent
callbacks and allows internal AioCompletion users to be able to
use all available asio dispatch threads.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: integrate neorados into ImageCtx
Jason Dillaman [Tue, 7 Jul 2020 18:37:54 +0000 (14:37 -0400)]
librbd: integrate neorados into ImageCtx

Also create an up-to-date data_io_context that mimics the function
of ImageCtx::data_ctx. The data_io_context will eventually be passed
via the IO dispatch specs to replace the passing of the snapshot
id vectors.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: replace ImageCtx::get_work_queue with direct AsioEngine usage
Jason Dillaman [Fri, 10 Jul 2020 03:49:37 +0000 (23:49 -0400)]
librbd: replace ImageCtx::get_work_queue with direct AsioEngine usage

The ImageCtx will contain a shared_ptr to its AsioEngine and previous
usage for get_work_queue now directly instantiate their own AsioEngine
instance.

Additionally, AsioEngine is now lighter weight by re-using the
io_context exposed via a neorados-wrapped librados API.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agocls/rbd: add support for neorados-style IO requests
Jason Dillaman [Thu, 9 Jul 2020 21:03:53 +0000 (17:03 -0400)]
cls/rbd: add support for neorados-style IO requests

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agotest/librados_test_stub: decode "osd blacklist" MON command
Jason Dillaman [Tue, 14 Jul 2020 23:53:54 +0000 (19:53 -0400)]
test/librados_test_stub: decode "osd blacklist" MON command

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agotest/librados_test_stub: add support for basic neorados ops
Jason Dillaman [Wed, 8 Jul 2020 13:38:35 +0000 (09:38 -0400)]
test/librados_test_stub: add support for basic neorados ops

Internally it re-uses the existing librados-style architecture adapted
to fit the new interface.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agotest/librados_test_stub: pass read snap id to read operation hooks
Jason Dillaman [Thu, 9 Jul 2020 15:58:31 +0000 (11:58 -0400)]
test/librados_test_stub: pass read snap id to read operation hooks

The neorados API does not require the creation of heavy IoCtx-like
objects with static read snap_ids pre-assigned. Therefore, we will
need to pass the read snap_id to all affected functions and adjust
all dependent unittests to expect a new parameter.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agotest/librbd: fixed gmock warnings for get_parent_overlap calls
Jason Dillaman [Wed, 17 Jun 2020 20:09:17 +0000 (16:09 -0400)]
test/librbd: fixed gmock warnings for get_parent_overlap calls

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoneorados: allow a client to wait for the latest OSD map
Jason Dillaman [Tue, 14 Jul 2020 22:39:31 +0000 (18:39 -0400)]
neorados: allow a client to wait for the latest OSD map

This is required when issuing a client blacklist to ensure that
they cannot overwrite any OSD data before their map updates.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoneorados: fixed missing handling of read flags
Jason Dillaman [Mon, 13 Jul 2020 16:47:15 +0000 (12:47 -0400)]
neorados: fixed missing handling of read flags

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoneorados: support blkin trace passing on execute calls
Jason Dillaman [Wed, 8 Jul 2020 18:28:55 +0000 (14:28 -0400)]
neorados: support blkin trace passing on execute calls

librbd passes blkin traces from the user API down through to
Objecter and back. Add these missing hooks to the neorados API
since they weren't included in the intial revision.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agocommon/Timer: fixed invalid read from deleted object
Jason Dillaman [Fri, 10 Jul 2020 14:16:42 +0000 (10:16 -0400)]
common/Timer: fixed invalid read from deleted object

The std::conditional_variable will keep the provided reference and
repeatedly dereference it even after the lock was dropped and
re-acquired. This can lead to an invalid read if the associated
schedule entry has been removed while waiting.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #36077 from dillaman/wip-librbd-parent-cache
Mykola Golub [Thu, 16 Jul 2020 19:16:50 +0000 (22:16 +0300)]
Merge pull request #36077 from dillaman/wip-librbd-parent-cache

librbd: fix parent cache initialization failures

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agomgr/dashboard: Use $localize and locl for TS translations 34696/head
Tiago Melo [Wed, 6 May 2020 17:11:19 +0000 (17:11 +0000)]
mgr/dashboard: Use $localize and locl for TS translations

Fixes: https://tracker.ceph.com/issues/45950
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #36128 from xxhdx1985126/wip-crimson-fix-osd-shutdown
Kefu Chai [Thu, 16 Jul 2020 15:46:01 +0000 (23:46 +0800)]
Merge pull request #36128 from xxhdx1985126/wip-crimson-fix-osd-shutdown

crimson/osd: fix osd shutdown problem

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36142 from tchaikov/wip-crimson-cleanup
Kefu Chai [Thu, 16 Jul 2020 15:44:47 +0000 (23:44 +0800)]
Merge pull request #36142 from tchaikov/wip-crimson-cleanup

crimson: do not capture unused variables

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #35987 from tspmelo/wip-update-lodash
Laura Paduano [Thu, 16 Jul 2020 15:43:43 +0000 (17:43 +0200)]
Merge pull request #35987 from tspmelo/wip-update-lodash

mgr/dashboard: Fix some npm audit warnings

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge PR #36138 into master
Patrick Donnelly [Thu, 16 Jul 2020 14:24:16 +0000 (07:24 -0700)]
Merge PR #36138 into master

* refs/pull/36138/head:
doc/cephfs/nfs: Update about deploying nfs-ganesha with cephadm in vstart

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35960 from votdev/issue_46395_required_field_message
Laura Paduano [Thu, 16 Jul 2020 14:20:21 +0000 (16:20 +0200)]
Merge pull request #35960 from votdev/issue_46395_required_field_message

mgr/dashboard: Use same required field message accross the UI

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35777 from ofriedma/rgw-enoent-cache
Casey Bodley [Thu, 16 Jul 2020 14:15:24 +0000 (10:15 -0400)]
Merge pull request #35777 from ofriedma/rgw-enoent-cache

rgw: add negative cache to the system object

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #36070 from tspmelo/wip-fix-async-unittest
Laura Paduano [Thu, 16 Jul 2020 14:13:21 +0000 (16:13 +0200)]
Merge pull request #36070 from tspmelo/wip-fix-async-unittest

mgr/dashboard: Block the import of async from @angular/core/testing

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #36113 from trociny/wip-snap-create-error-msg
Jason Dillaman [Thu, 16 Jul 2020 14:03:39 +0000 (10:03 -0400)]
Merge pull request #36113 from trociny/wip-snap-create-error-msg

librbd: fix snapshot create error message

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35974 from tspmelo/wip-clean-headers
Volker Theile [Thu, 16 Jul 2020 13:43:11 +0000 (15:43 +0200)]
Merge pull request #35974 from tspmelo/wip-clean-headers

mgr/dashboard: Clean custom header styles

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agocrimson: do not capture unused variables 36142/head
Kefu Chai [Thu, 16 Jul 2020 12:40:16 +0000 (20:40 +0800)]
crimson: do not capture unused variables

this change silences warnings like:

mson/osd/backfill_state.cc:131:11: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
      [&, this](const pg_log_entry_t& e) {
        ~~^~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36099 from dillaman/wip-rbd-nbd-hook
Mykola Golub [Thu, 16 Jul 2020 12:47:37 +0000 (15:47 +0300)]
Merge pull request #36099 from dillaman/wip-rbd-nbd-hook

rbd-nbd: quisce hook should be installed to /usr/libexec/...

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agomgr/volumes: fix "ceph nfs export" help messages 36140/head
Nathan Cutler [Thu, 16 Jul 2020 12:03:32 +0000 (14:03 +0200)]
mgr/volumes: fix "ceph nfs export" help messages

They say "<attach>" but they mean "<clusterid>".

Fixes: https://tracker.ceph.com/issues/46572
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #35605 from ceph/osd-compact-on-start
Kefu Chai [Thu, 16 Jul 2020 12:19:43 +0000 (20:19 +0800)]
Merge pull request #35605 from ceph/osd-compact-on-start

osd: Add config option to compact OSD's object store on start

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomon: refactor ServiceMap::Service::get_task_summary() 36139/head
Kefu Chai [Thu, 16 Jul 2020 12:08:56 +0000 (20:08 +0800)]
mon: refactor ServiceMap::Service::get_task_summary()

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomon: only dump non-empty "task status"
Kefu Chai [Thu, 16 Jul 2020 11:39:13 +0000 (19:39 +0800)]
mon: only dump non-empty "task status"

* mgr/ServiceMap: add ServiceMap::Service::has_running_tasks() to tell
  if a service has any running tasks
* mon/Monitor: do not print an empty "task status" section when printing
  cluster status. it's just confusing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/ServiceMap: move ServiceMap::Daemon implementation into .cc file
Kefu Chai [Thu, 16 Jul 2020 11:09:18 +0000 (19:09 +0800)]
mgr/ServiceMap: move ServiceMap::Daemon implementation into .cc file

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/cephfs/nfs: Update about deploying nfs-ganesha with cephadm in vstart 36138/head
Varsha Rao [Thu, 16 Jul 2020 11:36:11 +0000 (17:06 +0530)]
doc/cephfs/nfs: Update about deploying nfs-ganesha with cephadm in vstart

Fixes: https://tracker.ceph.com/issues/46571
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #36122 from zdover23/wip-doc-rados-redundant-a-typo
zdover23 [Thu, 16 Jul 2020 11:33:11 +0000 (21:33 +1000)]
Merge pull request #36122 from zdover23/wip-doc-rados-redundant-a-typo

doc/rados: remove a redundant "a" from a sentence

This sentence removes an "a" from a sentence, which makes the sentence grammatically correct.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agomgr/dashboard: Block the import of async from @angular/core/testing 36070/head
Tiago Melo [Mon, 13 Jul 2020 13:54:32 +0000 (13:54 +0000)]
mgr/dashboard: Block the import of async from @angular/core/testing

We no longer need this and it was causing unexpected results in some tests.

Fixes: https://tracker.ceph.com/issues/46500
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agomgr/dashboard: Display cluster status in favicon 36000/head
Tiago Melo [Thu, 9 Jul 2020 17:36:59 +0000 (17:36 +0000)]
mgr/dashboard: Display cluster status in favicon

Fixes: https://tracker.ceph.com/issues/44542
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoosd: Add config option to compact OSD's object store on start 35605/head
Wido den Hollander [Tue, 16 Jun 2020 19:50:19 +0000 (21:50 +0200)]
osd: Add config option to compact OSD's object store on start

By setting this configuration option an OSD will compact it's
store's OMAP on start.

This way admin's can trigger an offline compaction by setting this
configuration value to 'true' and then restarting the OSD.

This is easier than using tools like 'ceph-kvstore-tool' with requires
more manual work on the CLI and might be more difficult for users.

Signed-off-by: Wido den Hollander <wido@42on.com>
5 years agomgr/cephadm: Set exception context to populate orch events. 35456/head
Sebastian Wagner [Sat, 6 Jun 2020 23:25:21 +0000 (01:25 +0200)]
mgr/cephadm: Set exception context to populate orch events.

Like when if daemon deployment fails

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agocrimson/osd: fix osd shutdown problem 36128/head
Xuehan Xu [Wed, 15 Jul 2020 10:29:09 +0000 (18:29 +0800)]
crimson/osd: fix osd shutdown problem

when doing full-system shutdown, monitors may go down before OSDs in which case
the osd shutdown hangs waiting for monc to successfully send the markmedown msg
to monitors

Fixes: https://tracker.ceph.com/issues/46564
Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
5 years agoMerge pull request #36103 from dillaman/wip-44311
Kefu Chai [Thu, 16 Jul 2020 09:22:47 +0000 (17:22 +0800)]
Merge pull request #36103 from dillaman/wip-44311

crush/CrushWrapper: rebuild reverse maps after rebuilding crush map

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #35768 from rhcs-dashboard/fix-45185-master
Kefu Chai [Thu, 16 Jul 2020 09:21:59 +0000 (17:21 +0800)]
Merge pull request #35768 from rhcs-dashboard/fix-45185-master

mgr/dashboard: fix pool usage calculation

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
5 years agoMerge pull request #36095 from orozery/striper_get_file_offset
Kefu Chai [Thu, 16 Jul 2020 09:19:29 +0000 (17:19 +0800)]
Merge pull request #36095 from orozery/striper_get_file_offset

osdc/Striper: add get_file_offset function

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #36091 from tchaikov/wip-46495
Kefu Chai [Thu, 16 Jul 2020 09:17:49 +0000 (17:17 +0800)]
Merge pull request #36091 from tchaikov/wip-46495

mgr/DaemonServer: keep daemon in service map when it has no tasks

Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge pull request #36051 from Songweibin/wip-rados-setomapval
Kefu Chai [Thu, 16 Jul 2020 09:13:28 +0000 (17:13 +0800)]
Merge pull request #36051 from Songweibin/wip-rados-setomapval

tools/rados: add an option "--input-file file" to `setomapval` command

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/cephadm: Add event when deploying a daemon
Sebastian Wagner [Sat, 6 Jun 2020 22:54:35 +0000 (00:54 +0200)]
mgr/cephadm: Add event when deploying a daemon

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agodoc/rados: remove a redundant "a" from a sentence 36122/head
Zac Dover [Wed, 15 Jul 2020 16:34:40 +0000 (02:34 +1000)]
doc/rados: remove a redundant "a" from a sentence

This commit changes the (not quite) sentence "Once
you have a deployed a Ceph Storage Cluster, you may
begin operating your cluster." to "Once you have
deployed a Ceph Storage Cluster, you may begin
operating your cluster."

Fixes: https://tracker.ceph.com/issues/46554
Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agoMerge pull request #35130 from rzarzynski/wip-crimson-backfill
Kefu Chai [Thu, 16 Jul 2020 08:29:29 +0000 (16:29 +0800)]
Merge pull request #35130 from rzarzynski/wip-crimson-backfill

crimson: add support for backfill, part 0

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/cephadm: Add an event when creating a service
Sebastian Wagner [Sat, 6 Jun 2020 22:53:34 +0000 (00:53 +0200)]
mgr/cephadm: Add an event when creating a service

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add inventory.EventStore
Sebastian Wagner [Sat, 6 Jun 2020 22:51:38 +0000 (00:51 +0200)]
mgr/cephadm: Add inventory.EventStore

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orch: Add events to tests/test_orchestrator
Sebastian Wagner [Fri, 26 Jun 2020 10:44:44 +0000 (12:44 +0200)]
mgr/orch: Add events to tests/test_orchestrator

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/orch: Add OrchestratorEvent class
Sebastian Wagner [Sat, 6 Jun 2020 22:49:43 +0000 (00:49 +0200)]
mgr/orch: Add OrchestratorEvent class

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agocephadm: also retry on digest mismatch 35846/head
Sebastian Wagner [Tue, 14 Jul 2020 13:11:46 +0000 (15:11 +0200)]
cephadm: also retry on digest mismatch

Fixes: https://tracker.ceph.com/issues/46534
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agodoc/rbd: add rbd-target-gw enable and start 35553/head
Zac Dover [Fri, 12 Jun 2020 08:35:54 +0000 (18:35 +1000)]
doc/rbd: add rbd-target-gw enable and start

This commit adds the following commands to  the "Configuring the iSCSI Target Using the Command Line" page: "systemctl enable rbd-target-gw" and "systemctl start rbd-target-gw"

Fixes: https://tracker.ceph.com/issues/45987
Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agoMerge pull request #33770 from majianpeng/osd-simple-logger
Kefu Chai [Thu, 16 Jul 2020 04:29:49 +0000 (12:29 +0800)]
Merge pull request #33770 from majianpeng/osd-simple-logger

osd/OSD: simple perfcounter usage in OSDService

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomds: fix mds forwarding request 'no_available_op_found' 36107/head
Yanhu Cao [Wed, 15 Jul 2020 07:44:19 +0000 (15:44 +0800)]
mds: fix mds forwarding request 'no_available_op_found'

Fixes: https://tracker.ceph.com/issues/46543
Signed-off-by: Yanhu Cao <jrcaoyanhu@jd.com>
5 years agoMerge pull request #35989 from bigwhite37/fix-dedup-tool-unused-var-warn
myoungwon oh [Thu, 16 Jul 2020 00:42:30 +0000 (09:42 +0900)]
Merge pull request #35989 from bigwhite37/fix-dedup-tool-unused-var-warn

tools/ceph_dedup_tool: fix unused variable warning

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoscript/ptl-tool: add flag to turn off credits 36124/head
Patrick Donnelly [Wed, 15 Jul 2020 14:57:00 +0000 (07:57 -0700)]
script/ptl-tool: add flag to turn off credits

To speed up integration branch creation.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30780 from zhangsw/fix-rgw-multipart-abortdate
ofriedma [Wed, 15 Jul 2020 16:21:55 +0000 (19:21 +0300)]
Merge pull request #30780 from zhangsw/fix-rgw-multipart-abortdate

rgw: add abort multipart date and rule-id header to init multipart upload response

5 years agoMerge pull request #35950 from zdover23/wip-doc-dev-guide-add-zdover-to-lead-list
zdover23 [Wed, 15 Jul 2020 14:37:46 +0000 (00:37 +1000)]
Merge pull request #35950 from zdover23/wip-doc-dev-guide-add-zdover-to-lead-list

doc/devel: add zdover to leads list

5 years agoMerge pull request #34537 from ideepika/wip-bluestore-mem-tracking
Josh Durgin [Wed, 15 Jul 2020 13:50:58 +0000 (06:50 -0700)]
Merge pull request #34537 from ideepika/wip-bluestore-mem-tracking

os/bluestore: mempool split for finer granularity

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agolibrbd: fix parent cache races and error handling 36077/head
Jason Dillaman [Mon, 13 Jul 2020 20:11:06 +0000 (16:11 -0400)]
librbd: fix parent cache races and error handling

If the plugin fails to connect to the daemon at start-up it will
crash the process due to a resource deadlock exception being
thrown as the client is destroyed. Additionally, librbd will support
concurrent IO thread processing in the future so the client needs
to be protected by a lock.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35901 from sebastian-philipp/juanmi-firewall-refactor
Sebastian Wagner [Wed, 15 Jul 2020 12:44:20 +0000 (14:44 +0200)]
Merge pull request #35901 from sebastian-philipp/juanmi-firewall-refactor

cephadm: refactor update_firewalld

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>