]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agomgr/cephadm: tolerate failure to update daemon caps 40071/head
Sage Weil [Mon, 15 Mar 2021 16:55:36 +0000 (11:55 -0500)]
mgr/cephadm: tolerate failure to update daemon caps

If we're upgrading from 15.2.0, we may fail to update caps.  Instead of
failing the upgrade hard, warn to the log and continue.  This is less
than ideal, but the caps will get corrected the next time the daemon is
redeployed on the next upgrade, and most likely the previous caps will
continue to work (given they were presumably working before the upgrade).

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomgr/cephadm: fix get_keyring_with_caps
Sage Weil [Fri, 12 Mar 2021 16:15:35 +0000 (10:15 -0600)]
mgr/cephadm: fix get_keyring_with_caps

1- Pass caps to 'auth get-or-create'
2- Only try 'auth caps' if the get-or-create failed

Note that the 'auth caps' step can fail if upgrading from 15.2.0 since
'profile mgr' didn't include 'auth caps' until 15.2.1.  We're not
addressing that for now...

Fixes: 7c0d532f3a4839f4199a13773fb5fa8b6fb3f183
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40010 from dillaman/wip-49716
Mykola Golub [Fri, 12 Mar 2021 15:17:32 +0000 (17:17 +0200)]
Merge pull request #40010 from dillaman/wip-49716

librbd: allow interrupted trash move request to be restarted

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #40068 from tchaikov/wip-readme-ninja
Kefu Chai [Fri, 12 Mar 2021 14:22:37 +0000 (22:22 +0800)]
Merge pull request #40068 from tchaikov/wip-readme-ninja

README.md: correct notes on `-j` option

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoREADME.md: correct notes on `-j` option 40068/head
Kefu Chai [Fri, 12 Mar 2021 13:27:29 +0000 (21:27 +0800)]
README.md: correct notes on `-j` option

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40057 from tchaikov/wip-49726
Kefu Chai [Fri, 12 Mar 2021 13:36:59 +0000 (21:36 +0800)]
Merge pull request #40057 from tchaikov/wip-49726

Revert "osd: avoid two copy with same src cancel each other"

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #40004 from vshankar/wip-cephfs-mirror-symlink-overrun
Venky Shankar [Fri, 12 Mar 2021 12:50:24 +0000 (18:20 +0530)]
Merge pull request #40004 from vshankar/wip-cephfs-mirror-symlink-overrun

cephfs-mirror: fix possible incorrect symbolic link synchronization

4 years agoMerge pull request #38476 from aclamk/wip-bs-alloc-check
Kefu Chai [Fri, 12 Mar 2021 12:31:56 +0000 (20:31 +0800)]
Merge pull request #38476 from aclamk/wip-bs-alloc-check

os/bluestore: add asserts for allocator regions

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #39670 from myoungwon/wip-fix-missing-snap-manifest
Kefu Chai [Fri, 12 Mar 2021 12:26:01 +0000 (20:26 +0800)]
Merge pull request #39670 from myoungwon/wip-fix-missing-snap-manifest

osd: fix missing adjacent snaps when handling manifest object

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #39941 from tchaikov/wip-mgr-localpool-ann
Kefu Chai [Fri, 12 Mar 2021 12:09:21 +0000 (20:09 +0800)]
Merge pull request #39941 from tchaikov/wip-mgr-localpool-ann

mgr/localpool: add type annotations

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge pull request #39994 from Rishabh4275/master
Kefu Chai [Fri, 12 Mar 2021 12:03:04 +0000 (20:03 +0800)]
Merge pull request #39994 from Rishabh4275/master

os/bluestore: Fix zoned code location in _do_truncate

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #39992 from tchaikov/wip-byteorder-endian
Kefu Chai [Fri, 12 Mar 2021 12:02:30 +0000 (20:02 +0800)]
Merge pull request #39992 from tchaikov/wip-byteorder-endian

include/byteorder: drop init_le*() helpers

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
4 years agoMerge pull request #39998 from tchaikov/wip-rwlock
Kefu Chai [Fri, 12 Mar 2021 12:00:57 +0000 (20:00 +0800)]
Merge pull request #39998 from tchaikov/wip-rwlock

src/: do not include RWLock.h unless RWLock is used

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #39410 from sebastian-philipp/drive-group-validate-data-devices...
Sebastian Wagner [Fri, 12 Mar 2021 11:40:40 +0000 (12:40 +0100)]
Merge pull request #39410 from sebastian-philipp/drive-group-validate-data-devices-none

python-common: Verify data_devices is not None

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #39857 from adk3798/dup-labels
Sebastian Wagner [Fri, 12 Mar 2021 11:04:54 +0000 (12:04 +0100)]
Merge pull request #39857 from adk3798/dup-labels

mgr/cephadm: remove duplicate labels when adding a host

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agotest: add symbolic link synchronization test for cephfs-mirror 40004/head
Venky Shankar [Wed, 10 Mar 2021 13:40:40 +0000 (08:40 -0500)]
test: add symbolic link synchronization test for cephfs-mirror

Fixes: http://tracker.ceph.com/issues/49711
Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agocephfs-mirror: null terminate buffer before synchronizing symbolc link
Venky Shankar [Wed, 10 Mar 2021 13:37:47 +0000 (08:37 -0500)]
cephfs-mirror: null terminate buffer before synchronizing symbolc link

Signed-off-by: Venky Shankar <vshankar@redhat.com>
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 pull request #40053 from rishabh-d-dave/readme-update
Kefu Chai [Fri, 12 Mar 2021 04:36:06 +0000 (12:36 +0800)]
Merge pull request #40053 from rishabh-d-dave/readme-update

