]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agoosd: Revert "osd: avoid two copy with same src cancel each other" 40057/head
Kefu Chai [Fri, 12 Mar 2021 07:27:28 +0000 (15:27 +0800)]
osd: Revert "osd: avoid two copy with same src cancel each other"

This reverts commit 617f7114e261595e2e85970e171dcad41f283599.

Fixes: https://tracker.ceph.com/issues/49726
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #40034 into master
Sage Weil [Thu, 11 Mar 2021 23:52:03 +0000 (18:52 -0500)]
Merge PR #40034 into master

* refs/pull/40034/head:
qa/suites/rados/cephadm/upgrade: start at 15.2.9 to test iscsi upgrade
qa/tasks/cephadm.py: don't set mgr count to +1

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoqa/suites/rados/cephadm/upgrade: start at 15.2.9 to test iscsi upgrade 40034/head
Sage Weil [Thu, 11 Mar 2021 03:58:33 +0000 (22:58 -0500)]
qa/suites/rados/cephadm/upgrade: start at 15.2.9 to test iscsi upgrade

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/tasks/cephadm.py: don't set mgr count to +1
Sage Weil [Thu, 11 Mar 2021 16:58:15 +0000 (11:58 -0500)]
qa/tasks/cephadm.py: don't set mgr count to +1

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40007 from neha-ojha/wip-cc-weight
Neha Ojha [Thu, 11 Mar 2021 19:09:00 +0000 (11:09 -0800)]
Merge pull request #40007 from neha-ojha/wip-cc-weight

pybind/mgr/balancer/module.py: assign weight-sets to all buckets before balancing

Reviewed-by: David Zafman <dzafman@redhat.com>
4 years agoMerge PR #39845 into master
Patrick Donnelly [Thu, 11 Mar 2021 17:34:53 +0000 (09:34 -0800)]
Merge PR #39845 into master

* refs/pull/39845/head:
doc: clarify mirror daemon user capability requirements
doc: doc changes for additional mirroring interfaces
pybind/mirroring: add interface to list file system mirror peers
pybind/mirroring: set libcephfs handle root uid/gid as 0:0
test: add tests for mirroring bootstrap interfaces
pybind/mirroring: introduce peer_bootstrap {create|import} commands
cephfs-mirror: use peer cluster monitor address (and key) if available
mon: peer_add should accept Ceph file system UUID
mon: introduce "profile cephfs-mirror" cap constrained to "config-get cephfs/mirror/peer"
test: add test for failed filesystem mirror instances
cephfs-mirror: restart failed mirror filesystem instances

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39671 into master
Patrick Donnelly [Thu, 11 Mar 2021 17:23:03 +0000 (09:23 -0800)]
Merge PR #39671 into master

* refs/pull/39671/head:
doc: snap-schedule documentation

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 years agoMerge pull request #40006 from dillaman/wip-qa-rbd-rwl-ssd
Mykola Golub [Thu, 11 Mar 2021 13:59:33 +0000 (15:59 +0200)]
Merge pull request #40006 from dillaman/wip-qa-rbd-rwl-ssd

qa/suites/rbd: added SSD PWL cache mode to tests

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #39875 from zdover23/wip-doc-cephadm-adoption-overview-and-limitat...
Sebastian Wagner [Thu, 11 Mar 2021 11:19:37 +0000 (12:19 +0100)]
Merge pull request #39875 from zdover23/wip-doc-cephadm-adoption-overview-and-limitations-rewrite-2021-Mar-06

doc/cephadm: rewrite part of adoption.rst

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #40008 from mgfritch/cephadm-nfsv3-deprecate
Sebastian Wagner [Thu, 11 Mar 2021 11:06:20 +0000 (12:06 +0100)]
Merge pull request #40008 from mgfritch/cephadm-nfsv3-deprecate

doc/cephadm: add note about deprecation of NFSv3

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #39932 from mgfritch/custom-monitoring-j2
Sebastian Wagner [Thu, 11 Mar 2021 10:44:17 +0000 (11:44 +0100)]
Merge pull request #39932 from mgfritch/custom-monitoring-j2

