]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocephadm: skip `port_in_use` during redeploy
Michael Fritch [Mon, 18 May 2020 21:40:39 +0000 (15:40 -0600)]
cephadm: skip `port_in_use` during redeploy

skip the `port_in_use` check during reconfig/redeploy
of the monitoring components and nfs-ganesha

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agocephadm: remove unused `reconfig` param from create_daemon_dirs
Michael Fritch [Mon, 18 May 2020 21:40:29 +0000 (15:40 -0600)]
cephadm: remove unused `reconfig` param from create_daemon_dirs

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agocephadm: don't check port in use during nfs reconfig
Michael Fritch [Mon, 18 May 2020 21:40:23 +0000 (15:40 -0600)]
cephadm: don't check port in use during nfs reconfig

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #35108 from trociny/wip-45589 34841/head
Jason Dillaman [Mon, 18 May 2020 19:35:33 +0000 (15:35 -0400)]
Merge pull request #35108 from trociny/wip-45589

mgr/rbd_support: rename "rbd_trash_trash_purge_schedule" oid

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34900 from gekios/wip-cephadm-bootstrapped
Sebastian Wagner [Mon, 18 May 2020 18:46:47 +0000 (20:46 +0200)]
Merge pull request #34900 from gekios/wip-cephadm-bootstrapped

qa/tasks/cephadm.py: Support already bootstrapped clusters

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35071 from sebastian-philipp/cephadm-upgrade-check-mon-command
Sebastian Wagner [Mon, 18 May 2020 18:36:15 +0000 (20:36 +0200)]
Merge pull request #35071 from sebastian-philipp/cephadm-upgrade-check-mon-command

mgr/cephadm: upgrade: use check_mon_command

5 years agoMerge pull request #35068 from bk201/wip-45163
Sebastian Wagner [Mon, 18 May 2020 18:35:50 +0000 (20:35 +0200)]
Merge pull request #35068 from bk201/wip-45163

mgr/cephadm: config iSCSI gateways in Dashboard

5 years agoMerge pull request #35084 from jschmid1/caching_osdspec_previews
Sebastian Wagner [Mon, 18 May 2020 18:35:36 +0000 (20:35 +0200)]
Merge pull request #35084 from jschmid1/caching_osdspec_previews

mgr/cephadm: implement cached osdspec previews

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/rbd_support: rename "rbd_trash_trash_purge_schedule" oid 35108/head
Mykola Golub [Mon, 18 May 2020 17:59:31 +0000 (20:59 +0300)]
mgr/rbd_support: rename "rbd_trash_trash_purge_schedule" oid

to "rbd_trash_purge_schedule"

Fixes: https://tracker.ceph.com/issues/45589
Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge branch 'wip-joshd-fix'
Josh Durgin [Mon, 18 May 2020 14:39:04 +0000 (07:39 -0700)]
Merge branch 'wip-joshd-fix'

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agomgr/orchestrator: adapting orch interface to preview changes 35084/head
Joshua Schmid [Fri, 15 May 2020 09:34:27 +0000 (11:34 +0200)]
mgr/orchestrator: adapting orch interface to preview changes

Signed-off-by: Joshua Schmid <jschmid@suse.de>
5 years agoMerge pull request #35015 from smithfarm/wip-45514
Nathan Cutler [Mon, 18 May 2020 13:18:11 +0000 (15:18 +0200)]
Merge pull request #35015 from smithfarm/wip-45514

doc: drop obsolete cache tier options

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #35083 from p-se/wip-pse-cephadm-prom-scrape-interval
Sebastian Wagner [Mon, 18 May 2020 12:46:16 +0000 (14:46 +0200)]
Merge pull request #35083 from p-se/wip-pse-cephadm-prom-scrape-interval

mgr/cephadm: increase global scrape interval

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35092 from varshar16/wip-cephadm-mdcache-ganesha
Sebastian Wagner [Mon, 18 May 2020 12:45:50 +0000 (14:45 +0200)]
Merge pull request #35092 from varshar16/wip-cephadm-mdcache-ganesha

 mgr/cephadm/nfs: Instead of CACHEINODE use MDCACHE

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: upgrade: use check_mon_command 35071/head
Sebastian Wagner [Thu, 14 May 2020 14:29:56 +0000 (16:29 +0200)]
mgr/cephadm: upgrade: use check_mon_command

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34964 from dillaman/wip-45137
Mykola Golub [Mon, 18 May 2020 11:24:00 +0000 (14:24 +0300)]
Merge pull request #34964 from dillaman/wip-45137