README.md: replace "make" with "ninja"

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoREADME.md: replace "make" by "ninja" 40053/head
Rishabh Dave [Fri, 12 Mar 2021 04:21:39 +0000 (09:51 +0530)]
README.md: replace "make" by "ninja"

Update README.md since ninja is the default generator now.

Signed-off-by: Rishabh Dave <ridave@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 agorbd: clarify trash remove error code from interrupted move 40010/head
Jason Dillaman [Wed, 10 Mar 2021 20:31:22 +0000 (15:31 -0500)]
rbd: clarify trash remove error code from interrupted move

Fixes: https://tracker.ceph.com/issues/49716
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/trash: don't return -ENOENT error from move state machine
Jason Dillaman [Wed, 10 Mar 2021 20:37:39 +0000 (15:37 -0500)]
librbd/trash: don't return -ENOENT error from move state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/api: trash remove/purge should indicate interrupted move
Jason Dillaman [Wed, 10 Mar 2021 20:29:11 +0000 (15:29 -0500)]
librbd/api: trash remove/purge should indicate interrupted move

This will help the user self-diagnose that a trash move operation
was interrupted and therefore the state is invalid.

Signed-off-by: Jason Dillaman <dillaman@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 agoos/bluestore: Synchronize AvlAllocator device_size and block_size with other Allocators. 38476/head
Adam Kupczyk [Mon, 15 Feb 2021 13:17:25 +0000 (14:17 +0100)]
os/bluestore: Synchronize AvlAllocator device_size and block_size with other Allocators.

Modify AvlAllocator to use device_size and block_size from Allocator.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
4 years agoos/bluestore: Added asserts for allocator regions
Adam Kupczyk [Mon, 7 Dec 2020 13:57:04 +0000 (14:57 +0100)]
os/bluestore: Added asserts for allocator regions

Functions release/init_add_free/init_rm_free did not check its input against device size.
It is incorrect and had been a problem when you shrink device.

Signed-off-by: Adam Kupczyk <akupczyk@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 agolibrbd/api: allow an interrupted trash move to be restarted
Jason Dillaman [Wed, 10 Mar 2021 20:15:26 +0000 (15:15 -0500)]
librbd/api: allow an interrupted trash move to be restarted

Search the trash entries for a matching image name that is
still in the moving state and allow the operation to be
restarted.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoos/bluestore: Fix zoned code location in _do_truncate 39994/head
Rishabh Chawla [Wed, 10 Mar 2021 20:05:17 +0000 (12:05 -0800)]
os/bluestore: Fix zoned code location in _do_truncate

Signed-off-by: Rishabh Chawla <rishabhchawla1995@gmail.com>
4 years agolibrbd/api: helper method for natively listing the trash
Jason Dillaman [Wed, 10 Mar 2021 19:44:36 +0000 (14:44 -0500)]
librbd/api: helper method for natively listing the trash

The existing list method converts the native TrashImageSpec to the
API's rbd_trash_image_info_t which is missing the source field.

Signed-off-by: Jason Dillaman <dillaman@redhat.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 agoinclude/byteorder: drop init_le*() helpers 39992/head
Kefu Chai [Wed, 10 Mar 2021 08:10:37 +0000 (16:10 +0800)]
include/byteorder: drop init_le*() helpers

they are not used anymore, so drop them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agolibrbd: use s/init_le*/ceph_le*/
Kefu Chai [Wed, 10 Mar 2021 08:10:02 +0000 (16:10 +0800)]
librbd: use s/init_le*/ceph_le*/

for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocls/rgw, rgw: use s/init_le*/ceph_le*/
Kefu Chai [Wed, 10 Mar 2021 08:09:13 +0000 (16:09 +0800)]
cls/rgw, rgw: use s/init_le*/ceph_le*/

for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoauth,msg,common: test: use s/init_le*/ceph_le*/
Kefu Chai [Wed, 10 Mar 2021 08:08:36 +0000 (16:08 +0800)]
auth,msg,common: test: use s/init_le*/ceph_le*/

for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest: use s/init_le*/ceph_le*/
Kefu Chai [Wed, 10 Mar 2021 08:05:32 +0000 (16:05 +0800)]
test: use s/init_le*/ceph_le*/

for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson: switch to ceph_le*() constructors
Kefu Chai [Wed, 10 Mar 2021 07:59:13 +0000 (15:59 +0800)]
crimson: switch to ceph_le*() constructors

instead of using init_le*() helpers, use ceph_le*() constructors for
better readability.

Signed-off-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 agotest/librbd: s/RWLock/share_lock/ 39998/head
Kefu Chai [Wed, 10 Mar 2021 13:00:55 +0000 (21:00 +0800)]
test/librbd: s/RWLock/share_lock/

to consolidate the code base further, we don't need to use the
homebrewed shared lock unless the std::shared_mutex cannot fufill our
needs.

Signed-off-by: Kefu Chai <kchai@redhat.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 agorgw/rgw_common: silence Wsign-compare warning
Kefu Chai [Wed, 10 Mar 2021 11:24:12 +0000 (19:24 +0800)]
rgw/rgw_common: silence Wsign-compare warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/librados_test_stub: do not include unused RWLock.h
Kefu Chai [Wed, 10 Mar 2021 11:23:04 +0000 (19:23 +0800)]
test/librados_test_stub: do not include unused RWLock.h

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agolibrbd,rbd_mirror: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:22:23 +0000 (19:22 +0800)]
librbd,rbd_mirror: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocommon: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:21:40 +0000 (19:21 +0800)]
common: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:20:43 +0000 (19:20 +0800)]
mgr: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoos: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:20:13 +0000 (19:20 +0800)]
os: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>