doc/cephadm: update section on applying custom config (j2)

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agodoc: clarify mirror daemon user capability requirements 39845/head
Venky Shankar [Thu, 11 Mar 2021 04:31:45 +0000 (23:31 -0500)]
doc: clarify mirror daemon user capability requirements

Fixes: http://tracker.ceph.com/issues/49619
Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agodoc: doc changes for additional mirroring interfaces
Venky Shankar [Thu, 4 Mar 2021 04:29:03 +0000 (23:29 -0500)]
doc: doc changes for additional mirroring interfaces

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agopybind/mirroring: add interface to list file system mirror peers
Venky Shankar [Tue, 9 Mar 2021 04:44:29 +0000 (23:44 -0500)]
pybind/mirroring: add interface to list file system mirror peers

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agopybind/mirroring: set libcephfs handle root uid/gid as 0:0
Venky Shankar [Tue, 9 Mar 2021 11:18:20 +0000 (16:48 +0530)]
pybind/mirroring: set libcephfs handle root uid/gid as 0:0

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agotest: add tests for mirroring bootstrap interfaces
Venky Shankar [Thu, 4 Mar 2021 05:01:48 +0000 (00:01 -0500)]
test: add tests for mirroring bootstrap interfaces

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agopybind/mirroring: introduce peer_bootstrap {create|import} commands
Venky Shankar [Thu, 4 Mar 2021 05:07:43 +0000 (00:07 -0500)]
pybind/mirroring: introduce peer_bootstrap {create|import} commands

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agocephfs-mirror: use peer cluster monitor address (and key) if available
Venky Shankar [Tue, 23 Feb 2021 04:21:47 +0000 (23:21 -0500)]
cephfs-mirror: use peer cluster monitor address (and key) if available

This allows connecting to the peer cluster without having the cluster
configuration file on the primary cluster.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agomon: peer_add should accept Ceph file system UUID
Venky Shankar [Tue, 23 Feb 2021 04:06:19 +0000 (23:06 -0500)]
mon: peer_add should accept Ceph file system UUID

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agomon: introduce "profile cephfs-mirror" cap constrained to "config-get cephfs/mirror...
Venky Shankar [Thu, 4 Mar 2021 05:01:11 +0000 (00:01 -0500)]
mon: introduce "profile cephfs-mirror" cap constrained to "config-get cephfs/mirror/peer"

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agotest: add test for failed filesystem mirror instances
Venky Shankar [Mon, 8 Mar 2021 09:49:52 +0000 (04:49 -0500)]
test: add test for failed filesystem mirror instances

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agocephfs-mirror: restart failed mirror filesystem instances
Venky Shankar [Mon, 8 Mar 2021 09:48:56 +0000 (04:48 -0500)]
cephfs-mirror: restart failed mirror filesystem instances

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agoMerge pull request #40021 from xxhdx1985126/wip-io-sequencer-bug-fix
Kefu Chai [Thu, 11 Mar 2021 08:07:22 +0000 (16:07 +0800)]
Merge pull request #40021 from xxhdx1985126/wip-io-sequencer-bug-fix

crimson/osd: retrive client_requests' prev_op_id right before "start_op"

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: retrive client_requests' prev_op_id right before "start_op" 40021/head
Xuehan Xu [Wed, 10 Mar 2021 07:31:23 +0000 (15:31 +0800)]
crimson/osd: retrive client_requests' prev_op_id right before "start_op"

ClientRequest::prev_op_id should record its immediate predecessor in the
pipeline. If we capture sequencer's last_issued when creating the client
request, it may not represent that predecessor

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #39859 from jhonxue/master
Kefu Chai [Thu, 11 Mar 2021 04:10:10 +0000 (12:10 +0800)]
Merge pull request #39859 from jhonxue/master

