]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocephadm: Check for pool existance for iscsi And NFS 34698/head
Matthew Oliver [Thu, 23 Apr 2020 01:07:19 +0000 (11:07 +1000)]
cephadm: Check for pool existance for iscsi And NFS

Currently both iscsi and NFS require pools to be specified when they are
deployed. However, we don't actaully check these pools exist. Leading to
broken containers.

This patch uses the rados client that is part of the mgrmodule to check
that the specified pool exists. As we need to check in 2 different
daemons, a helper method:

   def _check_pool_exists(self, pool, service_name):

was added to `cephadm/module.py`.

Fixes: https://tracker.ceph.com/issues/45161
Signed-off-by: Matthew Oliver <moliver@suse.com>
5 years agoMerge pull request #34430 from yison/rwl-image-writeback-cache-seq4
Jason Dillaman [Wed, 22 Apr 2020 23:28:17 +0000 (19:28 -0400)]
Merge pull request #34430 from yison/rwl-image-writeback-cache-seq4

rbd/cache: Replicated Write Log core codes part 4

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34669 from yuvalif/remove_queue_dependency
Casey Bodley [Wed, 22 Apr 2020 14:35:48 +0000 (10:35 -0400)]
Merge pull request #34669 from yuvalif/remove_queue_dependency

cls/2pc_queue: remove the dependency of cls_2pc_queue with cls_queue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34664 from yuvalif/clarify_topic_creation_format
Casey Bodley [Wed, 22 Apr 2020 14:35:28 +0000 (10:35 -0400)]
Merge pull request #34664 from yuvalif/clarify_topic_creation_format

rgw/doc: clarify topic creation format

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34613 from cbodley/wip-44661
Casey Bodley [Wed, 22 Apr 2020 14:06:06 +0000 (10:06 -0400)]
Merge pull request #34613 from cbodley/wip-44661

rgw: use DEFER_DROP_PRIVILEGES flag unconditionally

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
5 years agoMerge pull request #34621 from mgfritch/cephadm-test-cleanup
Sebastian Wagner [Wed, 22 Apr 2020 12:38:16 +0000 (14:38 +0200)]
Merge pull request #34621 from mgfritch/cephadm-test-cleanup

qa/workunits/cephadm/test_cephadm.sh: add CLEANUP var

5 years agoMerge pull request #34568 from sebastian-philipp/orch-upgrade-usage
Sebastian Wagner [Wed, 22 Apr 2020 12:37:55 +0000 (14:37 +0200)]
Merge pull request #34568 from sebastian-philipp/orch-upgrade-usage

mgr/orch: upgrade: better input validation

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34565 from SUSE/wip-fix-45095
Sebastian Wagner [Wed, 22 Apr 2020 12:37:04 +0000 (14:37 +0200)]
Merge pull request #34565 from SUSE/wip-fix-45095

cephadm: handle adopting offline OSDs

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34442 from tspmelo/wip-fix-rgw-bucket-checkbox
Lenz Grimmer [Wed, 22 Apr 2020 11:31:49 +0000 (13:31 +0200)]
Merge pull request #34442 from tspmelo/wip-fix-rgw-bucket-checkbox

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #33479 from simon-rock/simon_split_stray
Yan, Zheng [Wed, 22 Apr 2020 06:55:57 +0000 (14:55 +0800)]
Merge pull request #33479 from simon-rock/simon_split_stray

mds : enable fragmentation of stray dir when conditions are met

5 years agoMerge pull request #34561 from kotreshhr/ceph-fs-status-output
Gregory Farnum [Wed, 22 Apr 2020 05:17:42 +0000 (22:17 -0700)]
Merge pull request #34561 from kotreshhr/ceph-fs-status-output

mgr/status: Fix "ceph fs status" json format writing to stderr

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #34546 from varshar16/wip-flake8-cephfs-shell
Gregory Farnum [Wed, 22 Apr 2020 05:16:43 +0000 (22:16 -0700)]
Merge pull request #34546 from varshar16/wip-flake8-cephfs-shell

cephfs-shell: Fix multiple flake8 errors

Reviewed-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge pull request #34534 from ajarr/fix-43061
Gregory Farnum [Wed, 22 Apr 2020 05:15:23 +0000 (22:15 -0700)]
Merge pull request #34534 from ajarr/fix-43061