librbd: replace ImageRequestWQ with pluggable ImageDispatcher

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agomgr/cephadm: increase global scrape interval 35083/head
Patrick Seidensal [Fri, 15 May 2020 09:01:35 +0000 (11:01 +0200)]
mgr/cephadm: increase global scrape interval

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
5 years agomgr/dashboard: support setting iSCSI gateways from orchestrator 35068/head
Kiefer Chang [Fri, 15 May 2020 09:22:15 +0000 (17:22 +0800)]
mgr/dashboard: support setting iSCSI gateways from orchestrator

- Dashboard doesn't actively query iSCSI gateways from orchestrator anymore.
  Instead, Orchestrator backend invokes iscsi-gateway-add CLI after any
  iSCSI daemons are deployed.
- Add an optional argument `name` to `iscsi-gateway-add` command. If
  `name` is provided, Dashboard won't issue API request to iSCSI gateway
  to get the hostname. This is required because when orchestrator sets
  the gateway via CLI, the gateway is just spawned and might be not
  ready yet.

Fixes: https://tracker.ceph.com/issues/45163
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agomgr/cephadm: config iSCSI gateways in Dashboard
Kiefer Chang [Fri, 15 May 2020 09:20:55 +0000 (17:20 +0800)]
mgr/cephadm: config iSCSI gateways in Dashboard

- Add `daemon_check_post` fuction to allow services implement actions
  needed to be done after daemons are checked.
- After iSCSI daemons are spawned, call dashboard CLI to
  set the API URL of the daemons.

Fixes: https://tracker.ceph.com/issues/45163
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge pull request #32682 from lorenzen-b1/patch-1
Kefu Chai [Sat, 16 May 2020 11:45:15 +0000 (19:45 +0800)]
Merge pull request #32682 from lorenzen-b1/patch-1

doc/architecture.rst: clarify scrubbing

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35091 from tchaikov/wip-crimson-cleanup
Kefu Chai [Sat, 16 May 2020 02:44:01 +0000 (10:44 +0800)]
Merge pull request #35091 from tchaikov/wip-crimson-cleanup

crimson/osd: avoid using variadic future

Reviewed-by: Samuel Just <sjust@redhat.com>
5 years agoMerge PR #35081 into master
Patrick Donnelly [Sat, 16 May 2020 02:22:16 +0000 (19:22 -0700)]
Merge PR #35081 into master

* refs/pull/35081/head:
qa: do not save/restore ip_forward sysctl

Reviewed-by: Xiubo Li <xiubli@redhat.com>
5 years agoMerge pull request #34764 from ianwatsonrh/master
Casey Bodley [Fri, 15 May 2020 19:08:55 +0000 (15:08 -0400)]
Merge pull request #34764 from ianwatsonrh/master

Docs: vault kv and transit engine updates

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years ago mgr/cephadm/nfs: Instead of CACHEINODE use MDCACHE 35092/head
Varsha Rao [Fri, 15 May 2020 18:21:01 +0000 (23:51 +0530)]
 mgr/cephadm/nfs: Instead of CACHEINODE use MDCACHE

As CACHEINODE will be deprecated soon.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agocrimson/osd: avoid using variadic future 35091/head
Kefu Chai [Fri, 15 May 2020 16:38:12 +0000 (00:38 +0800)]
crimson/osd: avoid using variadic future

it is deprecated by seastar. let's use future<tuple<...>> instead

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35025 from dillaman/wip-45518
Mykola Golub [Fri, 15 May 2020 15:13:18 +0000 (18:13 +0300)]
Merge pull request #35025 from dillaman/wip-45518

librbd: copy API should not inherit v1 image format by default

5 years agoMerge pull request #34789 from trociny/wip-rbd-nbd-quiesce
Jason Dillaman [Fri, 15 May 2020 15:12:50 +0000 (11:12 -0400)]
Merge pull request #34789 from trociny/wip-rbd-nbd-quiesce

rbd-nbd: add quiesce/unquiesce hooks

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35023 from yuvalif/fix_issue_45513
Casey Bodley [Fri, 15 May 2020 14:48:57 +0000 (10:48 -0400)]
Merge pull request #35023 from yuvalif/fix_issue_45513