osd: do not dump an osd multiple times

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39989 from athanatos/sjust/wip-fix-seastore-gc
Kefu Chai [Thu, 11 Mar 2021 03:20:31 +0000 (11:20 +0800)]
Merge pull request #39989 from athanatos/sjust/wip-fix-seastore-gc

crimson: btree_lba_manager and segment_cleaner fixes

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore/.../lba_btree_node_impl: fix lookup 39989/head
Samuel Just [Tue, 9 Mar 2021 04:42:54 +0000 (04:42 +0000)]
crimson/os/seastore/.../lba_btree_node_impl: fix lookup

lower_bound() here is wrong, use bound instead.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: add releasing state for segments pending close
Samuel Just [Tue, 9 Mar 2021 02:09:15 +0000 (18:09 -0800)]
crimson/os/seastore: add releasing state for segments pending close

This should fix a bug by which we might start scanning a segment a second
time as it is released and possibly even reused resulting in nonsensical
behavior.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge PR #39677 into master
Sage Weil [Thu, 11 Mar 2021 00:24:30 +0000 (19:24 -0500)]
Merge PR #39677 into master

* refs/pull/39677/head:
mgr/cephadm: add iscsi and nfs to upgrade
mgr/cephadm: update caps if necessary when getting keyring

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agomgr/cephadm: add iscsi and nfs to upgrade 39677/head
Adam King [Wed, 24 Feb 2021 21:44:57 +0000 (16:44 -0500)]
mgr/cephadm: add iscsi and nfs to upgrade

Fixes: https://tracker.ceph.com/issues/49462
Signed-off-by: Adam King <adking@redhat.com>
4 years agomgr/cephadm: update caps if necessary when getting keyring
Adam King [Wed, 24 Feb 2021 21:13:01 +0000 (16:13 -0500)]
mgr/cephadm: update caps if necessary when getting keyring

If the caps change from the old version to the new one it causes
issues in the upgrade. This allows the caps to be updated. Currently
only seeing this with iscsi but changing it for other as a precaution

Signed-off-by: Adam King <adking@redhat.com>
4 years agopybind/mgr/balancer/module.py: assign weight-sets to all buckets before balancing 40007/head
Neha Ojha [Tue, 9 Mar 2021 00:48:58 +0000 (00:48 +0000)]
pybind/mgr/balancer/module.py: assign weight-sets to all buckets before balancing

Add an additional check to make sure that the choose_args section has the same
number of buckets as the crushmap. If not, ensure that
get_compat_weight_set_weights assigns weight-sets to all buckets.

Without this change, if we end up with an orig_ws, which has fewer buckets
than the crushmap, the mgr will crash due a KeyError in do_crush_compat().

Fixes: https://tracker.ceph.com/issues/49576
Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agodoc/cephadm: add note about deprecation of NFSv3 40008/head
Michael Fritch [Wed, 10 Mar 2021 17:28:11 +0000 (10:28 -0700)]
doc/cephadm: add note about deprecation of NFSv3

Signed-off-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #39640 from sebastian-philipp/cephadm-cephfs-mirror
Sebastian Wagner [Wed, 10 Mar 2021 17:34:03 +0000 (18:34 +0100)]
Merge pull request #39640 from sebastian-philipp/cephadm-cephfs-mirror

cephadm: cephfs-mirror

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
4 years agodoc: snap-schedule documentation 39671/head
Jan Fajerski [Fri, 4 Sep 2020 13:12:55 +0000 (15:12 +0200)]
doc: snap-schedule documentation

Fixes: https://tracker.ceph.com/issues/48017
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
4 years agoqa/suites/rbd: added SSD PWL cache mode to tests 40006/head
Jason Dillaman [Wed, 10 Mar 2021 16:30:47 +0000 (11:30 -0500)]
qa/suites/rbd: added SSD PWL cache mode to tests

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39800 from MahatiC/wip-ssd-fixes
Jason Dillaman [Wed, 10 Mar 2021 15:35:43 +0000 (10:35 -0500)]
Merge pull request #39800 from MahatiC/wip-ssd-fixes