mon/FSCommands: Fix 'add_data_pool' command and 'fs new' command

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge pull request #34164 from ukernel/wip-44382
Gregory Farnum [Wed, 22 Apr 2020 05:14:10 +0000 (22:14 -0700)]
Merge pull request #34164 from ukernel/wip-44382

qa/cephfs: update TestClusterFull:test_barrier

Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #33576 from lxbsz/fuse
Gregory Farnum [Wed, 22 Apr 2020 05:12:37 +0000 (22:12 -0700)]
Merge pull request #33576 from lxbsz/fuse

unshare-ns-mount: add isolating netns for mount helper support

Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #34121 from ADI10HERO/flake8_fix1
Gregory Farnum [Wed, 22 Apr 2020 05:10:59 +0000 (22:10 -0700)]
Merge pull request #34121 from ADI10HERO/flake8_fix1

cephfs-shell: Fix flake8 errors (F841, E302, E502, E128, E305 and E222)

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agoMerge pull request #34531 from lxbsz/libfuse3
Gregory Farnum [Wed, 22 Apr 2020 05:08:15 +0000 (22:08 -0700)]
Merge pull request #34531 from lxbsz/libfuse3

ceph-fuse: link to libfuse3 and pass `-o big_writes` to libfuse if libfuse < 3.0.0

Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34274 from ukernel/wip-44801
Gregory Farnum [Wed, 22 Apr 2020 05:07:06 +0000 (22:07 -0700)]
Merge pull request #34274 from ukernel/wip-44801

client: reset requested_max_size if file write is not wanted

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agocls/2pc_queue: remove the dependency of cls_2pc_queue with cls_queue 34669/head
Yuval Lifshitz [Tue, 21 Apr 2020 16:15:42 +0000 (19:15 +0300)]
cls/2pc_queue: remove the dependency of cls_2pc_queue with cls_queue

both queues share the same code base, however, cls_2pc_queue should work
even if cls_queue objectclass is not loaded into the osd

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
5 years agoMerge pull request #34612 from zdover23/wip-doc-tshooting-ssh-errors-44905
Sebastian Wagner [Tue, 21 Apr 2020 13:22:15 +0000 (15:22 +0200)]
Merge pull request #34612 from zdover23/wip-doc-tshooting-ssh-errors-44905

doc/cephadm: Add troubleshooting guidance for ssh connection failures. [cephadm]

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34661 from wjwithagen/wjw-fix-rgw_bucket_sync_cache.h
Casey Bodley [Tue, 21 Apr 2020 12:21:43 +0000 (08:21 -0400)]
Merge pull request #34661 from wjwithagen/wjw-fix-rgw_bucket_sync_cache.h

rgw: remove noexcept from function definition

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34614 from theanalyst/rgw/reshard-num-check
Casey Bodley [Tue, 21 Apr 2020 11:59:55 +0000 (07:59 -0400)]
Merge pull request #34614 from theanalyst/rgw/reshard-num-check

rgw: reshard: skip stale bucket id entries from reshard queue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: remove noexcept from function definition 34661/head
Willem Jan Withagen [Tue, 21 Apr 2020 11:13:32 +0000 (11:13 +0000)]
rgw: remove noexcept from function definition

Clang complains:
src/rgw/rgw_bucket_sync_cache.h:88:3: error: exception specification of explicitly defaulted copy co
nstructor does not match the calculated one
  Handle(const Handle&) noexcept = default;
  ^
1 error generated.

And a reference that I found for this:
    https://github.com/mapnik/mapnik/issues/3274
Suggesting that the noexcept is inherited from the first definition.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
5 years agorgw/doc: clarify topic creation format 34664/head
Yuval Lifshitz [Tue, 21 Apr 2020 11:08:28 +0000 (14:08 +0300)]
rgw/doc: clarify topic creation format

also, fix some typos, and 'push-endpoint' parameter

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
5 years agoqa/cephfs: add test case for fragmenting stray dirs 33479/head
Yan, Zheng [Mon, 20 Apr 2020 11:16:47 +0000 (19:16 +0800)]
qa/cephfs: add test case for fragmenting stray dirs

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
5 years agoMerge pull request #34605 from tchaikov/wip-45113
Kefu Chai [Tue, 21 Apr 2020 01:23:39 +0000 (09:23 +0800)]
Merge pull request #34605 from tchaikov/wip-45113