cls/2pc_queue: fix timing issue in test

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34959 from yison/rwl-image-writeback-cache-seq10
Jason Dillaman [Fri, 15 May 2020 14:24:40 +0000 (10:24 -0400)]
Merge pull request #34959 from yison/rwl-image-writeback-cache-seq10

rbd/cache: Replicated Write Log core codes - load existing cache

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34930 from trociny/wip-45409
Jason Dillaman [Fri, 15 May 2020 12:46:48 +0000 (08:46 -0400)]
Merge pull request #34930 from trociny/wip-45409

rbd-mirror: wait for events to replay before shut down journal replay

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35042 from tchaikov/wip-cmake-remove-iwyu-cppcheck
Kefu Chai [Fri, 15 May 2020 11:55:38 +0000 (19:55 +0800)]
Merge pull request #35042 from tchaikov/wip-cmake-remove-iwyu-cppcheck

cmake: remove cppcheck and iwyu targets

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #35070 from Devp00l/wip-45545-2
Kefu Chai [Fri, 15 May 2020 09:56:39 +0000 (17:56 +0800)]
Merge pull request #35070 from Devp00l/wip-45545-2

mgr/dashboard: Updates jest to fix cache failure

Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34913 from athanatos/sjust/wip-seastore-journal
Kefu Chai [Fri, 15 May 2020 09:50:02 +0000 (17:50 +0800)]
Merge pull request #34913 from athanatos/sjust/wip-seastore-journal

crimson/os/seastore: initial PR

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/cephadm: move iSCSI service class to its own file
Kiefer Chang [Fri, 15 May 2020 09:17:54 +0000 (17:17 +0800)]
mgr/cephadm: move iSCSI service class to its own file

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agomgr/cephadm: adapt cephadm to osdspec preview caching
Joshua Schmid [Fri, 15 May 2020 09:33:31 +0000 (11:33 +0200)]
mgr/cephadm: adapt cephadm to osdspec preview caching

Signed-off-by: Joshua Schmid <jschmid@suse.de>
5 years agomgr/cephadm: add preview caching to inventory.py
Joshua Schmid [Fri, 15 May 2020 09:32:03 +0000 (11:32 +0200)]
mgr/cephadm: add preview caching to inventory.py

Signed-off-by: Joshua Schmid <jschmid@suse.de>
5 years agoMerge pull request #35052 from tspmelo/wip-unittest-warnings
Lenz Grimmer [Fri, 15 May 2020 08:59:27 +0000 (10:59 +0200)]
Merge pull request #35052 from tspmelo/wip-unittest-warnings

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoMerge pull request #35013 from matthewoliver/cephadm-iscsi-log-to-stderr
Sebastian Wagner [Fri, 15 May 2020 08:47:43 +0000 (10:47 +0200)]
Merge pull request #35013 from matthewoliver/cephadm-iscsi-log-to-stderr

cephadm: enable logging to stderr in ceph-iscsi

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agodec/dev/seastore.rst: add more detailed design information and status 34913/head
Samuel Just [Tue, 5 May 2020 02:12:49 +0000 (19:12 -0700)]
dec/dev/seastore.rst: add more detailed design information and status

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore: add initial cache support with tests
Samuel Just [Mon, 4 May 2020 18:50:37 +0000 (11:50 -0700)]
crimson/os/seastore: add initial cache support with tests

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/os/seastore: introduce initial journal implementation and tests
Samuel Just [Mon, 4 May 2020 18:47:13 +0000 (11:47 -0700)]
crimson/os/seastore: introduce initial journal implementation and tests

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agocrimson/gtest_seastar: add helpers for building seastar gtest unit tests
Samuel Just [Mon, 4 May 2020 18:48:10 +0000 (11:48 -0700)]
crimson/gtest_seastar: add helpers for building seastar gtest unit tests

Also adds unsafe_get methods for errorator for use within unit tests.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoqa: do not save/restore ip_forward sysctl 35081/head
Patrick Donnelly [Fri, 15 May 2020 03:13:38 +0000 (20:13 -0700)]
qa: do not save/restore ip_forward sysctl

We don't really care if this is left on during the course of the mount.
These settings don't persist across tests anyway.

Fixes: https://tracker.ceph.com/issues/45525
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35077 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Thu, 14 May 2020 20:56:31 +0000 (13:56 -0700)]
Merge pull request #35077 from yuriw/wip-yuriw-crontab-master