librbd/cache/pwl: Fix IO completion

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge PR #38913 into master
Patrick Donnelly [Wed, 10 Mar 2021 15:01:27 +0000 (07:01 -0800)]
Merge PR #38913 into master

* refs/pull/38913/head:
qa/tasks/cephfs/nfs: Add tests for updating fs exports
mgr/volumes/nfs: Handle rook restart error
doc/cephfs/nfs: Add about update export interface
mgr/volumes/nfs: Add command to update cephfs exports
pybind/volumes/nfs: set mds caps according to user specified access type
mgr/volumes/module: Remove unused json module

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39953 into master
Sage Weil [Wed, 10 Mar 2021 14:59:46 +0000 (09:59 -0500)]
Merge PR #39953 into master

* refs/pull/39953/head:
debian/ceph-common.postinst: do not chown cephadm log dirs

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/cephadm: add cephfs-mirror to CEPH_UPGRADE_ORDER 39640/head
Sebastian Wagner [Fri, 26 Feb 2021 12:34:52 +0000 (13:34 +0100)]
mgr/cephadm: add cephfs-mirror to CEPH_UPGRADE_ORDER

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agocephadm: Add cephfs-mirror
Sebastian Wagner [Tue, 23 Feb 2021 15:06:56 +0000 (16:06 +0100)]
cephadm: Add cephfs-mirror

Fixes: https://tracker.ceph.com/issues/47261
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoqa/cephadm: Add cephfs-mirror test
Sebastian Wagner [Tue, 23 Feb 2021 15:05:47 +0000 (16:05 +0100)]
qa/cephadm: Add cephfs-mirror test

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoqa/tasks: some type annotations
Sebastian Wagner [Tue, 23 Feb 2021 15:05:22 +0000 (16:05 +0100)]
qa/tasks: some type annotations

Mostly for making my IDE aware of things

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/orch: Add cephfs-mirror to enum
Sebastian Wagner [Tue, 23 Feb 2021 14:48:29 +0000 (15:48 +0100)]
mgr/orch: Add cephfs-mirror to enum

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/cephadm: Add CephfsMirrorService
Sebastian Wagner [Tue, 23 Feb 2021 13:45:02 +0000 (14:45 +0100)]
mgr/cephadm: Add CephfsMirrorService

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/orch: replace def add_{type}(...) with generic add_daemon()
Sebastian Wagner [Tue, 23 Feb 2021 14:42:01 +0000 (15:42 +0100)]
mgr/orch: replace def add_{type}(...) with generic add_daemon()

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/cephadm: drop `create_func` arg from _add_daemon
Sebastian Wagner [Tue, 23 Feb 2021 13:42:38 +0000 (14:42 +0100)]
mgr/cephadm: drop `create_func` arg from _add_daemon

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agomgr/cephadm: move CephadmExporter to new module
Sebastian Wagner [Tue, 23 Feb 2021 12:50:12 +0000 (13:50 +0100)]
mgr/cephadm: move CephadmExporter to new module

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge PR #39860 into master
Sage Weil [Wed, 10 Mar 2021 13:38:22 +0000 (08:38 -0500)]
Merge PR #39860 into master

* refs/pull/39860/head:
vstart,init-ceph: include build bin/ in $PATH

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #39619 from sebastian-philipp/rm_injected_argv
Sebastian Wagner [Wed, 10 Mar 2021 13:04:41 +0000 (14:04 +0100)]
Merge pull request #39619 from sebastian-philipp/rm_injected_argv

cephadm: remove injected_args

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #39877 from liewegas/cephadm-rgw-simplification
Sebastian Wagner [Wed, 10 Mar 2021 12:58:37 +0000 (13:58 +0100)]
Merge pull request #39877 from liewegas/cephadm-rgw-simplification

