]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoscripts/run-cbt.sh: correct script option usage 35341/head
Changcheng Liu [Tue, 2 Jun 2020 01:55:41 +0000 (09:55 +0800)]
scripts/run-cbt.sh: correct script option usage

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agoMerge PR #34672 into master
Patrick Donnelly [Mon, 1 Jun 2020 18:21:34 +0000 (11:21 -0700)]
Merge PR #34672 into master

* refs/pull/34672/head:
qa/tasks/cephfs: Enable multiple exports tests
mgr/nfs: Instead of 'auth del' use 'auth rm'
qa/tasks/cephfs: Don't enable cephadm in TestNFS
qa/tasks/cephfs: Add tests for nfs exports
mgr/volumes/nfs: Fix idempotency of cluster and export commands
mgr/volumes/nfs: Fix incorrect read only access_type value
mgr/fs/nfs: Use check_mon_command() instead of mon_command()
qa/cephfs: Add tests for nfs
mgr/volumes/nfs: Remove type option from export create interface
vstart: Instead of CACHEINODE use MDCACHE
mgr/volumes: Rearrange nfs export interface
mgr/volumes/nfs: Delete common config object on cluster deletion
mgr/volumes/nfs: Delete all exports on cluster deletion
mgr/volumes: Make nfs create export interface idempotent
vstart: Add watch url for conf-nfs object
mgr/volumes/nfs: Delete user on removing export
mgr/volumes: Create user for given path and fs
vstart: Ensure cephadm and NFS does not conflict
vstart: Update details about ganesha packages
mgr/volumes/nfs: Add delete cephfs export command
mgr/volumes/nfs: Add RADOS notify for common config object
mgr/volumes/nfs: Pass cluster_id directly to NFSCluster {create, update, delete} methods
mgr/volumes: Add nfs cluster delete interface
mgr/volumes: Add nfs cluster update interface
vstart: Enable test_orchestrator in start_ganesha()
mgr/volumes: Add placement option to create nfs cluster interface
mgr/volumes/nfs: Change common ganesha config object name to 'conf-nfs.ganesha-<cluster_id>'
mgr/volumes/nfs: Call orch nfs apply

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35334 from changchengx/rwl_code_clean
Jason Dillaman [Mon, 1 Jun 2020 16:27:42 +0000 (12:27 -0400)]
Merge pull request #35334 from changchengx/rwl_code_clean

librbd/rwl: remove extra ';' after defining function

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35336 from tchaikov/wip-clang-cache
Kefu Chai [Mon, 1 Jun 2020 14:45:46 +0000 (22:45 +0800)]
Merge pull request #35336 from tchaikov/wip-clang-cache