qa/tests: reduced powercycle jobs amount

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoqa/tests: reduced powercycle jobs amount 35077/head
Yuri Weinstein [Thu, 14 May 2020 20:47:55 +0000 (13:47 -0700)]
qa/tests: reduced powercycle jobs amount

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #32829 from Devp00l/wip-43765 35075/head
Lenz Grimmer [Thu, 14 May 2020 16:12:13 +0000 (18:12 +0200)]
Merge pull request #32829 from Devp00l/wip-43765

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #35076 from yuriw/wip-yuriw-distro-master
Yuri Weinstein [Thu, 14 May 2020 19:50:40 +0000 (12:50 -0700)]
Merge pull request #35076 from yuriw/wip-yuriw-distro-master

qa/tests: run `nautilus-x` on `pacific` on `ubuntu 18.04`

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoqa/tests: run `nautilus-x` on `pacific` on `ubuntu 18.04` 35076/head
Yuri Weinstein [Thu, 14 May 2020 19:35:20 +0000 (12:35 -0700)]
qa/tests: run `nautilus-x` on `pacific` on `ubuntu 18.04`

...as we don't build `nauiltus` on `20.04`

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agolibrbd: QoS delayed dispatch needs to use op work queue 34964/head
Jason Dillaman [Thu, 14 May 2020 17:05:04 +0000 (13:05 -0400)]
librbd: QoS delayed dispatch needs to use op work queue

The QoS throttle will invoke its throttle complete callback within
the scope of the ImageCtx timer lock singleton. This would cause
the potential for deadlock if a future dispatch layer attempted
to acquire the same timer lock.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: corrected naming of singleton timer locker
Jason Dillaman [Thu, 14 May 2020 16:36:26 +0000 (12:36 -0400)]
librbd: corrected naming of singleton timer locker

It incorrectly included "Journal" in the name.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: correct misnamed parameters in io::ImageDispatcher
Jason Dillaman [Thu, 14 May 2020 16:33:20 +0000 (12:33 -0400)]
librbd: correct misnamed parameters in io::ImageDispatcher

It was incorrectly using to object dispatch names instead of
image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: api::Io now properly passing the parent trace information
Jason Dillaman [Thu, 14 May 2020 16:31:42 +0000 (12:31 -0400)]
librbd: api::Io now properly passing the parent trace information

A copy-and-paste error from moving the original implentation from
ImageRequestWQ resulted in the parent trace being incorrectly
uninitialized.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #32829 from Devp00l/wip-43765
Lenz Grimmer [Thu, 14 May 2020 16:12:13 +0000 (18:12 +0200)]
Merge pull request #32829 from Devp00l/wip-43765

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agolibrbd: ensure in-flight read-ahead + copy-on-read ops are finalized
Jason Dillaman [Fri, 8 May 2020 15:36:32 +0000 (11:36 -0400)]
librbd: ensure in-flight read-ahead + copy-on-read ops are finalized

Now that the image dispatcher isn't flushing AsyncOperations with each
flush request, we need to ensure that we flush all background ops prior
to fully closing the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: remove io::ImageRequestWQ
Jason Dillaman [Fri, 8 May 2020 03:03:08 +0000 (23:03 -0400)]
librbd: remove io::ImageRequestWQ

This has been fully deprecated in favor of the new plugable image
dispatcher system.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: switch to new api::Io dispatch helper methods
Jason Dillaman [Fri, 8 May 2020 01:55:44 +0000 (21:55 -0400)]
librbd: switch to new api::Io dispatch helper methods

This is another step in the removal of ImageRequestWQ in favor
of the new ImageDispatcher.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: created new api::Io helper methods
Jason Dillaman [Tue, 5 May 2020 20:02:58 +0000 (16:02 -0400)]
librbd: created new api::Io helper methods

These will be invoked by the user API and wrap various user API
specific logic.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: exclusive-lock dispatch flush pseudo-handling
Jason Dillaman [Thu, 7 May 2020 18:54:36 +0000 (14:54 -0400)]
librbd: exclusive-lock dispatch flush pseudo-handling

Ensure that the exclusive-lock layer tracks all in-flight IOs so that
it can flush the IOs from lower layers when the lock becomes required.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: qos dispatch flush pseudo-handling
Jason Dillaman [Thu, 7 May 2020 20:58:40 +0000 (16:58 -0400)]
librbd: qos dispatch flush pseudo-handling