mgr/cephadm: simplify handling for rgw

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Or Friedmann <ofriedma@redhat.com>
4 years agoMerge pull request #39991 from tchaikov/wip-ninja-again
Kefu Chai [Wed, 10 Mar 2021 12:54:24 +0000 (20:54 +0800)]
Merge pull request #39991 from tchaikov/wip-ninja-again

ceph.spec: include ninja as BuildRequires

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge pull request #39878 from batrick/centos-8.3
Kefu Chai [Wed, 10 Mar 2021 12:46:20 +0000 (20:46 +0800)]
Merge pull request #39878 from batrick/centos-8.3

qa/distros: add centos 8.3

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39793 from rhcs-dashboard/replace-inventory-devices-title
Ernesto Puerta [Wed, 10 Mar 2021 12:45:41 +0000 (13:45 +0100)]
Merge pull request #39793 from rhcs-dashboard/replace-inventory-devices-title

mgr/dashboard: cluster > hosts: replace inventory->devices table title

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
4 years agoMerge pull request #39882 from tchaikov/wip-osd-watch
Kefu Chai [Wed, 10 Mar 2021 12:43:51 +0000 (20:43 +0800)]
Merge pull request #39882 from tchaikov/wip-osd-watch

osd/Watch: use vector<> instead of list<>

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #39897 from Rethan/clean-msgr-type
Kefu Chai [Wed, 10 Mar 2021 12:38:43 +0000 (20:38 +0800)]
Merge pull request #39897 from Rethan/clean-msgr-type

msg/Messenger: remove unused variable r

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39937 from tchaikov/wip-49661
Kefu Chai [Wed, 10 Mar 2021 12:37:35 +0000 (20:37 +0800)]
Merge pull request #39937 from tchaikov/wip-49661

mgr: add mon metada using type of "mon"

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #39541 from pcuzner/config-checker
Sebastian Wagner [Wed, 10 Mar 2021 12:37:10 +0000 (13:37 +0100)]
Merge pull request #39541 from pcuzner/config-checker

mgr/cephadm: Provide an integrated configuration validation feature

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #39905 from tchaikov/wip-lock-deps
Kefu Chai [Wed, 10 Mar 2021 12:34:45 +0000 (20:34 +0800)]
Merge pull request #39905 from tchaikov/wip-lock-deps

common/lockdep: increase MAX_LOCKS to 128k

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
4 years agoMerge pull request #39503 from rhcs-dashboard/fix-ssl-certificate-code
Ernesto Puerta [Wed, 10 Mar 2021 12:11:42 +0000 (13:11 +0100)]
Merge pull request #39503 from rhcs-dashboard/fix-ssl-certificate-code

mgr/dashboard: fix dashboard instance ssl certificate functionality

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #39599 from pcuzner/cephadm-with-lsm
Sebastian Wagner [Wed, 10 Mar 2021 11:14:37 +0000 (12:14 +0100)]
Merge pull request #39599 from pcuzner/cephadm-with-lsm

mgr/cephadm:Enable cephadm device scan to use libstoragemgmt

Reviewed-by: Dan Mick <dmick@redhat.com>
4 years agoMerge pull request #39924 from Daniel-Pivonka/osdrmstoptraceback
Sebastian Wagner [Wed, 10 Mar 2021 11:09:47 +0000 (12:09 +0100)]
Merge pull request #39924 from Daniel-Pivonka/osdrmstoptraceback

mgr/cephadm: prevent traceback when invalid osd id passed to 'orch osd rm stop'

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoceph.spec: include ninja as BuildRequires 39991/head
Kefu Chai [Thu, 4 Mar 2021 04:06:22 +0000 (12:06 +0800)]
ceph.spec: include ninja as BuildRequires

to ease the build for developers using SUSE, Fedora, CentOS or RHEL.
so install-deps.sh can install ninja for them.

Fixes: https://tracker.ceph.com/issues/49694
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39828 from athanatos/sjust/wip-seastore-omap2
Kefu Chai [Wed, 10 Mar 2021 08:56:23 +0000 (16:56 +0800)]
Merge pull request #39828 from athanatos/sjust/wip-seastore-omap2