qa/suites/*/rados_cls_all.yaml: load all classes

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agomds: automatically fragment stray dirs
Simon Gao [Sat, 22 Feb 2020 02:26:57 +0000 (10:26 +0800)]
mds: automatically fragment stray dirs

Signed-off-by: Simon Gao <simon29rock@gmail.com>
5 years agoMerge pull request #34655 from ceph/wip-yuriw-remove-wip-master
Josh Durgin [Mon, 20 Apr 2020 23:37:32 +0000 (16:37 -0700)]
Merge pull request #34655 from ceph/wip-yuriw-remove-wip-master

qa/tests: removed tests 'client-upgrade-octopus-pacific'

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoqa/tests: removed tests 'client-upgrade-octopus-pacific' 34655/head
Yuri Weinstein [Mon, 20 Apr 2020 22:59:19 +0000 (15:59 -0700)]
qa/tests: removed tests 'client-upgrade-octopus-pacific'

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #34651 from ceph/wip-yuriw-crontab-master
Josh Durgin [Mon, 20 Apr 2020 22:32:11 +0000 (15:32 -0700)]
Merge pull request #34651 from ceph/wip-yuriw-crontab-master

qa/tests: fixed typo

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoqa/tests: fixed typo 34651/head
Yuri Weinstein [Mon, 20 Apr 2020 20:57:10 +0000 (13:57 -0700)]
qa/tests: fixed typo

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #34649 from ceph/wip-yuriw-crontab-master
Yuri Weinstein [Mon, 20 Apr 2020 20:45:41 +0000 (13:45 -0700)]
Merge pull request #34649 from ceph/wip-yuriw-crontab-master

qa/tests: added new clients upgrade tests `client-upgrade-octopus-pacific`

5 years agoqa/tests: added new clients upgrade tests 34649/head
Yuri Weinstein [Mon, 20 Apr 2020 19:41:34 +0000 (12:41 -0700)]
qa/tests: added new clients upgrade tests

`client-upgrade-octopus-pacific` for future 'pacific' release

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #34642 from ceph/wip-yuriw-octopus-client-upgrade-octopus-pacific
Yuri Weinstein [Mon, 20 Apr 2020 19:35:32 +0000 (12:35 -0700)]
Merge pull request #34642 from ceph/wip-yuriw-octopus-client-upgrade-octopus-pacific

qa/tests: initial checkin for clients upgrades tests for future relea…

5 years agoqa/tests: initial checkin for clients upgrades tests for future release of pacific 34642/head
Yuri Weinstein [Mon, 20 Apr 2020 17:45:44 +0000 (10:45 -0700)]
qa/tests: initial checkin for clients upgrades tests for future release of pacific

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #34608 from trociny/wip-journal-append-stripe-width 34647/head
Jason Dillaman [Mon, 20 Apr 2020 17:27:35 +0000 (13:27 -0400)]
Merge pull request #34608 from trociny/wip-journal-append-stripe-width

cls/journal: use EC pool stripe width for padding appends

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoqa/rgw: allow 'ceph' user to read vault token 34613/head
Casey Bodley [Mon, 20 Apr 2020 14:50:00 +0000 (10:50 -0400)]
qa/rgw: allow 'ceph' user to read vault token

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agomgr/orch: upgrade: better input validation 34568/head
Sebastian Wagner [Wed, 15 Apr 2020 13:23:05 +0000 (15:23 +0200)]
mgr/orch: upgrade: better input validation

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34636 from tchaikov/wip-vstart-runner-py3
Kefu Chai [Mon, 20 Apr 2020 13:23:43 +0000 (21:23 +0800)]
Merge pull request #34636 from tchaikov/wip-vstart-runner-py3

qa/tasks/vstart_runner,doc: be compatible with python3

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
5 years agoqa/tasks/cephfs/fuse_mount.py: by python3 compatible 34636/head
Kefu Chai [Mon, 20 Apr 2020 11:50:02 +0000 (19:50 +0800)]
qa/tasks/cephfs/fuse_mount.py: by python3 compatible

pass `StringIO()` to capture stdout whose value will be interpreted as a
string later on

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoAdd troubleshooting guidance for ssh connection failures. 34612/head
Zac Dover [Fri, 17 Apr 2020 04:12:37 +0000 (14:12 +1000)]
Add troubleshooting guidance for ssh connection failures.

For more thorough information about this commit, see:
https://tracker.ceph.com/issues/44905

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Update doc/cephadm/troubleshooting.rst

Co-Authored-By: Michael Fritch <mfritch@suse.com>
ibid

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Update doc/cephadm/troubleshooting.rst

Co-Authored-By: Sebastian Wagner <sebastian@spawnhost.de>
Update doc/cephadm/troubleshooting.rst

Co-Authored-By: Sebastian Wagner <sebastian@spawnhost.de>
Added mgfritch's suggestion regarding checking to see if the public key
is listed in the authorized_keys file.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agopybind/mgr/dashboard/run-backend-api-tests.sh: use python3 by default
Kefu Chai [Mon, 20 Apr 2020 11:13:52 +0000 (19:13 +0800)]
pybind/mgr/dashboard/run-backend-api-tests.sh: use python3 by default

since vstart_runner.py is now py3, let's use python3 by default

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks/vstart_runner.py: be python3 compatible
Kefu Chai [Mon, 20 Apr 2020 10:27:58 +0000 (18:27 +0800)]
qa/tasks/vstart_runner.py: be python3 compatible

differentiate `str` and `bytes` instances, and drop python2 support from
vstart_runner.py, as we've moved to python3 already

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/suites/*/rados_cls_all.yaml: load all classes 34605/head
Kefu Chai [Fri, 17 Apr 2020 07:15:52 +0000 (15:15 +0800)]
qa/suites/*/rados_cls_all.yaml: load all classes

the intention to add the whitelist was to test "sdk" class, but if we
add new classes to the list, and add tests exercising them, the tests
fail if we fail to update these `rados_cls_all.yaml` accordingly.

so in this change, the list is now '*' which allows OSD to load all
classes found in the specified directory

Fixes: https://tracker.ceph.com/issues/45113
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/dev/developer_guide: use python3 to launch vstart_runner.py
Kefu Chai [Mon, 20 Apr 2020 10:26:27 +0000 (18:26 +0800)]
doc/dev/developer_guide: use python3 to launch vstart_runner.py

as vstart_runner.py is compatible with python3, and so is the tests
under `qa/` directory.

and use `pip` to install teuthology, simpler this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomds: make MDCache::scan_stray_dir() handle dir fragmentation
Yan, Zheng [Tue, 3 Mar 2020 07:37:59 +0000 (15:37 +0800)]
mds: make MDCache::scan_stray_dir() handle dir fragmentation

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
5 years agomds: don't add null dentry to frozen stray dir
Yan, Zheng [Tue, 3 Mar 2020 03:52:29 +0000 (11:52 +0800)]
mds: don't add null dentry to frozen stray dir

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
5 years agomds: auth pin stray dir when purging stray inode
Yan, Zheng [Tue, 3 Mar 2020 03:30:45 +0000 (11:30 +0800)]
mds: auth pin stray dir when purging stray inode

After stray inode gets added to purge queue, mds deletes stray dentry.
MDS needs to make sure stray dir is not being fragmented.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
5 years agoceph: allow 'dirfrag split' asok command to operate on stray dirs
Yan, Zheng [Tue, 3 Mar 2020 03:16:13 +0000 (11:16 +0800)]
ceph: allow 'dirfrag split' asok command to operate on stray dirs

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
5 years agoMerge pull request #34432 from optimistyzy/47_upstream
Kefu Chai [Mon, 20 Apr 2020 06:51:33 +0000 (14:51 +0800)]
Merge pull request #34432 from optimistyzy/47_upstream

os/bluestore/NVMEDevice.cc: use slist for tracking mempool

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoNVMEDevice: Remove the performance counter 34432/head
Ziye Yang [Tue, 7 Apr 2020 21:09:56 +0000 (05:09 +0800)]
NVMEDevice: Remove the performance counter

Compared with other approach (KernelDevice, iouring), it does not
have such feature, so remove it to simplify the code and improve
the performance. Because, each thread will call the logger and calculate
the time, it is very time consuming. And the upper layer in bluestore has
the feature to track each I/O task.

And it is not readable if we add ifdef configure to enable this feature,
so in my mind that I suggest removing this latency track. And the
latency benefit demonstrated by SPDK is already approved, so we do not
need to tracking every I/O time when invoking SPDK driver.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
5 years agoNVMEDevice.cc: Remove the data_buf_mempool
Ziye Yang [Tue, 7 Apr 2020 15:23:46 +0000 (23:23 +0800)]
NVMEDevice.cc: Remove the data_buf_mempool

Use the linked list is enough.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
5 years agolibrbd: add aio_flush test case 34430/head
Yuan Lu [Thu, 5 Mar 2020 05:46:57 +0000 (13:46 +0800)]
librbd: add aio_flush test case

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agolibrbd: add aio_flush
Yuan Lu [Tue, 7 Apr 2020 05:09:35 +0000 (13:09 +0800)]
librbd: add aio_flush

Signed-off-by: Peterson, Scott <scott.d.peterson@intel.com>
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
Signed-off-by: Lu, Yuan <yuan.y.lu@intel.com>
Signed-off-by: Chamarthy, Mahati <mahati.chamarthy@intel.com>
5 years agoMerge pull request #34615 from dillaman/wip-45072
Mykola Golub [Sun, 19 Apr 2020 07:57:49 +0000 (10:57 +0300)]
Merge pull request #34615 from dillaman/wip-45072

rbd-mirror: image replayer stop might race with instance replayer shut down

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoceph-fuse: link to libfuse3 if fuse3 is installed 34531/head
Xiubo Li [Wed, 15 Apr 2020 06:21:44 +0000 (02:21 -0400)]
ceph-fuse: link to libfuse3 if fuse3 is installed

Fixes: https://tracker.ceph.com/issues/44891
Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agorbd-fuse: remove FUSE_CAP_BIG_WRITES when linking to libfuse3
Xiubo Li [Fri, 17 Apr 2020 09:46:24 +0000 (05:46 -0400)]
rbd-fuse: remove FUSE_CAP_BIG_WRITES when linking to libfuse3

The big-writes is enabled as default from 3.0.

Fixes: https://tracker.ceph.com/issues/44891
Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agorbd-fuse: switch to use utimens instead
Xiubo Li [Fri, 17 Apr 2020 09:33:55 +0000 (05:33 -0400)]
rbd-fuse: switch to use utimens instead

The utime is deprecated.

Fixes: https://tracker.ceph.com/issues/44891
Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agoMerge pull request #34576 from jdurgin/wip-object-corpus
Kefu Chai [Sat, 18 Apr 2020 03:59:55 +0000 (11:59 +0800)]
Merge pull request #34576 from jdurgin/wip-object-corpus

ceph-object-corpus: update to octopus

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34535 from changchengx/refine_build_liburing
Kefu Chai [Sat, 18 Apr 2020 03:39:32 +0000 (11:39 +0800)]
Merge pull request #34535 from changchengx/refine_build_liburing

cmake: refactor liburing support

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoceph-fuse: enable the big writes as default
Xiubo Li [Thu, 16 Apr 2020 10:13:17 +0000 (06:13 -0400)]
ceph-fuse: enable the big writes as default

When the libfuse version < 3, without the big_writes options enabled
the write perf is very poor.

Fixes: https://tracker.ceph.com/issues/44885
Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agotest_cephadm.sh: remove unmaintained test_cephadm.sh 34621/head
Michael Fritch [Fri, 17 Apr 2020 20:26:29 +0000 (14:26 -0600)]
test_cephadm.sh: remove unmaintained test_cephadm.sh

the script has become unmaintained and duplicates logic found in
qa/workunits/cephadm/test_cephadm.sh

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoqa/workunits/cephadm/test_cephadm.sh: add CLEANUP var
Michael Fritch [Fri, 17 Apr 2020 20:17:02 +0000 (14:17 -0600)]
qa/workunits/cephadm/test_cephadm.sh: add CLEANUP var

preserve the current test state during EXIT:
`CLEANUP=false ../qa/workunits/cephadm/test_cephadm.sh`

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #34584 from bk201/wip-45108
Sebastian Wagner [Fri, 17 Apr 2020 16:55:21 +0000 (18:55 +0200)]
Merge pull request #34584 from bk201/wip-45108

mgr/test_orchestrator: fix error when listing services

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #32951 from matthewoliver/cephadm_rgw_ssl
Sebastian Wagner [Fri, 17 Apr 2020 16:54:50 +0000 (18:54 +0200)]
Merge pull request #32951 from matthewoliver/cephadm_rgw_ssl

cephadm: add RGW SSL support

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34410 from lxbsz/mds_dirty_parent
Gregory Farnum [Fri, 17 Apr 2020 15:27:40 +0000 (08:27 -0700)]
Merge pull request #34410 from lxbsz/mds_dirty_parent

tools/cephfs: add accounted_rstat/rstat when building file dentry

Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
5 years agoMerge pull request #33928 from mchangir/cephfs-journal-tool-cannot-set-dry_run-arg
Gregory Farnum [Fri, 17 Apr 2020 15:26:52 +0000 (08:26 -0700)]
Merge pull request #33928 from mchangir/cephfs-journal-tool-cannot-set-dry_run-arg

cephfs-journal-tool: correctly parse --dry_run argument

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agocmake: use cmake module to integrate liburing 34535/head
Changcheng Liu [Mon, 13 Apr 2020 09:55:49 +0000 (17:55 +0800)]
cmake: use cmake module to integrate liburing

1. WITH_LIBURING is used to set HAVE_LIBURING to decide
   use liburing in KernelDevice or not.
2. WITH_SYSTEM_LIBURING is to choose use system installed
   liburing or build the liburing from source code.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
5 years agoMerge pull request #32612 from rishabh-d-dave/fs-qa-UnicodeDecodeError
Gregory Farnum [Fri, 17 Apr 2020 15:21:42 +0000 (08:21 -0700)]
Merge pull request #32612 from rishabh-d-dave/fs-qa-UnicodeDecodeError

test_cephfs_shell: fix UnicodeDecodeError

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agoMerge pull request #33169 from moningchao/master
Gregory Farnum [Fri, 17 Apr 2020 15:20:42 +0000 (08:20 -0700)]
Merge pull request #33169 from moningchao/master

client: fix blacklist removal failed

Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
5 years agoMerge pull request #33711 from lxbsz/qa_umount_failed
Gregory Farnum [Fri, 17 Apr 2020 15:20:30 +0000 (08:20 -0700)]
Merge pull request #33711 from lxbsz/qa_umount_failed

qa/tasks/cephfs: umount the mountpoints when tearDown

Reviewed-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge pull request #34533 from fanjunwei/fix_fuse_bug
Gregory Farnum [Fri, 17 Apr 2020 15:18:52 +0000 (08:18 -0700)]
Merge pull request #34533 from fanjunwei/fix_fuse_bug

client: fix ceph-fuse parse command line failed

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
5 years agorbd-mirror: track in-flight start/stop/restart in instance replayer 34615/head
Jason Dillaman [Fri, 17 Apr 2020 15:17:05 +0000 (11:17 -0400)]
rbd-mirror: track in-flight start/stop/restart in instance replayer

The shut down waits for in-flight ops to complete but the
start/stop/restart operations were previously not tracked. This
could cause a potential race and crash between an image replayer
operation and the instance replayer shutting down.

Fixes: https://tracker.ceph.com/issues/45072
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agorgw: reshard: skip stale bucket id entries from reshard queue 34614/head
Abhishek Lekshmanan [Fri, 17 Apr 2020 15:11:01 +0000 (17:11 +0200)]
rgw: reshard: skip stale bucket id entries from reshard queue

If we encounter a reshard queue entry that has an older ID compared to the
bucket's current ID, it'd mean that some other process or a manual reshard has
already processed this entry, skip processing the entry this time. An
alternative is to verify the num_shards that we have in queue >= the current
shards, but this would mean that we may reshard a recently manual resharded
bucket again which might not be intended

Fixes: https://tracker.ceph.com/issues/45134
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agorgw: use DEFER_DROP_PRIVILEGES flag unconditionally
Casey Bodley [Fri, 17 Apr 2020 14:50:55 +0000 (10:50 -0400)]
rgw: use DEFER_DROP_PRIVILEGES flag unconditionally

this flag doesn't take effect unless its set before global_init()

Fixes: https://tracker.ceph.com/issues/44661
Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorgw: combine calls to global_init/pre_init
Casey Bodley [Fri, 17 Apr 2020 14:49:53 +0000 (10:49 -0400)]
rgw: combine calls to global_init/pre_init

calling global_init() without 'run_pre_init=false' will call
global_pre_init() for us

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #34601 from yuriw/wip-yuriw-crontab-master
Yuri Weinstein [Fri, 17 Apr 2020 14:47:06 +0000 (07:47 -0700)]
Merge pull request #34601 from yuriw/wip-yuriw-crontab-master

qa/tests: added octopus-p2p upgrade tests to the mix

5 years agoqa/rgw: add setuser/group to test DEFER_DROP_PRIVILEGES
Casey Bodley [Fri, 17 Apr 2020 14:45:15 +0000 (10:45 -0400)]
qa/rgw: add setuser/group to test DEFER_DROP_PRIVILEGES

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorbd-mirror: switch to common C_TrackedOp context class
Jason Dillaman [Fri, 17 Apr 2020 14:20:44 +0000 (10:20 -0400)]
rbd-mirror: switch to common C_TrackedOp context class

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agocommon: add helper C_TrackerOp context class
Jason Dillaman [Fri, 17 Apr 2020 14:02:10 +0000 (10:02 -0400)]
common: add helper C_TrackerOp context class

This wraps the functionality of starting and finishing a tracked op
into the standard context interface.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #34604 from tchaikov/wip-cmake-fuse
Kefu Chai [Fri, 17 Apr 2020 13:31:44 +0000 (21:31 +0800)]
Merge pull request #34604 from tchaikov/wip-cmake-fuse

cmake: check for FUSE version and cleanups

Reviewed-by: Xiubo Li <xiubli@redhat.com>
5 years agocls/journal: use EC pool stripe width for padding appends 34608/head
Mykola Golub [Fri, 17 Apr 2020 11:40:41 +0000 (12:40 +0100)]
cls/journal: use EC pool stripe width for padding appends

to avoid ECSubRead ops to reencode a partially updated stripe.

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agoobjclass: add method to get pool stripe width
Mykola Golub [Fri, 17 Apr 2020 10:49:59 +0000 (11:49 +0100)]
objclass: add method to get pool stripe width

Signed-off-by: Mykola Golub <mgolub@suse.com>
5 years agocmake: detect fuse3 as well 34604/head
Kefu Chai [Fri, 17 Apr 2020 06:31:15 +0000 (14:31 +0800)]
cmake: detect fuse3 as well

Fixes: https://tracker.ceph.com/issues/44891
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: check for FUSE version
Kefu Chai [Fri, 17 Apr 2020 05:50:16 +0000 (13:50 +0800)]
cmake: check for FUSE version

and refactor FindFUSE.cmake a little bit to conditionalize OSX support

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: link against FUSE::FUSE
Kefu Chai [Fri, 17 Apr 2020 05:46:21 +0000 (13:46 +0800)]
cmake: link against FUSE::FUSE

instead of specifying the include directory and linkage separately

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: rename Findfuse.cmake to FindFUSE.cmake
Kefu Chai [Fri, 17 Apr 2020 05:02:22 +0000 (13:02 +0800)]
cmake: rename Findfuse.cmake to FindFUSE.cmake

so its name is consistent with upstream name, and with the variables
exposed by FindFUSE.cmake.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tests: added octopus-p2p upgrade tests to the mix 34601/head
Yuri Weinstein [Thu, 16 Apr 2020 21:01:10 +0000 (14:01 -0700)]
qa/tests: added octopus-p2p upgrade tests to the mix

Signed-off-by: Yuri Weinstein <yweinste@gmail.com>
5 years agoMerge pull request #34573 from dillaman/wip-44938-2
Mykola Golub [Thu, 16 Apr 2020 15:50:47 +0000 (18:50 +0300)]
Merge pull request #34573 from dillaman/wip-44938-2

test: tx-only peer from heartbeat can race w/ CLI

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #34346 from jschmid1/osd_id_claims
Sebastian Wagner [Thu, 16 Apr 2020 14:37:34 +0000 (16:37 +0200)]
Merge pull request #34346 from jschmid1/osd_id_claims

mgr/cephadm: add support for osd_id_claims

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #34517 from tchaikov/wip-qa-dashboard-telemetry
Kefu Chai [Thu, 16 Apr 2020 14:12:56 +0000 (22:12 +0800)]
Merge pull request #34517 from tchaikov/wip-qa-dashboard-telemetry

qa/tasks/mgr/dashboard: set last_opt_revision when setting enabled

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agoMerge pull request #34210 from kotreshhr/cephfs-subvolume-info
Venky Shankar [Thu, 16 Apr 2020 13:08:08 +0000 (18:38 +0530)]
Merge pull request #34210 from kotreshhr/cephfs-subvolume-info

mgr/volumes: Add interface to get subvolume metadata

5 years agomgr/test_orchestrator: fix error when listing services 34584/head
Kiefer Chang [Thu, 16 Apr 2020 07:34:51 +0000 (15:34 +0800)]
mgr/test_orchestrator: fix error when listing services

- Adapting attribute change of ServiceSpec.
- Update dummy data.

Fixes: https://tracker.ceph.com/issues/45108
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agoqa/tasks/mgr/dashboard: set last_opt_revision when setting enabled 34517/head
Kefu Chai [Sat, 11 Apr 2020 04:02:18 +0000 (12:02 +0800)]
qa/tasks/mgr/dashboard: set last_opt_revision when setting enabled

telemetry requires user to re opt-in when opt_revision is bumped up

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/orch: Fixes some deserialization errors
Kiefer Chang [Thu, 16 Apr 2020 07:30:24 +0000 (15:30 +0800)]
mgr/orch: Fixes some deserialization errors

Fixes errors when calling `from_json` of these classes:
- InventoryHost: parsing labels
- ServiceDescription: `last_refresh` and `created` fields should be parsed
  to datetime type.

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agocephadm: bail out early during adopt if data dir not present 34565/head
Tim Serong [Thu, 16 Apr 2020 05:42:08 +0000 (15:42 +1000)]
cephadm: bail out early during adopt if data dir not present

In case someone tries to run this again on an already adopted daemon...

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agocephadm: add --force-start option to adopt
Tim Serong [Thu, 16 Apr 2020 05:32:02 +0000 (15:32 +1000)]
cephadm: add --force-start option to adopt

Current behaviour is to only start a newly adopted ceph daemon if it was
already running before the adopt.  Adding a --force-start option allows
the adopt command to start newly adopted daemons that weren't originally
running, to save the user having to manually invoke `systemctl start
ceph-$FSID@$DAEMMON.$ID`.

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agocephadm: don't throw when disabling ceph-volume simple unit
Tim Serong [Thu, 16 Apr 2020 05:09:10 +0000 (15:09 +1000)]
cephadm: don't throw when disabling ceph-volume simple unit

When adopting OSDs, if a ceph-volume simple service is already disabled
(or otherwise missing) the previous implementation would raise an error,
thus killing the adopt.

Signed-off-by: Tim Serong <tserong@suse.com>
5 years agocephadm: handle adopting offline OSDSs
Tim Serong [Wed, 15 Apr 2020 09:26:19 +0000 (19:26 +1000)]
cephadm: handle adopting offline OSDSs

The current adopt behavior expects OSDs to be online, in order to read
/var/lib/ceph/osd/ceph-$ID/fsid.  To handle the case where OSDs
are offline, this change first checks to see if that file is present,
and if not, falls back to calling `ceph-volume lvm list` to see if
there's a matching OSD there, and if that doesn't work, it checks
/etc/ceph/osd/*.json to see if there's a matching old-style simple
OSD present.

For LVM OSDs, the only thing we need is the ODS's fsid; the remainer
of the adopt procedure "just works", as the various other files
in /var/lib/ceph/$FSID/osd.$ID are created by magic anyway when the
OSD is activated, so it doesn't matter if they're not present at
adoption time.

For simple (ceph-disk created) OSDs, we actually need all the files under
/var/lib/ceph/osd/ceph-$ID/ to be moved to /var/lib/ceph/$FSID/osd.$ID
so if a simple OSD is found, it's mounted first, so the existing
move_files() a bit further down around line 3200 continues to work.

Fixes: https://tracker.ceph.com/issues/45095
Signed-off-by: Tim Serong <tserong@suse.com>
5 years agodoc: add object corpus to release checklist 34576/head
Josh Durgin [Thu, 16 Apr 2020 02:25:55 +0000 (22:25 -0400)]
doc: add object corpus to release checklist

Signed-off-by: Josh Durgin <jdurgin@redhat.com>