Flush requests will be properly queued behind write operations to
ensure data consistency.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: generic helper for tracking in-flight IO and managing flush requests
Jason Dillaman [Thu, 7 May 2020 20:25:50 +0000 (16:25 -0400)]
librbd: generic helper for tracking in-flight IO and managing flush requests

Layers that potentially queue IOs but not all IOs will need to track all
in-flight IOs to properly ensure that a flush cannot complete while
older IO is still stuck in a queue.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: temporarily redirect ImageRequestWQ IO through ImageDispatcher
Jason Dillaman [Tue, 5 May 2020 23:35:58 +0000 (19:35 -0400)]
librbd: temporarily redirect ImageRequestWQ IO through ImageDispatcher

The next series of commits will work to remove ImageRequestWQ from librbd.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: complete ImageDispatchSpec upon AioCompletion finalization
Jason Dillaman [Wed, 6 May 2020 14:52:58 +0000 (10:52 -0400)]
librbd: complete ImageDispatchSpec upon AioCompletion finalization

This will allow ImageDispatchSpec to invoke any necessary finalizers
for the different dispatch layers and allows in-flight IO to be tracked
since the image dispatch layer finalizers won't be invoked until after
the AioCompletion fires.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: switched IO (un)block_write calls to new queue image dispatcher
Jason Dillaman [Tue, 5 May 2020 15:48:06 +0000 (11:48 -0400)]
librbd: switched IO (un)block_write calls to new queue image dispatcher

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: queue image IO dispatch layer
Jason Dillaman [Thu, 30 Apr 2020 17:07:33 +0000 (13:07 -0400)]
librbd: queue image IO dispatch layer

This layer replaces the queue implemented by ImageRequestWQ and handles
blocking all write requests through the dispatch pipeline.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: exclusive lock image IO dispatch layer
Jason Dillaman [Wed, 29 Apr 2020 23:17:12 +0000 (19:17 -0400)]
librbd: exclusive lock image IO dispatch layer

This layer will handle acquiring the exclusive lock if required upon
incoming IO requests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: refresh image IO dispatch layer
Jason Dillaman [Wed, 29 Apr 2020 22:10:47 +0000 (18:10 -0400)]
librbd: refresh image IO dispatch layer

This layer will handle refreshing the image if required upon incoming
IO requests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: QoS image io dispatch layer
Jason Dillaman [Wed, 29 Apr 2020 17:05:35 +0000 (13:05 -0400)]
librbd: QoS image io dispatch layer

Re-implement the existing QoS throttling behavior from ImageRequestWQ
as a new image IO dispatch layer. The existing QoS hooks in
ImageRequestWQ are temporarily hooked to the new layer.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: support a finish handler for image IO dispatch layers
Jason Dillaman [Fri, 1 May 2020 01:13:08 +0000 (21:13 -0400)]
librbd: support a finish handler for image IO dispatch layers

This will be faster than allocating per-IO Context callbacks for
layers that need to track the in-flight state of particular IOs.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: init and shut down image IO dispatch layer
Jason Dillaman [Fri, 1 May 2020 01:37:56 +0000 (21:37 -0400)]
librbd: init and shut down image IO dispatch layer

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: initial implementation for image IO dispatcher
Jason Dillaman [Wed, 29 Apr 2020 13:52:33 +0000 (09:52 -0400)]
librbd: initial implementation for image IO dispatcher

This is similar to the object IO dispatcher but it expects image extents
for IO operations.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: add image dispatch layer to image dispatch spec
Jason Dillaman [Mon, 4 May 2020 23:21:06 +0000 (19:21 -0400)]
librbd: add image dispatch layer to image dispatch spec

This will allow image extent-based IOs to skip layers. Also added helpful
enums for the start of user-based API requests and internal requests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: added io::ImageDispatchSpec::C_Dispatcher
Jason Dillaman [Wed, 29 Apr 2020 00:34:34 +0000 (20:34 -0400)]
librbd: added io::ImageDispatchSpec::C_Dispatcher

This will assist with dispatching image extent-based IO requests
through the image IO dispatcher system (to be added in a later commit).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: move generic IO dispatcher logic to base class
Jason Dillaman [Wed, 29 Apr 2020 03:38:18 +0000 (23:38 -0400)]
librbd: move generic IO dispatcher logic to base class