crimson/seastore: start wiring up collection_manager, omap_manager, onode_manager

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/.../staged-fltree/value.cc: return ValueDeltaRecorder for ONODE 39828/head
Samuel Just [Wed, 10 Mar 2021 07:25:54 +0000 (07:25 +0000)]
crimson/.../staged-fltree/value.cc: return ValueDeltaRecorder for ONODE

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/seastore/onode_tree: add FLTreeOnodeManager unittest
Samuel Just [Mon, 8 Mar 2021 20:38:01 +0000 (12:38 -0800)]
crimson/seastore/onode_tree: add FLTreeOnodeManager unittest

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/.../fltree_onode_manager: fill in delta recorder
Samuel Just [Tue, 9 Mar 2021 03:57:03 +0000 (19:57 -0800)]
crimson/os/seastore/.../fltree_onode_manager: fill in delta recorder

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/seastore.cc: wire up omap_manager
Samuel Just [Tue, 23 Feb 2021 05:20:58 +0000 (21:20 -0800)]
crimson/os/seastore/seastore.cc: wire up omap_manager

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/omap_manager: generalize omap_list to support lower_bound
Samuel Just [Tue, 2 Mar 2021 20:25:13 +0000 (12:25 -0800)]
crimson/os/seastore/omap_manager: generalize omap_list to support lower_bound

The iterator interface needs both lower and upper bound, generalize list()
to support both.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os: remove FuturizedStore::OmapIterator::tail_key
Samuel Just [Thu, 25 Feb 2021 05:45:21 +0000 (21:45 -0800)]
crimson/os: remove FuturizedStore::OmapIterator::tail_key

This doesn't actually make sense for FuturzizedStore implementations other
than BlueStore, and then only in a diagnostic capacity.  It also doesn't
have any actual users at the moment.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/onode_manager: remove create_ephemeral
Samuel Just [Thu, 21 Jan 2021 22:34:12 +0000 (14:34 -0800)]
crimson/os/seastore/onode_manager: remove create_ephemeral

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: wire up FLTreeOnodeManager and FlatCollectionManager
Samuel Just [Thu, 11 Feb 2021 02:58:58 +0000 (18:58 -0800)]
crimson/os/seastore: wire up FLTreeOnodeManager and FlatCollectionManager

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/onode_manager: introduce FLTreeOnodeManager
Samuel Just [Tue, 2 Mar 2021 20:35:06 +0000 (12:35 -0800)]
crimson/os/seastore/onode_manager: introduce FLTreeOnodeManager

Adjusts OnodeManager interface and introduces FLTreeOnodeManager
implementation.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/onode_manager: remove simple-fltree
Samuel Just [Thu, 28 Jan 2021 23:57:59 +0000 (23:57 +0000)]
crimson/os/seastore/onode_manager: remove simple-fltree

Doesn't actually have a TransactionManager implementation, and
it needs substantial changes to adapt to changes in Onode.
We can resurrect it in the future if we want to.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #39982 from tchaikov/wip-doc-theme
Kefu Chai [Wed, 10 Mar 2021 04:55:49 +0000 (12:55 +0800)]
Merge pull request #39982 from tchaikov/wip-doc-theme

doc: fine tune the theme, fix formatting in mount.ceph

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agodoc/man/8/mount.ceph: fix the formatting 39982/head
Kefu Chai [Wed, 10 Mar 2021 04:23:35 +0000 (12:23 +0800)]
doc/man/8/mount.ceph: fix the formatting

* fix the indent of item
* add an empty line before code block

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/start: fix the link pointing to ceph doc
Kefu Chai [Wed, 10 Mar 2021 04:07:40 +0000 (12:07 +0800)]
doc/start: fix the link pointing to ceph doc