pybind/*/setup.py: fix clang detection with ccache

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #35332 from idryomov/wip-rbd-read-flags
Jason Dillaman [Mon, 1 Jun 2020 12:14:17 +0000 (08:14 -0400)]
Merge pull request #35332 from idryomov/wip-rbd-read-flags

librbd: make rbd_read_from_replica_policy actually work

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agopybind/*/setup.py: fix clang detection with ccache 35336/head
Samuel Just [Tue, 19 May 2020 19:33:44 +0000 (12:33 -0700)]
pybind/*/setup.py: fix clang detection with ccache

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agolibrbd/rwl: remove extra ';' after defining function 35334/head
Changcheng Liu [Mon, 1 Jun 2020 08:43:14 +0000 (16:43 +0800)]
librbd/rwl: remove extra ';' after defining function

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agolibrbd: make rbd_read_from_replica_policy actually work 35332/head
Ilya Dryomov [Sat, 30 May 2020 17:03:20 +0000 (19:03 +0200)]
librbd: make rbd_read_from_replica_policy actually work

Commit d92be8b5856d ("librbd: Improved support for balanced and
localized reads") introduced read_flags, but used low-level Objecter
flags (CEPH_OSD_FLAG_*).  This is wrong because librbd sits on top of
librados, not Objecter.  "balance" ends up being translated into
IGNORE_REDIRECT and "localize" being ignored.

Fixes: https://tracker.ceph.com/issues/45798
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #35301 from dillaman/wip-45715
Mykola Golub [Sat, 30 May 2020 11:46:49 +0000 (14:46 +0300)]
Merge pull request #35301 from dillaman/wip-45715

librbd: Watcher should not attempt to re-watch after detecting blacklisting

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #35138 from maydaycc/wip-45313
Jason Dillaman [Fri, 29 May 2020 20:32:05 +0000 (16:32 -0400)]
Merge pull request #35138 from maydaycc/wip-45313

librbd: support duration controllable continuous burst

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35173 from trociny/wip-group-quiesce
Jason Dillaman [Fri, 29 May 2020 19:46:34 +0000 (15:46 -0400)]
Merge pull request #35173 from trociny/wip-group-quiesce

librbd: quiesce/unquiesce support for group_snap_create

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: support duration controllable continuous burst 35138/head
Wencong Wan [Tue, 19 May 2020 18:23:01 +0000 (02:23 +0800)]
librbd: support duration controllable continuous burst

Modify the design of token bucket to save more tokens than burst value,
so as to support continuous burst. The desired burst duration can be
controlled by rbd_qos_XYZ_burst_seconds.

Fixes: https://tracker.ceph.com/issues/45313
Signed-off-by: wencong wan <wanwc@chinatelecom.cn>
5 years agoqa/tasks/cephfs: Enable multiple exports tests 34672/head
Varsha Rao [Fri, 29 May 2020 18:06:34 +0000 (23:36 +0530)]
qa/tasks/cephfs: Enable multiple exports tests

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/nfs: Instead of 'auth del' use 'auth rm'
Varsha Rao [Fri, 29 May 2020 17:54:54 +0000 (23:24 +0530)]
mgr/nfs: Instead of 'auth del' use 'auth rm'

`mgr` profile allows 'auth rm'. Use it instead of 'auth del' which is not
allowed.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #35303 from hansbogert/patch-3
Jason Dillaman [Fri, 29 May 2020 13:25:37 +0000 (09:25 -0400)]
Merge pull request #35303 from hansbogert/patch-3

doc: rbd-mirroring: Explain snapshot mirroring

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35287 from gekios/wip-cephadm-bootstrapped-fix
Sebastian Wagner [Fri, 29 May 2020 12:04:16 +0000 (14:04 +0200)]
Merge pull request #35287 from gekios/wip-cephadm-bootstrapped-fix

qa/tasks/cephadm: Add check for already set image

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35006 from zdover23/wip-doc-45411-contain-latest-tag
Sebastian Wagner [Fri, 29 May 2020 11:43:48 +0000 (13:43 +0200)]
Merge pull request #35006 from zdover23/wip-doc-45411-contain-latest-tag

[doc/install]: Add note warning against the :latest tag.

Reviewed-by: Alexandra Settle <asettle@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoqa/tasks/cephfs: Don't enable cephadm in TestNFS
Varsha Rao [Fri, 29 May 2020 09:54:03 +0000 (15:24 +0530)]
qa/tasks/cephfs: Don't enable cephadm in TestNFS

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs: Add tests for nfs exports
Varsha Rao [Thu, 28 May 2020 10:57:25 +0000 (10:57 +0000)]
qa/tasks/cephfs: Add tests for nfs exports

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Fix idempotency of cluster and export commands
Varsha Rao [Thu, 28 May 2020 10:14:56 +0000 (15:44 +0530)]
mgr/volumes/nfs: Fix idempotency of cluster and export commands

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Fix incorrect read only access_type value
Varsha Rao [Tue, 26 May 2020 10:17:55 +0000 (15:47 +0530)]
mgr/volumes/nfs: Fix incorrect read only access_type value

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/fs/nfs: Use check_mon_command() instead of mon_command()
Varsha Rao [Tue, 26 May 2020 10:13:40 +0000 (15:43 +0530)]
mgr/fs/nfs: Use check_mon_command() instead of mon_command()

check_mon_command() checks the return code of mon command.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/cephfs: Add tests for nfs
Varsha Rao [Thu, 30 Apr 2020 10:10:52 +0000 (15:40 +0530)]
qa/cephfs: Add tests for nfs

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Remove type option from export create interface
Varsha Rao [Fri, 15 May 2020 17:56:13 +0000 (23:26 +0530)]
mgr/volumes/nfs: Remove type option from export create interface

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agovstart: Instead of CACHEINODE use MDCACHE
Varsha Rao [Fri, 15 May 2020 16:04:03 +0000 (21:34 +0530)]
vstart: Instead of CACHEINODE use MDCACHE

CACHEINODE will be deprecated soon. Instead use MDCACHE.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes: Rearrange nfs export interface
Varsha Rao [Thu, 14 May 2020 16:00:46 +0000 (21:30 +0530)]
mgr/volumes: Rearrange nfs export interface

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Delete common config object on cluster deletion
Varsha Rao [Thu, 14 May 2020 15:45:58 +0000 (21:15 +0530)]
mgr/volumes/nfs: Delete common config object on cluster deletion

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Delete all exports on cluster deletion
Varsha Rao [Thu, 14 May 2020 13:46:35 +0000 (19:16 +0530)]
mgr/volumes/nfs: Delete all exports on cluster deletion

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes: Make nfs create export interface idempotent
Varsha Rao [Thu, 14 May 2020 11:16:48 +0000 (16:46 +0530)]
mgr/volumes: Make nfs create export interface idempotent

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agovstart: Add watch url for conf-nfs object
Varsha Rao [Wed, 6 May 2020 10:20:12 +0000 (15:50 +0530)]
vstart: Add watch url for conf-nfs object

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Delete user on removing export
Varsha Rao [Tue, 5 May 2020 10:38:49 +0000 (16:08 +0530)]
mgr/volumes/nfs: Delete user on removing export

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes: Create user for given path and fs
Varsha Rao [Tue, 5 May 2020 10:09:48 +0000 (15:39 +0530)]
mgr/volumes: Create user for given path and fs

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agovstart: Ensure cephadm and NFS does not conflict
Varsha Rao [Mon, 4 May 2020 14:13:12 +0000 (19:43 +0530)]
vstart: Ensure cephadm and NFS does not conflict

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agovstart: Update details about ganesha packages
Varsha Rao [Mon, 4 May 2020 14:05:47 +0000 (19:35 +0530)]
vstart: Update details about ganesha packages

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Add delete cephfs export command
Varsha Rao [Tue, 28 Apr 2020 16:27:20 +0000 (21:57 +0530)]
mgr/volumes/nfs: Add delete cephfs export command

$ ceph nfs export delete <binding> <clusterid>

binding: It is the pseudo root name
clusterid: It is name of the cluster

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Add RADOS notify for common config object
Varsha Rao [Tue, 28 Apr 2020 11:49:32 +0000 (17:19 +0530)]
mgr/volumes/nfs: Add RADOS notify for common config object

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Pass cluster_id directly to NFSCluster {create, update, delete}...
Varsha Rao [Mon, 27 Apr 2020 11:30:03 +0000 (17:00 +0530)]
mgr/volumes/nfs: Pass cluster_id directly to NFSCluster {create, update, delete} methods

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes: Add nfs cluster delete interface
Varsha Rao [Thu, 23 Apr 2020 15:46:16 +0000 (21:16 +0530)]
mgr/volumes: Add nfs cluster delete interface

$ ceph nfs cluster delete <clusterid>

This deletes the deployed cluster.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes: Add nfs cluster update interface
Varsha Rao [Thu, 23 Apr 2020 13:40:48 +0000 (19:10 +0530)]
mgr/volumes: Add nfs cluster update interface

$ ceph nfs cluster update <clusterid> <placement>

This updates the existing deployed cluster according to placement value.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agovstart: Enable test_orchestrator in start_ganesha()
Varsha Rao [Tue, 21 Apr 2020 13:20:04 +0000 (18:50 +0530)]
vstart: Enable test_orchestrator in start_ganesha()

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes: Add placement option to create nfs cluster interface
Varsha Rao [Tue, 21 Apr 2020 12:53:04 +0000 (18:23 +0530)]
mgr/volumes: Add placement option to create nfs cluster interface

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Change common ganesha config object name to 'conf-nfs.ganesha-<clust...
Varsha Rao [Tue, 21 Apr 2020 09:56:57 +0000 (15:26 +0530)]
mgr/volumes/nfs: Change common ganesha config object name to 'conf-nfs.ganesha-<cluster_id>'

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Call orch nfs apply
Varsha Rao [Mon, 20 Apr 2020 06:12:18 +0000 (11:42 +0530)]
mgr/volumes/nfs: Call orch nfs apply

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoAdd note warning against the :latest tag. 35006/head
Zac Dover [Mon, 11 May 2020 17:04:17 +0000 (03:04 +1000)]
Add note warning against the :latest tag.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Incorporating mgfritch's improvements.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
s/docker/podman/ -- as per mgfritch's suggestion

Signed-off-by: Zac Dover <zac.dover@gmail.com>
s/: latest/:latest/

Signed-off-by: Zac Dover <zac.dover@gmail.com>
s/image ids/image IDs/ -- as per Alex Settle's suggestion.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Add note warning against the :latest tag.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
s/image ids/image IDs/ -- as per Alex Settle's suggestion.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Linked to container page from cephadm install page.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Clarified the note directing readers to the container documentation.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agoMerge pull request #35302 from neha-ojha/wip-45619
Kefu Chai [Fri, 29 May 2020 04:11:01 +0000 (12:11 +0800)]
Merge pull request #35302 from neha-ojha/wip-45619

qa/suites/rgw, qa/suites/rados: whitelist PG_AVAILABILITY

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35304 from neha-ojha/wip-45760
Neha Ojha [Fri, 29 May 2020 03:58:15 +0000 (20:58 -0700)]
Merge pull request #35304 from neha-ojha/wip-45760

qa/standalone/scrub/osd-scrub-snaps.sh: fix grep pattern

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #34622 from changchengx/libblkdrv
Kefu Chai [Fri, 29 May 2020 02:20:41 +0000 (10:20 +0800)]
Merge pull request #34622 from changchengx/libblkdrv

os/bluestore: extract common backend driver library to access device

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Review-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/standalone/scrub/osd-scrub-snaps.sh: fix grep pattern 35304/head
Neha Ojha [Thu, 28 May 2020 22:41:38 +0000 (22:41 +0000)]
qa/standalone/scrub/osd-scrub-snaps.sh: fix grep pattern

The error looks like this:

2020-05-28T20:56:30.214+0000 7f66cdecf700 -1 log_channel(cluster) log [ERR] : scrub 1.0 1:ab946124:::obj15:head : can't decode 'snapset' attr void SnapSet::decode(ceph::buffer::v15_2_0::list::const_iterator&) no longer understand old encoding version 3 < 97: Malformed input

Fixes: https://tracker.ceph.com/issues/45760
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agodoc: rbd-mirroring: Explain snapshot mirroring 35303/head
Hans Bogert [Thu, 28 May 2020 22:06:30 +0000 (00:06 +0200)]
doc: rbd-mirroring: Explain snapshot mirroring

* Rectify that snapshot based mirroring is point-in-time consistent
* Reword slightly s.t. there is less repetition.

Based on the discussion in https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/G6ZW5OP4IXGUBAJTKZDPABK7HCKYISQH/

Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
5 years agoMerge pull request #35280 from neha-ojha/wip-45660
Neha Ojha [Thu, 28 May 2020 21:14:40 +0000 (14:14 -0700)]
Merge pull request #35280 from neha-ojha/wip-45660

qa/standalone/scrub/osd-scrub-repair.sh: fix grep pattern to match decode exception

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agolibrbd: Watcher should not attempt to re-watch after detecting blacklisting 35301/head
Jason Dillaman [Thu, 28 May 2020 20:38:40 +0000 (16:38 -0400)]
librbd: Watcher should not attempt to re-watch after detecting blacklisting

Currently, the Watcher state machine will spin as fast as it can sending
re-watch requests to the OSD and then retrying after it fails with the
EBLACKLISTED error. Treat a blacklisting similarly to how removal of the
object is treated: stop attempting to re-watch.

Fixes: https://tracker.ceph.com/issues/45715
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoqa/suites/rgw/verify/tasks/cls.yaml: whitelist PG_AVAILABILITY 35302/head
Neha Ojha [Thu, 28 May 2020 19:30:46 +0000 (19:30 +0000)]
qa/suites/rgw/verify/tasks/cls.yaml: whitelist PG_AVAILABILITY

The balancer was turned on by default in
d4fbaf7ea959fd945857abd327271a97fb1da631, as a result of which we might see
PG_AVAILABILITY health warnings when pg-upmap-items are applied.

Fixes: https://tracker.ceph.com/issues/45619
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/*/tasks/rados_cls_all.yaml: whitelist PG_AVAILABILITY
Neha Ojha [Thu, 28 May 2020 19:16:56 +0000 (19:16 +0000)]
qa/*/tasks/rados_cls_all.yaml: whitelist PG_AVAILABILITY

The balancer was turned on by default in
d4fbaf7ea959fd945857abd327271a97fb1da631, as a result of which we might see
PG_AVAILABILITY health warnings when pg-upmap-items are applied.

Fixes: https://tracker.ceph.com/issues/45619
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoqa/tasks/cephadm: Add check fox already set image 35287/head
Georgios Kyratsas [Thu, 28 May 2020 10:42:37 +0000 (12:42 +0200)]
qa/tasks/cephadm: Add check fox already set image

Adding a check for already bootstrapped clusters where the image is
already set to avoid overriding it.

Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
5 years agoMerge pull request #35222 from smithfarm/wip-45606
Kefu Chai [Thu, 28 May 2020 07:17:34 +0000 (15:17 +0800)]
Merge pull request #35222 from smithfarm/wip-45606

osd: make "missing incremental map" a debug log message

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35194 from bk201/wip-45625
Kefu Chai [Thu, 28 May 2020 07:12:21 +0000 (15:12 +0800)]
Merge pull request #35194 from bk201/wip-45625

mgr/cephadm: config service_url in Dashboard for Prometheus and Alert…

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #33872 from majianpeng/osd-remove-duplicated-assert
Kefu Chai [Thu, 28 May 2020 07:06:37 +0000 (15:06 +0800)]
Merge pull request #33872 from majianpeng/osd-remove-duplicated-assert

osd/OSD: remove useless ceph_assert.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35221 from tchaikov/wip-22052
Kefu Chai [Thu, 28 May 2020 07:04:52 +0000 (15:04 +0800)]
Merge pull request #35221 from tchaikov/wip-22052

qa/valgrind.supp: less specific when suppressing issues/22052

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #34835 from jschmid1/osdspec_affinity
Kefu Chai [Thu, 28 May 2020 07:00:22 +0000 (15:00 +0800)]
Merge pull request #34835 from jschmid1/osdspec_affinity

osd: add --osdspec-affinity flag

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #35259 from tchaikov/wip-fmt-mingw
Kefu Chai [Thu, 28 May 2020 06:59:01 +0000 (14:59 +0800)]
Merge pull request #35259 from tchaikov/wip-fmt-mingw

fmt: pickup change for adding MinGW support

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agosrc: extract backend driver from bluestore to access device 34622/head
Changcheng Liu [Tue, 21 Apr 2020 05:38:53 +0000 (13:38 +0800)]
src: extract backend driver from bluestore to access device

1. Both bluestore or other component e.g. rbd could use the same
   driver to access storage device. It's better to use one library
   to integrate the driver.
2. os and crimson-alienstore are static libraries. Link blk library into
   them.

Main changes are below:
1. move backend driver into src/blk
   src/$ mkdir -p blk/{aio,kernel,spdk,pmem,zns}
   src/$ mv os/bluestore/{BlockDevice.h,BlockDevice.cc} blk
   src/$ mv os/bluestore/{ceph_aio.h} aio/aio.h
   src/$ mv os/bluestore/{aio.cc} aio/
   src/$ mv os/bluestore/{KernelDevice.h,KernelDevice.cc} kernel/
   src/$ mv os/bluestore/{ceph_io_uring.h} kernel/io_uring.h
   src/$ mv os/bluestore/{io_uring.cc} kernel_drv/
   src/$ mv os/bluestore/{NVMEDevice.h,NVMEDevice.cc} spdk/
   src/$ mv os/bluestore/{PMEMDevice.h,PMEMDevice.cc} pmem/
   src/$ mv os/bluestore/{HMSMRDevice.h,HMSMRDevice.cc} zns/
2. customize macro name in header file to remove bluestore specific text
3. adjust header file patch in source code
4. create cmake rule blk/CMakeLists.txt to build blk
5. modify src/CMakeLists.txt to integrate blk
6. modify other CMakeLists.txt to adapt to new file structure.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
Co-authored-by: Kefu Chai <kefu@redhat.com>
5 years agomgr: include retval in MonCommandFailed exception 35194/head
Kiefer Chang [Wed, 27 May 2020 06:43:37 +0000 (14:43 +0800)]
mgr: include retval in MonCommandFailed exception

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agomgr/cephadm: config service_url in Dashboard for Prometheus and AlertManager
Kiefer Chang [Fri, 22 May 2020 06:27:56 +0000 (14:27 +0800)]
mgr/cephadm: config service_url in Dashboard for Prometheus and AlertManager

Calling Dashboard's CLI to set service URLs after deploying Prometheus
and AlertManager Daemons.

Fixes: https://tracker.ceph.com/issues/45625
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoqa/standalone/scrub/osd-scrub-repair.sh: fix grep pattern to match decode exception 35280/head
Neha Ojha [Thu, 28 May 2020 00:26:36 +0000 (00:26 +0000)]
qa/standalone/scrub/osd-scrub-repair.sh: fix grep pattern to match decode exception

We fail because the error message in the log looks like:

2020-05-27T21:02:48.447+0000 7fbfc4e60700 -1 log_channel(cluster) log [ERR] : scrub 3.0 3:5c7b2c47:::ROBJ16:head : can't decode 'snapset' attr void SnapSet::decode(ceph::buffer::v15_2_0::list::const_iterator&) no longer understand old encoding version 3 < 97: Malformed input

Fixes: https://tracker.ceph.com/issues/45660
Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #35197 into master
Patrick Donnelly [Wed, 27 May 2020 17:08:12 +0000 (10:08 -0700)]
Merge PR #35197 into master

* refs/pull/35197/head:
os/Transaction: do not use anonymous aggregate with member having ctor
include/interval_set: no need to check if an unsigned greater or equal to 0
include/ceph_fs: do not use anonymous aggregate with member having ctor

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35229 from ricardoasmarques/wip-45696
Sebastian Wagner [Wed, 27 May 2020 16:14:01 +0000 (18:14 +0200)]
Merge pull request #35229 from ricardoasmarques/wip-45696

cephadm: Validate bootstrap "--dashboard-{key|crt}" path

Reviewed-by: Daniel-Pivonka <dpivonka@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #35106 from p-se/wip-pse-cephadm-custom-monitoring-images
Sebastian Wagner [Wed, 27 May 2020 16:12:05 +0000 (18:12 +0200)]
Merge pull request #35106 from p-se/wip-pse-cephadm-custom-monitoring-images

mgr/cephadm: allow custom images for grafana, prometheus, alertmanager and node_exporter

5 years agoMerge pull request #35159 from batrick/i45632
Sebastian Wagner [Wed, 27 May 2020 16:08:07 +0000 (18:08 +0200)]
Merge pull request #35159 from batrick/i45632

pybind/mgr/cephadm: remove mds auth cap for nfs recovery db cred

5 years agoMerge pull request #35266 from jschmid1/fix_previews_for_multimatch
Sebastian Wagner [Wed, 27 May 2020 16:06:08 +0000 (18:06 +0200)]
Merge pull request #35266 from jschmid1/fix_previews_for_multimatch

mgr/cephadm: fix host matching when multiple hosts match

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35195 from ricardoasmarques/allow-specify-ssh
Sebastian Wagner [Wed, 27 May 2020 16:05:14 +0000 (18:05 +0200)]
Merge pull request #35195 from ricardoasmarques/allow-specify-ssh

cephadm: Allow users to provide ssh keys during bootstrap

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #35273 from sebastian-philipp/qa-cephadm-mirror-ubuntu
Sebastian Wagner [Wed, 27 May 2020 16:01:17 +0000 (18:01 +0200)]
Merge pull request #35273 from sebastian-philipp/qa-cephadm-mirror-ubuntu

qa/cephadm: Docker doesn't ship a registries.conf

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #35267 into master
Patrick Donnelly [Wed, 27 May 2020 15:32:59 +0000 (08:32 -0700)]
Merge PR #35267 into master

* refs/pull/35267/head:
vstart_runner: set mounted to True at the end of mount()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agoMerge pull request #34974 from dungdm93/patch-1
Kefu Chai [Wed, 27 May 2020 14:00:47 +0000 (22:00 +0800)]
Merge pull request #34974 from dungdm93/patch-1

pybind/ceph_volume_client: Fix PEP-8 SyntaxWarning

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35012 from tchaikov/wip-45147
Kefu Chai [Wed, 27 May 2020 13:59:37 +0000 (21:59 +0800)]
Merge pull request #35012 from tchaikov/wip-45147

qa/tasks/mgr: skip test_diskprediction_local on python>=3.8

Reviewed-by: Yuri Weinstein <yuriw@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #35033 from badone/wip-test-the-right-rocksdb-version
Kefu Chai [Wed, 27 May 2020 13:58:16 +0000 (21:58 +0800)]
Merge pull request #35033 from badone/wip-test-the-right-rocksdb-version

qa/workunits/rados/test_envlibrados_rocksdb: Build correct rocksdb

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35032 from badone/wip-update-rocksdb-to-v6.8.1
Kefu Chai [Wed, 27 May 2020 13:56:49 +0000 (21:56 +0800)]
Merge pull request #35032 from badone/wip-update-rocksdb-to-v6.8.1

rocksdb: Updated to v6.8.1

Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoMerge pull request #35111 from agayev/hm-smr
Kefu Chai [Wed, 27 May 2020 13:55:50 +0000 (21:55 +0800)]
Merge pull request #35111 from agayev/hm-smr

os/bluestore: Enable writing data to HM-SMR hard drives.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35097 from matthewoliver/cephadm_iscsi_api_user_password
Kefu Chai [Wed, 27 May 2020 13:54:42 +0000 (21:54 +0800)]
Merge pull request #35097 from matthewoliver/cephadm_iscsi_api_user_password

cephadm: Make ceph-iscsi api user and password mandatory

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #35079 from liewegas/wip-dedup-tool
Kefu Chai [Wed, 27 May 2020 13:52:58 +0000 (21:52 +0800)]
Merge pull request #35079 from liewegas/wip-dedup-tool

ceph-dedup-tool: add new FastCDC chunker, and make estimate test a range of chunk sizes

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
5 years agoMerge pull request #35198 from varshar16/wip-cephadm-module-error
Kefu Chai [Wed, 27 May 2020 13:49:27 +0000 (21:49 +0800)]
Merge pull request #35198 from varshar16/wip-cephadm-module-error

qa/tasks/mgr: Don't disable cephadm module

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35128 from yuvalif/fix-amqp-urls-with-vhosts
Yuval Lifshitz [Wed, 27 May 2020 13:09:30 +0000 (16:09 +0300)]
Merge pull request #35128 from yuvalif/fix-amqp-urls-with-vhosts

rgw/url: fix amqp urls with vhosts

5 years agocommon/rabin: remove 35079/head
Sage Weil [Thu, 21 May 2020 16:01:24 +0000 (11:01 -0500)]
common/rabin: remove

The implementation is buggy, and slower than FastCDC.

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: default to fastcdc
Sage Weil [Thu, 21 May 2020 15:53:46 +0000 (10:53 -0500)]
ceph-dedup-tool: default to fastcdc

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agocommon/FastCDC: better behavior if TARGET_WINDOW_BITS==0
Sage Weil [Thu, 21 May 2020 15:36:28 +0000 (10:36 -0500)]
common/FastCDC: better behavior if TARGET_WINDOW_BITS==0

Skip the middle scan call entirely in that case.

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agocommon/FastCDC: add some comments
Sage Weil [Thu, 21 May 2020 15:03:28 +0000 (10:03 -0500)]
common/FastCDC: add some comments

Map terms back to those in the paper.

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agocommon/CDC: make calc_chunks const
Sage Weil [Sat, 16 May 2020 15:16:13 +0000 (10:16 -0500)]
common/CDC: make calc_chunks const

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agocommon/CDC: take const bufferlist
Sage Weil [Sat, 16 May 2020 15:13:26 +0000 (10:13 -0500)]
common/CDC: take const bufferlist

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agocommon/FastCDC: use bufferlist iterator
Sage Weil [Sat, 16 May 2020 15:02:57 +0000 (10:02 -0500)]
common/FastCDC: use bufferlist iterator

More complex, but we avoid a buffer copy/rebuild if it is non-contiguous.

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agocommon/FastCDC: simplify initial fingerprint calc
Sage Weil [Fri, 15 May 2020 17:06:55 +0000 (12:06 -0500)]
common/FastCDC: simplify initial fingerprint calc

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agocommon/FastCDC: refactor scan into a helper
Sage Weil [Fri, 15 May 2020 19:59:01 +0000 (14:59 -0500)]
common/FastCDC: refactor scan into a helper

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agounittest_cdc: generate fragmented buffers
Sage Weil [Sat, 16 May 2020 15:00:29 +0000 (10:00 -0500)]
unittest_cdc: generate fragmented buffers

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agounittest_cdc: add test with a specific chunking result
Sage Weil [Sat, 16 May 2020 14:28:11 +0000 (09:28 -0500)]
unittest_cdc: add test with a specific chunking result

Canary for alg changes

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: show object count explosion too
Sage Weil [Thu, 14 May 2020 20:46:57 +0000 (15:46 -0500)]
ceph-dedup-tool: show object count explosion too

Also show dedup ratio as dedup_size/original_size (1.0 = no dedup,
.9 = 10%, etc.)

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: show estimate progress
Sage Weil [Thu, 14 May 2020 20:11:32 +0000 (15:11 -0500)]
ceph-dedup-tool: show estimate progress

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: test a range of chunk sizes at once
Sage Weil [Thu, 14 May 2020 19:58:20 +0000 (14:58 -0500)]
ceph-dedup-tool: test a range of chunk sizes at once

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: add --max-seconds
Sage Weil [Thu, 14 May 2020 17:20:19 +0000 (12:20 -0500)]
ceph-dedup-tool: add --max-seconds

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: timeout -> report_period
Sage Weil [Thu, 14 May 2020 17:10:41 +0000 (12:10 -0500)]
ceph-dedup-tool: timeout -> report_period

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: use CDC class for chunking
Sage Weil [Thu, 14 May 2020 17:06:46 +0000 (12:06 -0500)]
ceph-dedup-tool: use CDC class for chunking

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: useful error messages
Sage Weil [Wed, 13 May 2020 20:00:20 +0000 (15:00 -0500)]
ceph-dedup-tool: useful error messages

Signed-off-by: Sage Weil <sage@newdream.net>
5 years agoceph-dedup-tool: EstimateThread -> CrawlerThread
Sage Weil [Wed, 13 May 2020 19:51:19 +0000 (14:51 -0500)]
ceph-dedup-tool: EstimateThread -> CrawlerThread

Signed-off-by: Sage Weil <sage@newdream.net>