This will allow re-use between the existing ObjectDispatcher and
the ImageDispatcher that will be added in a future commit.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agocommon: TokenBucketThrottle should use perfect forwarding for item
Jason Dillaman [Wed, 29 Apr 2020 16:27:46 +0000 (12:27 -0400)]
common: TokenBucketThrottle should use perfect forwarding for item

This will allow more than just a pointer to an item to be passed to
the callback.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agomgr/dashboard: Updates jest to fix cache failure 35070/head
Stephan Müller [Thu, 14 May 2020 14:37:48 +0000 (16:37 +0200)]
mgr/dashboard: Updates jest to fix cache failure

Fixes: https://tracker.ceph.com/issues/45545
Signed-off-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #31889 from ofriedma/wip-ofriedma-reshard-debug
ofriedma [Thu, 14 May 2020 15:11:00 +0000 (18:11 +0300)]
Merge pull request #31889 from ofriedma/wip-ofriedma-reshard-debug

rgw: Fix reshard log so we can know why the reshard is returning error

5 years agoqa/tasks/cephadm: Add support for raw disks 34900/head
Georgios Kyratsas [Wed, 13 May 2020 11:29:35 +0000 (13:29 +0200)]
qa/tasks/cephadm: Add support for raw disks

Currently tests on raw disks are failing due to stripping '/dev/' from
device name. (ie https://tracker.ceph.com/issues/45383#change-165721)

Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
5 years agoqa/tasks/cephadm.py: Support bootstrapped clusters
Georgios Kyratsas [Tue, 5 May 2020 07:27:45 +0000 (09:27 +0200)]
qa/tasks/cephadm.py: Support bootstrapped clusters

Add the possibility of being able to run cephadm.py on clusters that
were already bootstrapped by some other task/way so you can deploy the
rest of the daemons/services.

Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
5 years agoMerge pull request #34003 from AmnonHanuhov/wip-radosbench_4k_rw_yaml
Kefu Chai [Thu, 14 May 2020 14:16:13 +0000 (22:16 +0800)]
Merge pull request #34003 from AmnonHanuhov/wip-radosbench_4k_rw_yaml

test/crimson: Added CPU cycles per operation as an acceptance criteria to radosbench_4k_r/w yaml

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34981 from sebastian-philipp/doc-dev-cephadm-cuncurrency
Sebastian Wagner [Thu, 14 May 2020 13:15:08 +0000 (15:15 +0200)]
Merge pull request #34981 from sebastian-philipp/doc-dev-cephadm-cuncurrency

doc/dev/cephadm: Note regarding network calls form CLI handlers

Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agoMerge pull request #35066 from rzarzynski/wip-crimson-omap_get_keys-num
Kefu Chai [Thu, 14 May 2020 11:50:40 +0000 (19:50 +0800)]
Merge pull request #35066 from rzarzynski/wip-crimson-omap_get_keys-num

crimson/osd: fix key num handling in PGBackend::omap_get_keys().

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34668 from zdover23/wip-doc-ceph-orch-zap-45128
Sebastian Wagner [Thu, 14 May 2020 11:39:49 +0000 (13:39 +0200)]
Merge pull request #34668 from zdover23/wip-doc-ceph-orch-zap-45128

doc/ceph orch: Add ceph orch zap command

Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agoMerge pull request #34944 from jschmid1/fix_osdspec_affinity_passing
Sebastian Wagner [Thu, 14 May 2020 11:31:14 +0000 (13:31 +0200)]
Merge pull request #34944 from jschmid1/fix_osdspec_affinity_passing

mgr/cephadm: fix env_var passing to cephadm

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35030 from mgfritch/cephadm-shell-mount-special
Sebastian Wagner [Thu, 14 May 2020 11:30:34 +0000 (13:30 +0200)]
Merge pull request #35030 from mgfritch/cephadm-shell-mount-special

cephadm: fix shell mount for special files

Reviewed-by: Matthew Oliver <moliver@suse.com>
5 years agocrimson/osd: fix key num handling in PGBackend::omap_get_keys(). 35066/head
Radoslaw Zarzynski [Thu, 14 May 2020 10:17:05 +0000 (12:17 +0200)]
crimson/osd: fix key num handling in PGBackend::omap_get_keys().

The patch fixes running-out-of-buffer when decoding the data
from `omap_get_keys()`. In some cases, the declared number
of encoded keys is greater by 1 from the actual causing execption
`buffer::end_of_buffer` to be thrown at decoder.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #35011 from dillaman/wip-45504
Mykola Golub [Thu, 14 May 2020 09:20:41 +0000 (12:20 +0300)]
Merge pull request #35011 from dillaman/wip-45504

pybind/rbd: RBD.create() method's 'old_format' parameter now defaults to False

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #35022 from sebastian-philipp/cephadm-add-host-oserror
Sebastian Wagner [Thu, 14 May 2020 06:44:13 +0000 (08:44 +0200)]
Merge pull request #35022 from sebastian-philipp/cephadm-add-host-oserror

mgr/cephadm: Remove AsyncCompletion

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoPendingReleaseNotes: note about security fix
Josh Durgin [Thu, 14 May 2020 04:34:56 +0000 (21:34 -0700)]
PendingReleaseNotes: note about security fix

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
5 years agomgr: require all caps for pre-octopus tell commands
Josh Durgin [Mon, 4 May 2020 21:03:35 +0000 (17:03 -0400)]
mgr: require all caps for pre-octopus tell commands

This matches the requirements for admin socket commands
sent via tell elsewhere.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
5 years agomon: enforce caps for pre-octopus client tell commands
Josh Durgin [Thu, 23 Apr 2020 04:22:10 +0000 (00:22 -0400)]
mon: enforce caps for pre-octopus client tell commands

This affects only the commands whitelisted here - in particular
injectargs requires write access to the monitors.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #34976 from changchengx/bufferlist_ut
Kefu Chai [Thu, 14 May 2020 03:34:37 +0000 (11:34 +0800)]
Merge pull request #34976 from changchengx/bufferlist_ut

test/bufferlist: fix and cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35056 from agayev/fix-do-make
Kefu Chai [Thu, 14 May 2020 03:24:15 +0000 (11:24 +0800)]
Merge pull request #35056 from agayev/fix-do-make

do_cmake.sh: do not unnecessarily warn about debug build

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35029 from yuriw/wip-yuriw-subsets-master
Yuri Weinstein [Wed, 13 May 2020 22:57:35 +0000 (15:57 -0700)]
Merge pull request #35029 from yuriw/wip-yuriw-subsets-master

qa/tests: reduce number of jobs for rados to 309

5 years agodo_cmake.sh: do not unnecessarily warn about debug build 35056/head
Abutalib Aghayev [Wed, 13 May 2020 21:07:55 +0000 (17:07 -0400)]
do_cmake.sh: do not unnecessarily warn about debug build

do_cmake.sh forgets to check the arguments passed to it and ends up warning
about debug build even if a user specifies a release build.

Signed-off-by: Abutalib Aghayev <agayev@gmail.com>
5 years agoMerge pull request #34969 from pritha-srivastava/wip-rgw-gc-fix
Casey Bodley [Wed, 13 May 2020 18:36:48 +0000 (14:36 -0400)]
Merge pull request #34969 from pritha-srivastava/wip-rgw-gc-fix

cls/rgw_gc: Fixing the iterator used to access urgent data map

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agomgr/dashboard: Remove unit tests warnings 35052/head
Tiago Melo [Wed, 13 May 2020 17:47:10 +0000 (17:47 +0000)]
mgr/dashboard: Remove unit tests warnings

Fixes: https://tracker.ceph.com/issues/45536
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #34965 from Devp00l/wip-45433
Laura Paduano [Wed, 13 May 2020 14:36:48 +0000 (16:36 +0200)]
Merge pull request #34965 from Devp00l/wip-45433

mgr/dashboard: Always use fast angular unit tests

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35041 from smithfarm/wip-tcmalloc-nit
Nathan Cutler [Wed, 13 May 2020 13:53:10 +0000 (15:53 +0200)]
Merge pull request #35041 from smithfarm/wip-tcmalloc-nit

doc: fix TCMalloc spelling

Reviewed-by: Zac Dover <zac.dover@gmail.com>
5 years agocmake: remove cppcheck and iwyu targets 35042/head
Kefu Chai [Wed, 13 May 2020 12:28:12 +0000 (20:28 +0800)]
cmake: remove cppcheck and iwyu targets

these targets are not used by any other targets, and are not integrated with CI.
so let's drop them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33121 from tspmelo/wip-angular-9
Laura Paduano [Wed, 13 May 2020 12:33:24 +0000 (14:33 +0200)]
Merge pull request #33121 from tspmelo/wip-angular-9

mgr/dashboard: Update to Angular 9

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>