use https instead of http, the latter cannot be redirected to the valid
docs. also, we don't have "next" branch, so remove the document
mentioning it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_themes: fine tune styling
Kefu Chai [Wed, 10 Mar 2021 03:08:47 +0000 (11:08 +0800)]
doc/_themes: fine tune styling

* fix the "dl" (definition list) display in manpage. before this
  change, if an item in dl is composed of strings with different fonts,
  it is cluttered into a single string. after this change, they are
  separated with proper spacing as before. see the "WORKLOAD" section in
  https://docs.ceph.com/en/latest/man/8/ceph-syn/ and
  https://docs.ceph.com/en/octopus/man/8/ceph-syn/
* reduce the spacing in "ul" (unordered list) in table. before
  this change, we have large spacing at end of a list in table. after
  this change, the spacing is reduced. see
  https://docs.ceph.com/en/latest/start/hardware-recommendations/#ram
  https://docs.ceph.com/en/octopus/start/hardware-recommendations/#ram
* increase the spacing between two "ul"s in table. see
  https://docs.ceph.com/en/latest/start/hardware-recommendations/#Processor
  https://docs.ceph.com/en/octopus/start/hardware-recommendations/#ram

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/cephadm: remove step to restart the mgr 39932/head
Michael Fritch [Wed, 10 Mar 2021 04:06:27 +0000 (21:06 -0700)]
doc/cephadm: remove step to restart the mgr

a restart of the mgr does not appear to be necessary
after a `ceph config-key set ...`

Signed-off-by: Michael Fritch <mfritch@suse.com>
4 years agodoc/cephadm: use `reconfig` instead of `redeploy`
Michael Fritch [Wed, 10 Mar 2021 04:06:20 +0000 (21:06 -0700)]
doc/cephadm: use `reconfig` instead of `redeploy`

`reconfig` can be used to apply a change to either
the tls/ssl cert or a custom configuration file (j2)

Signed-off-by: Michael Fritch <mfritch@suse.com>
4 years agodoc/cephadm: update custom j2 config-key name
Michael Fritch [Wed, 10 Mar 2021 04:06:12 +0000 (21:06 -0700)]
doc/cephadm: update custom j2 config-key name

introduced by:
cd79c9912ab35ee6296d613edc7830410a141e05

Signed-off-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #39981 from xxhdx1985126/wip-obc-tri_mutex-bug
Kefu Chai [Wed, 10 Mar 2021 03:43:36 +0000 (11:43 +0800)]
Merge pull request #39981 from xxhdx1985126/wip-obc-tri_mutex-bug

crimson/osd: fix two obc lock related bugs

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/common: use excl_lock_from_excl when promoting tri_mutex from excl to excl 39981/head
Xuehan Xu [Tue, 9 Mar 2021 03:06:26 +0000 (11:06 +0800)]
crimson/common: use excl_lock_from_excl when promoting tri_mutex from excl to excl

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson/osd: acquire locks strictly by OSDOp type
Xuehan Xu [Mon, 8 Mar 2021 07:51:49 +0000 (15:51 +0800)]
crimson/osd: acquire locks strictly by OSDOp type

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #39826 from tchaikov/wip-ninja
Kefu Chai [Wed, 10 Mar 2021 00:30:13 +0000 (08:30 +0800)]
Merge pull request #39826 from tchaikov/wip-ninja

run-make: switch over to ninja-build

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #39946 from TheJJ/fix-ceph-crash-caps
zdover23 [Tue, 9 Mar 2021 23:38:37 +0000 (09:38 +1000)]
Merge pull request #39946 from TheJJ/fix-ceph-crash-caps

doc/mgr/crash: explain needed crash upload permissions

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge PR #39955 into master
Sage Weil [Tue, 9 Mar 2021 22:32:59 +0000 (17:32 -0500)]
Merge PR #39955 into master

* refs/pull/39955/head:
mgr/cephadm: do not prime service cache on reconfig

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge PR #37711 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:41:53 +0000 (13:41 -0800)]
Merge PR #37711 into master

* refs/pull/37711/head:
qa/cephfs: create class LocalCephFSMount
vstart_runner: reuse FuseMount methods in LocalFuseMount
vstart_runner: reuse KernelMount methods in LocalKernelMount
qa/cephfs: move common and generic methods mount.py
qa/cephfs: refactor FuseMount.mount method
qa/cephfs: refactor KernelMount.mount method

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #37945 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:41:00 +0000 (13:41 -0800)]
Merge PR #37945 into master

* refs/pull/37945/head:
mds: add opened files/inodes and pinned i_caps metric payload support

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39408 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:40:09 +0000 (13:40 -0800)]
Merge PR #39408 into master

* refs/pull/39408/head:
test: add test for validating cephfs-mirror daemon service status
pybind/mirroring: interface to fetch mirror daemon status
cephfs-mirror: register mirror daemon with service manager
cephfs-mirror: remove unneeded json_spirit header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39502 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:38:57 +0000 (13:38 -0800)]
Merge PR #39502 into master

* refs/pull/39502/head:
qa: add sleep for blocklisting to take effect

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #39687 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:37:35 +0000 (13:37 -0800)]
Merge PR #39687 into master

* refs/pull/39687/head:
tools/cephfs-shell: continue file listing even on error
tools/cephfs-shell: refactoring of code related listing
tools/cephfs-shell: fix listing of symbolic links

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39814 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:36:40 +0000 (13:36 -0800)]
Merge PR #39814 into master

* refs/pull/39814/head:
qa/cephfs: move is_blocklisted() to filesystem.CephCluster

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agopython-common: continue to allow RGWSpec(realm=r,zone=z) 39877/head
Sage Weil [Mon, 8 Mar 2021 14:49:14 +0000 (09:49 -0500)]
python-common: continue to allow RGWSpec(realm=r,zone=z)

This is for backward compatibility: an octopus spec yaml can still be
applied to an existing cluster.  Note that it might not work on a new
cluster, since cephadm no longer tries to create the realm or zone if
they don't exist.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoPendingReleaseNodes: note changes in cephadm rgw behavior
Sage Weil [Mon, 8 Mar 2021 14:47:57 +0000 (09:47 -0500)]
PendingReleaseNodes: note changes in cephadm rgw behavior

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/tasks/cephadm: drop realm.zone convention for rgw
Sage Weil [Fri, 5 Mar 2021 21:30:20 +0000 (16:30 -0500)]
qa/tasks/cephadm: drop realm.zone convention for rgw

Note that cephadm.py will no longer do anything with rgw realms and
zones.  That means that the setup of rgw roles here is only useful
for the default zone and a non-multisite config.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agodoc: update docs
Sage Weil [Tue, 9 Mar 2021 19:29:39 +0000 (14:29 -0500)]
doc: update docs

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/cephadm: do not prime service cache on reconfig 39955/head
Sage Weil [Tue, 9 Mar 2021 18:15:20 +0000 (12:15 -0600)]
mgr/cephadm: do not prime service cache on reconfig

Ceph daemon reconfig does not need any daemon state refresh since we don't
do a restart--we just rewrite the ceph.conf.  This also avoids priming
our cache with a 'starting' state when the daemon wasn't touched.

Fixes: https://tracker.ceph.com/issues/49675
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agodebian/ceph-common.postinst: do not chown cephadm log dirs 39953/head
Sage Weil [Tue, 9 Mar 2021 17:56:42 +0000 (11:56 -0600)]
debian/ceph-common.postinst: do not chown cephadm log dirs

The container uid/gid is different than the debian uid/gid (because the
container is centos-based and we got a different uid/gid allocation there).

Fixes: https://tracker.ceph.com/issues/49677
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39948 from tchaikov/wip-clang-tidy
Kefu Chai [Tue, 9 Mar 2021 17:25:14 +0000 (01:25 +0800)]
Merge pull request #39948 from tchaikov/wip-clang-tidy

crimson,common: cleanups inspired by clang-tidy

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>