]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agorpm,deb: python-requests is not needed for ceph-common 30420/head
luo.runbing [Tue, 17 Sep 2019 06:55:37 +0000 (14:55 +0800)]
rpm,deb: python-requests is not needed for ceph-common

Signed-off-by: luo.runbing <luo.runbing@zte.com.cn>
5 years agoMerge PR #29817 into master
Patrick Donnelly [Mon, 16 Sep 2019 23:49:39 +0000 (16:49 -0700)]
Merge PR #29817 into master

* refs/pull/29817/head:
doc: document that the kcephfs mount helper will search keyring files for secrets
mount.ceph: fork a child to get info from local configuration
mount.ceph: track mon string and path inside ceph_mount_info
mount.ceph: add name and secret to ceph_mount_info
mount.ceph: add ceph_mount_info structure
mount.ceph: clean up debugging output and error messages
mount.ceph: clean up return codes
mount.ceph: add comment explaining why we need to modprobe
mount.ceph: use bools for flags
common: have read_secret_from_file return negative error codes

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #29735 into master
Patrick Donnelly [Mon, 16 Sep 2019 20:02:03 +0000 (13:02 -0700)]
Merge PR #29735 into master

* refs/pull/29735/head:
mgr/volumes: cluster log when a purge thread bails out
mgr/volumes: retry purging trash entries on intermittent error

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #29705 into master
Patrick Donnelly [Mon, 16 Sep 2019 20:00:33 +0000 (13:00 -0700)]
Merge PR #29705 into master

* refs/pull/29705/head:
client: fix lazyio_synchronize() to update file size

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agoMerge PR #29569 into master
Patrick Donnelly [Mon, 16 Sep 2019 19:59:20 +0000 (12:59 -0700)]
Merge PR #29569 into master

* refs/pull/29569/head:
mds: Reorganize class members in DamageTable header

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #29888 into master
Patrick Donnelly [Mon, 16 Sep 2019 19:58:18 +0000 (12:58 -0700)]
Merge PR #29888 into master

* refs/pull/29888/head:
mds: Reorganize class members in JournalPointer header

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30029 into master
Patrick Donnelly [Mon, 16 Sep 2019 19:54:59 +0000 (12:54 -0700)]
Merge PR #30029 into master

* refs/pull/30029/head:
mds: use set to store to evict client

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30058 into master
Patrick Donnelly [Mon, 16 Sep 2019 18:43:19 +0000 (11:43 -0700)]
Merge PR #30058 into master

* refs/pull/30058/head:
qa/tasks: test for prevent negative subvolume size
mgr/volumes: prevent negative subvolume size

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge PR #30265 into master
Patrick Donnelly [Mon, 16 Sep 2019 18:36:10 +0000 (11:36 -0700)]
Merge PR #30265 into master

* refs/pull/30265/head:
doc: add a new document on CephFS distributed metadata cache

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agodoc: add a new document on CephFS distributed metadata cache 30265/head
Jeff Layton [Thu, 5 Sep 2019 10:42:25 +0000 (06:42 -0400)]
doc: add a new document on CephFS distributed metadata cache

Fixes: https://tracker.ceph.com/issues/41451
Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge pull request #30399 from tchaikov/wip-crimson-peering-query
Kefu Chai [Mon, 16 Sep 2019 17:54:03 +0000 (01:54 +0800)]
Merge pull request #30399 from tchaikov/wip-crimson-peering-query

crimson: handle MOSDPGQuery2 properly

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #28830 from albin-antony/indv2
Casey Bodley [Mon, 16 Sep 2019 17:21:55 +0000 (13:21 -0400)]
Merge pull request #28830 from albin-antony/indv2

rgw: fix indentation for listobjectsv2

Reviewed-by: Ali Maredia <amaredia@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #29672 into master
Patrick Donnelly [Mon, 16 Sep 2019 15:06:09 +0000 (08:06 -0700)]
Merge PR #29672 into master

* refs/pull/29672/head:
common/RefCountedObj: cleanup con/des
common: add make_ref factory for RefCountedObject
common: refactor RefCountedObj and reduce header dependencies
include: convert FunctionContext usage to generic LambdaContext
osd: add missing header
cls/rgw: add missing header dependency

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30377 from tspmelo/wip-e2e-hosts-mds
Lenz Grimmer [Mon, 16 Sep 2019 13:50:38 +0000 (13:50 +0000)]
Merge pull request #30377 from tspmelo/wip-e2e-hosts-mds

mgr/dashboard: Fix e2e host test

Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #29819 from Devp00l/wip-41396
Lenz Grimmer [Mon, 16 Sep 2019 13:36:18 +0000 (13:36 +0000)]
Merge pull request #29819 from Devp00l/wip-41396

mgr/dashboard: Document UiApiController with ApiController usage

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agocommon/RefCountedObj: cleanup con/des 29672/head
Patrick Donnelly [Wed, 6 Feb 2019 22:48:57 +0000 (14:48 -0800)]
common/RefCountedObj: cleanup con/des

Also, don't allow children to set nref (to 0). This is the more significant
change as it required fixing various code to not do this:

    <reftype> ptr = new RefCountedObjectFoo(..., 0);

as a way to create a starting reference with nref==1. This is a pretty
bad code smell so I've converted all the code doing this to use the new
factory method which produces the reference safely:

    auto ptr = ceph::make_ref<RefCountedObjectFoo>(...);

libradosstriper was particularly egregious in its abuse of setting the starting
nref. :(

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocommon: add make_ref factory for RefCountedObject
Patrick Donnelly [Tue, 13 Aug 2019 16:15:56 +0000 (09:15 -0700)]
common: add make_ref factory for RefCountedObject

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocommon: refactor RefCountedObj and reduce header dependencies
Patrick Donnelly [Tue, 13 Aug 2019 17:21:25 +0000 (10:21 -0700)]
common: refactor RefCountedObj and reduce header dependencies

- Protect constructors/destructors; RefCountedObj is an abstract class.

- Move some helpers to separate unit to avoid circular dependency with
  CephContext which could otherwise use RefCountedObj.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoinclude: convert FunctionContext usage to generic LambdaContext
Patrick Donnelly [Wed, 14 Aug 2019 18:23:42 +0000 (11:23 -0700)]
include: convert FunctionContext usage to generic LambdaContext

The main motivation for this change is to avoid copies due to the use of
boost::function/std::function where captures of std::unique_ptr (in
subsequent commits) would fail to compile.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoosd: add missing header
Patrick Donnelly [Thu, 15 Aug 2019 13:15:34 +0000 (06:15 -0700)]
osd: add missing header

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocls/rgw: add missing header dependency
Patrick Donnelly [Tue, 13 Aug 2019 17:48:40 +0000 (10:48 -0700)]
cls/rgw: add missing header dependency

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30368 from liewegas/wip-snapmapper-cleanup
Kefu Chai [Mon, 16 Sep 2019 11:41:05 +0000 (19:41 +0800)]
Merge pull request #30368 from liewegas/wip-snapmapper-cleanup

osd/SnapMapper: remove pre-octopus snapmapper keys after conversion

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #30356 from majianpeng/msg-reduece-duplicated-code
Kefu Chai [Mon, 16 Sep 2019 11:39:45 +0000 (19:39 +0800)]
Merge pull request #30356 from majianpeng/msg-reduece-duplicated-code

msg: add func is_blackhole to reduce duplicated code.

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30350 from liewegas/wip-bluestore-poolstats-configs
Kefu Chai [Mon, 16 Sep 2019 11:37:27 +0000 (19:37 +0800)]
Merge pull request #30350 from liewegas/wip-bluestore-poolstats-configs

os/bluestore: simplify per-pool-stat config options

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agocrimson/osd: change log level to warn if pg is absent 30399/head
Kefu Chai [Mon, 16 Sep 2019 10:55:01 +0000 (18:55 +0800)]
crimson/osd: change log level to warn if pg is absent

it's not fatal or indicating a bug, but it's unusual. so let's make it a
warning.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: reply if pg is absent when handling MQuery
Kefu Chai [Mon, 16 Sep 2019 10:48:23 +0000 (18:48 +0800)]
crimson/osd: reply if pg is absent when handling MQuery

in previous commit, the support of `MOSDPGQuery` was dropped. but
if we want to handle `MOSDPGQuery2` properly, we should take
`on_pg_absent()` into consideration when handling `MOSDPGQuery2`.

in this change, we handle `MOSDPGQuery2` by checking the boost event
against `MQuery`, so we don't need to create a new class derived from
`RemotePeeringEvent` for specializing the behavior.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: do not handle MOSDPGQuery anymore
Kefu Chai [Mon, 16 Sep 2019 09:01:51 +0000 (17:01 +0800)]
crimson/osd: do not handle MOSDPGQuery anymore

this is a follow-up of 260ab1a5, as MOSDPGQuery is deprecated in favor
of MOSDPGQuery2 in octopus and up. let's drop the support of
MOSDPGQuery.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoosd/OSD.h: remove unused OSD::discard_context()
Kefu Chai [Mon, 16 Sep 2019 08:16:38 +0000 (16:16 +0800)]
osd/OSD.h: remove unused OSD::discard_context()

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: do not use __func__ in a lambda for logging
Kefu Chai [Mon, 16 Sep 2019 07:31:06 +0000 (15:31 +0800)]
crimson/osd: do not use __func__ in a lambda for logging

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: verbose logging in OSD::_send_alive()
Kefu Chai [Mon, 16 Sep 2019 07:13:00 +0000 (15:13 +0800)]
crimson/osd: verbose logging in OSD::_send_alive()

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30398 from tspmelo/wip-backport-head
Nathan Cutler [Mon, 16 Sep 2019 10:53:12 +0000 (12:53 +0200)]
Merge pull request #30398 from tspmelo/wip-backport-head

script/ceph-backport.sh: Fix verification of git repository

5 years agoscript/ceph-backport.sh: Fix verification of git repository 30398/head
Tiago Melo [Mon, 16 Sep 2019 10:19:35 +0000 (10:19 +0000)]
script/ceph-backport.sh: Fix verification of git repository

In git 2.16 running "git show-ref HEAD" returns an error and
prevents the script to procced.

Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agorgw: fix indentation for listobjectsv2 28830/head
albIN7 [Tue, 2 Jul 2019 06:00:36 +0000 (11:30 +0530)]
rgw: fix indentation for listobjectsv2

https://tracker.ceph.com/issues/41840

Signed-off-by: Albin Antony <aantony@redhat.com>
5 years agoMerge pull request #29549 from smanjara/wip-multisite-metadata
J. Eric Ivancich [Sun, 15 Sep 2019 16:54:24 +0000 (12:54 -0400)]
Merge pull request #29549 from smanjara/wip-multisite-metadata

rgw: Allow admin APIs that write metadata to be executed first on the mast…

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30174 from mkogan1/wip-rgw-40700
J. Eric Ivancich [Sun, 15 Sep 2019 16:48:28 +0000 (12:48 -0400)]
Merge pull request #30174 from mkogan1/wip-rgw-40700

rgw: fix memory growth while deleting objects with

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge pull request #30379 from smithfarm/wip-41821
Nathan Cutler [Sun, 15 Sep 2019 07:32:12 +0000 (09:32 +0200)]
Merge pull request #30379 from smithfarm/wip-41821

tools/setup-virtualenv.sh: do not default to python2.7

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
5 years agoMerge pull request #30362 from uweigand/fix-unaligned-check
Kefu Chai [Sat, 14 Sep 2019 01:46:41 +0000 (09:46 +0800)]
Merge pull request #30362 from uweigand/fix-unaligned-check

cmake: Fix unaligned check on big-endian systems

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30374 from tchaikov/wip-cmake-brotli
Kefu Chai [Sat, 14 Sep 2019 01:43:04 +0000 (09:43 +0800)]
Merge pull request #30374 from tchaikov/wip-cmake-brotli

cmake: s/bortli_libs/brotli_libs/

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30366 from liu-chunmei/ceph_seastar_MonClient
Kefu Chai [Sat, 14 Sep 2019 01:05:48 +0000 (09:05 +0800)]
Merge pull request #30366 from liu-chunmei/ceph_seastar_MonClient

crimson/mon: use shared_future for waiting MauthReply

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30380 from rzarzynski/wip-crimson-cyanread-returns-bl
Kefu Chai [Sat, 14 Sep 2019 01:04:30 +0000 (09:04 +0800)]
Merge pull request #30380 from rzarzynski/wip-crimson-cyanread-returns-bl

crimson/os: Object::read() returns bufferlist instead of never used errcode

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30339 from rzarzynski/wip-crimson-cls-2
Kefu Chai [Sat, 14 Sep 2019 01:01:10 +0000 (09:01 +0800)]
Merge pull request #30339 from rzarzynski/wip-crimson-cls-2

crimson: serve basic RBD traffic coming from fio

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/mon:use shared_future for waiting MauthReply 30366/head
chunmei Liu [Thu, 12 Sep 2019 21:01:37 +0000 (14:01 -0700)]
crimson/mon:use shared_future for waiting MauthReply

when monitor-side close the connection, msgr call MonClient
ms_handle_reset cause reply.get_future be called twice then
assert happen in promise.get_future.
promise<T...>::get_future() noexcept {
    assert(!this->_future && this->_state && !this->_task);
    return future<T...>(this);
}
use shared_promise instead of promise to solve it.

Signed-off-by: chunmei Liu <chunmei.liu@intel.com>
5 years agoMerge pull request #30363 from idryomov/wip-krbd-huge-osdmap
Ilya Dryomov [Fri, 13 Sep 2019 20:35:57 +0000 (22:35 +0200)]
Merge pull request #30363 from idryomov/wip-krbd-huge-osdmap

qa: add script to test how libceph handles huge osdmaps

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agocrimson/osd: add dummy support for CEPH_OSD_OP_WATCH. 30339/head
Radoslaw Zarzynski [Wed, 28 Aug 2019 14:40:30 +0000 (16:40 +0200)]
crimson/osd: add dummy support for CEPH_OSD_OP_WATCH.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: implement cls_get_client_features().
Radoslaw Zarzynski [Thu, 29 Aug 2019 14:32:44 +0000 (16:32 +0200)]
crimson/osd: implement cls_get_client_features().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: switch get_orig_source_inst() to get_message() in OpsExecuter.
Radoslaw Zarzynski [Thu, 29 Aug 2019 14:32:16 +0000 (16:32 +0200)]
crimson/osd: switch get_orig_source_inst() to get_message() in OpsExecuter.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: implement cls_cxx_map_set_val().
Radoslaw Zarzynski [Wed, 28 Aug 2019 15:10:08 +0000 (17:10 +0200)]
crimson/osd: implement cls_cxx_map_set_val().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: implement cls_get_request_origin().
Radoslaw Zarzynski [Wed, 28 Aug 2019 14:39:59 +0000 (16:39 +0200)]
crimson/osd: implement cls_get_request_origin().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: add support for CEPH_OSD_OP_OMAPGETVALS.
Radoslaw Zarzynski [Wed, 28 Aug 2019 11:41:50 +0000 (13:41 +0200)]
crimson/osd: add support for CEPH_OSD_OP_OMAPGETVALS.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge PR #28560 into master
Patrick Donnelly [Fri, 13 Sep 2019 19:38:47 +0000 (12:38 -0700)]
Merge PR #28560 into master

* refs/pull/28560/head:
cephfs-shell: handle du's arguments elsewhere outside do_du()
cephfs-shell: reuse code
cephfs-shell: rewrite call to perror in do_du
pybind/cephfs: define variable for hexcode used in stat()
test_cephfs_shell: test cephfs-shell command at invocation
cephfs-shell: refactor do_du()
cephfs-shell: option -r is not for reverse
cephfs-shell: extend to_bytes()
test_cephfs_shell: test du with no args
test_cephfs_shell: test du with multiple paths in args
test_cephfs_shell: test behaviour of "du -r"
test_cephfs_shell: test du's output for softlinks
qa/cephfs: add convenience method lstat()
qa/cephfs: add option to make stat() unfollow symlinks
test_cephfs_shell: test du's output for hardlinks
test_cephfs_shell: test du's output for directories
test_cephfs_shell: test du's output for regular files
test_cephfs_shell: add a method to get command output
test_cephfs_shell: allow cmd as list too
test_cephfs_shell: rename and rewrite _cephfs_shell()
test_cephfs_shell: copy humanize() from cephfs-shell
cephfs-shell: print disk usage for non-directory files too
pybind/cephfs: add method that stats symlinks without following
cephfs-shell: Fix 'du' command error

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #29907 into master
Patrick Donnelly [Fri, 13 Sep 2019 19:04:44 +0000 (12:04 -0700)]
Merge PR #29907 into master

* refs/pull/29907/head:
doc: add a doc for vstart_runner.py

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30185 into master
Patrick Donnelly [Fri, 13 Sep 2019 19:02:20 +0000 (12:02 -0700)]
Merge PR #30185 into master

* refs/pull/30185/head:
mgr/volumes: drop unnecessary size

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocrimson/os: fix ENODATA handling in CyanStore::get_attrs().
Radoslaw Zarzynski [Tue, 27 Aug 2019 20:47:37 +0000 (22:47 +0200)]
crimson/os: fix ENODATA handling in CyanStore::get_attrs().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: add support for CEPH_OSD_OP_OMAPGETKEYS.
Radoslaw Zarzynski [Tue, 27 Aug 2019 19:33:30 +0000 (21:33 +0200)]
crimson/osd: add support for CEPH_OSD_OP_OMAPGETKEYS.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: PGBackend::write() alters object size now.
Radoslaw Zarzynski [Tue, 27 Aug 2019 19:32:16 +0000 (21:32 +0200)]
crimson/osd: PGBackend::write() alters object size now.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: implement cls_cxx_write2().
Radoslaw Zarzynski [Tue, 27 Aug 2019 19:31:07 +0000 (21:31 +0200)]
crimson/osd: implement cls_cxx_write2().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: add support for CEPH_OSD_OP_OMAPSETVALS.
Radoslaw Zarzynski [Tue, 27 Aug 2019 15:23:37 +0000 (17:23 +0200)]
crimson/osd: add support for CEPH_OSD_OP_OMAPSETVALS.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: add support for CEPH_OSD_OP_OMAPGETVALSBYKEYS.
Radoslaw Zarzynski [Tue, 27 Aug 2019 14:43:14 +0000 (16:43 +0200)]
crimson/osd: add support for CEPH_OSD_OP_OMAPGETVALSBYKEYS.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #29037 from zhangsw/rgw-reshard-numshards
Casey Bodley [Fri, 13 Sep 2019 18:04:13 +0000 (14:04 -0400)]
Merge pull request #29037 from zhangsw/rgw-reshard-numshards

rgw: shard number must be non-negative when resharding the bucket

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agocrimson/osd: add support for CEPH_OSD_OP_CREATE.
Radoslaw Zarzynski [Tue, 27 Aug 2019 14:01:49 +0000 (16:01 +0200)]
crimson/osd: add support for CEPH_OSD_OP_CREATE.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agocrimson/osd: ignore CEPH_OSD_OP_TMAPUP like ceph-osd does for EC pools.
Radoslaw Zarzynski [Mon, 26 Aug 2019 18:29:47 +0000 (20:29 +0200)]
crimson/osd: ignore CEPH_OSD_OP_TMAPUP like ceph-osd does for EC pools.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoqa: add script to test how libceph handles huge osdmaps 30363/head
Ilya Dryomov [Wed, 11 Sep 2019 11:15:59 +0000 (13:15 +0200)]
qa: add script to test how libceph handles huge osdmaps

That code will also handle moderately-sized osdmaps when the memory is
fragmented.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #29623 from majianpeng/bluestore-combine-deferred_finisher-and...
Kefu Chai [Fri, 13 Sep 2019 16:35:44 +0000 (00:35 +0800)]
Merge pull request #29623 from majianpeng/bluestore-combine-deferred_finisher-and-finisher

os/bluestore: Merge deferred_finisher and finisher.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #30342 from ifed01/wip-ifed-fix-blues-alerts
Kefu Chai [Fri, 13 Sep 2019 16:34:20 +0000 (00:34 +0800)]
Merge pull request #30342 from ifed01/wip-ifed-fix-blues-alerts

mon/pgmap: fix bluestore alerts output.

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agocrimson/os: Object::read() returns bufferlist instead of never used errcode. 30380/head
Radoslaw Zarzynski [Mon, 9 Sep 2019 11:38:11 +0000 (13:38 +0200)]
crimson/os: Object::read() returns bufferlist instead of never used errcode.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #30372 from tchaikov/wip-crimson-single-pg-peering
Kefu Chai [Fri, 13 Sep 2019 15:54:22 +0000 (23:54 +0800)]
Merge pull request #30372 from tchaikov/wip-crimson-single-pg-peering

crimson/osd: use single-pg peering ops

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge PR #24794 into master
Patrick Donnelly [Fri, 13 Sep 2019 15:36:32 +0000 (08:36 -0700)]
Merge PR #24794 into master

* refs/pull/24794/head:
mds: move BatchOp to separate translation unit
mds: use auto ref during iteration
mds: answering all pending getattr/lookups targeting the same inode in one go

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #28702 into master
Patrick Donnelly [Fri, 13 Sep 2019 15:35:04 +0000 (08:35 -0700)]
Merge PR #28702 into master

* refs/pull/28702/head:
qa: update json format from session listing
mds: recall caps from quiescent sessions
mds: use Session::dump method uniformly
mds: use auto to deduce iterator type
mds: simplify method definition
mds: remove useless debug message
mds: use const get_request_count
mds: use session_info_t socket inst for addr
mds: refactor session lookup
mds: add explicit trim flag
mds: alphabetize tracked config keys
common: provide method to get half-life
common: correct variable name

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge PR #29005 into master
Patrick Donnelly [Fri, 13 Sep 2019 15:33:48 +0000 (08:33 -0700)]
Merge PR #29005 into master

* refs/pull/29005/head:
client: nfs-ganesha with cephfs client, removing dir reports not empty

Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #29594 into master
Patrick Donnelly [Fri, 13 Sep 2019 15:32:10 +0000 (08:32 -0700)]
Merge PR #29594 into master

* refs/pull/29594/head:
mds: reject sessionless messages

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #29752 into master
Patrick Donnelly [Fri, 13 Sep 2019 15:30:13 +0000 (08:30 -0700)]
Merge PR #29752 into master

* refs/pull/29752/head:
mds: make MDSIOContextBase delete itself when shutting down

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30361 into master
Sage Weil [Fri, 13 Sep 2019 14:59:01 +0000 (09:59 -0500)]
Merge PR #30361 into master

* refs/pull/30361/head:
qa/tasks/mon_thrash: sync force requires some force flags

Reviewed-by: João Eduardo Luís <joao@suse.de>
5 years agoMerge pull request #30357 from zhangsw/rgw-cleanup-bilog-status
Casey Bodley [Fri, 13 Sep 2019 14:43:14 +0000 (10:43 -0400)]
Merge pull request #30357 from zhangsw/rgw-cleanup-bilog-status

rgw: add missing bilog status to help info.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agotools/setup-virtualenv.sh: do not default to python2.7 30379/head
Nathan Cutler [Fri, 13 Sep 2019 14:12:52 +0000 (16:12 +0200)]
tools/setup-virtualenv.sh: do not default to python2.7

This commit changes the script's behavior when run without a --python option.
Before, we were running virtualenv with "--python python2.7" in that case.

That is not a reasonable default in September 2019, given that Python 2 EOL is
coming on January 1, 2020. Also, it breaks setup-virtualenv.sh in py3-only
environments.

With this patch, the script will not pass any "--python" option to virtualenv
(i.e., it will let virtualenv do whatever it thinks is best) in this case.

Fixes: https://tracker.ceph.com/issues/41821
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #29081 from wintamute/patch-1
Alfredo Deza [Fri, 13 Sep 2019 14:11:55 +0000 (10:11 -0400)]
Merge pull request #29081 from wintamute/patch-1

Documentation: Add missing ceph-volume lvm batch argument to ceph-volume.rst

Reviewed-by: Alfredo Deza <adeza@redhat.com>
5 years agoMerge PR #30352 into master
Sage Weil [Fri, 13 Sep 2019 13:22:42 +0000 (08:22 -0500)]
Merge PR #30352 into master

* refs/pull/30352/head:
mon: disable min pg per osd warning

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #30284 from Damenly/missing_cmath
Kefu Chai [Fri, 13 Sep 2019 13:06:12 +0000 (21:06 +0800)]
Merge pull request #30284 from Damenly/missing_cmath

tests: add missing header cmath to test/mon/test_mon_memory_target.cc

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: Fix e2e host test 30377/head
Tiago Melo [Fri, 13 Sep 2019 11:02:40 +0000 (11:02 +0000)]
mgr/dashboard: Fix e2e host test

There is a random problem with mds service listing
that is causing a e2e test to fail.

This will temporarily fix this problem.

Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agodoc: Add missing ceph-volume lvm batch argument to ceph-volume.rst 29081/head
Andreas Krebs [Wed, 17 Jul 2019 11:09:34 +0000 (13:09 +0200)]
doc: Add missing ceph-volume lvm batch argument to ceph-volume.rst

The optional argument '--osds-per-device' is missing. Since this is quite helpful when creating NVMe based OSDs, it should be documented.

Signed-off-by: Andreas Krebs <wintamute@gmail.com>
5 years agomgr/dashboard: Increase the global value of jasmine timeout (#30359)
Lenz Grimmer [Fri, 13 Sep 2019 12:18:09 +0000 (12:18 +0000)]
mgr/dashboard: Increase the global value of jasmine timeout (#30359)

mgr/dashboard: Increase the global value of jasmine timeout

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agodoc: document that the kcephfs mount helper will search keyring files for secrets 29817/head
Jeff Layton [Mon, 19 Aug 2019 11:10:30 +0000 (07:10 -0400)]
doc: document that the kcephfs mount helper will search keyring files for secrets

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: fork a child to get info from local configuration
Jeff Layton [Tue, 13 Aug 2019 11:32:00 +0000 (07:32 -0400)]
mount.ceph: fork a child to get info from local configuration

When a secret and/or the mon addrs are not specified by the admin,
then mmap a MAP_SHARED buffer and spawn a child process to get that
info. For safety reasons, the child drops all capabilities other than
CAP_DAC_READ_SEARCH (to ensure that it'll be able to read the keyring,
should one be found). To achieve this, we add a new dependency on
libcap-ng.

Add a new C++ file with a single routine that will create a CephContext,
get a list of monitor addresses and scrape the keyring for a secret for
the specified cephx user.

If that info is found, then it is copied to fixed-length buffers in the
MAP_SHARED area and the child exits successfully.

The parent will then vet the returned info and copy it into the
appropriate fields if they are currently blank.

Fixes: https://tracker.ceph.com/issues/16656
Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: track mon string and path inside ceph_mount_info
Jeff Layton [Tue, 20 Aug 2019 20:27:14 +0000 (16:27 -0400)]
mount.ceph: track mon string and path inside ceph_mount_info

...and separate the parsing and resolution into two separate
functions.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: add name and secret to ceph_mount_info
Jeff Layton [Tue, 20 Aug 2019 18:25:55 +0000 (14:25 -0400)]
mount.ceph: add name and secret to ceph_mount_info

...and move the length defines into mount.ceph.h. Note that we use a
fixed-length buffer for the secret, as it cuts down a copy when we
read_secret_from_file.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: add ceph_mount_info structure
Jeff Layton [Tue, 20 Aug 2019 18:40:23 +0000 (14:40 -0400)]
mount.ceph: add ceph_mount_info structure

Add a new structure to hold current mount information. Move the options
string and the current buffer length into it, as well as the filesystem
mount flags.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: clean up debugging output and error messages
Jeff Layton [Tue, 13 Aug 2019 14:16:18 +0000 (10:16 -0400)]
mount.ceph: clean up debugging output and error messages

Ensure that error messages go to stderr, and add a new
mount_ceph_debug() helper to print debugging messages.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: clean up return codes
Jeff Layton [Tue, 13 Aug 2019 13:28:20 +0000 (09:28 -0400)]
mount.ceph: clean up return codes

Mount helpers should return a specific mask as the return value so
that the caller can interpret what happened. These are detailed in
mount(8) and are already defined in mtab.c.

Fix the helper to return appropriate error codes for different
failure modes. Also, add a goto out target so we can ensure that we
do proper cleanup on failure.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: add comment explaining why we need to modprobe
Jeff Layton [Wed, 14 Aug 2019 11:55:41 +0000 (07:55 -0400)]
mount.ceph: add comment explaining why we need to modprobe

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agomount.ceph: use bools for flags
Jeff Layton [Tue, 13 Aug 2019 10:40:41 +0000 (06:40 -0400)]
mount.ceph: use bools for flags

No need to use a full int for a flag.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agocommon: have read_secret_from_file return negative error codes
Jeff Layton [Tue, 20 Aug 2019 18:48:01 +0000 (14:48 -0400)]
common: have read_secret_from_file return negative error codes

Allow the caller to try to determine what happened.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
5 years agocmake: s/bortli_libs/brotli_libs/ 30374/head
Kefu Chai [Fri, 13 Sep 2019 09:30:22 +0000 (17:30 +0800)]
cmake: s/bortli_libs/brotli_libs/

it's merely a typo.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/tasks: test for prevent negative subvolume size 30058/head
Jos Collin [Fri, 6 Sep 2019 06:10:17 +0000 (11:40 +0530)]
qa/tasks: test for prevent negative subvolume size

Fixes: https://tracker.ceph.com/issues/41617
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agoMerge pull request #29761 from wjwithagen/wjw-fix-venv-python-version
Kefu Chai [Fri, 13 Sep 2019 08:59:27 +0000 (16:59 +0800)]
Merge pull request #29761 from wjwithagen/wjw-fix-venv-python-version

test/venv: do not hardwire to py2.7 for tox tests

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/dashboard: Fix calculation of PG Status percentage (#30343)
Lenz Grimmer [Fri, 13 Sep 2019 08:45:20 +0000 (08:45 +0000)]
mgr/dashboard: Fix calculation of PG Status percentage (#30343)

mgr/dashboard: Fix calculation of PG Status percentage

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agocrimson/osd: require_osd_release >= octopus to boot 30372/head
Kefu Chai [Fri, 13 Sep 2019 07:38:50 +0000 (15:38 +0800)]
crimson/osd: require_osd_release >= octopus to boot

we assume that crimson will GA after octopus+2, so no need to be
compatible with pre-octopus releases.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: use single-pg peering ops
Kefu Chai [Fri, 13 Sep 2019 07:18:58 +0000 (15:18 +0800)]
crimson/osd: use single-pg peering ops

classic OSD started to use single-pg peering ops since ce05c172, and it
switched over to these ops since octopus. and it's assumed that
crimson-osd won't be GA until octopus+2 release, so it's not needed to
support pre-octopus releases.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: pass octopus to PeeringCtx's constructor
Kefu Chai [Fri, 13 Sep 2019 05:14:02 +0000 (13:14 +0800)]
crimson/osd: pass octopus to PeeringCtx's constructor

to accommodate the change of 77ecc327

classic OSD started to use single-pg peering ops since ce05c172, and it
switched over to these ops since octopus. and it's assumed that
crimson-osd won't be GA until octopus+2 release, so it's not needed to
support pre-octopus releases. hence "octopus" is passed to PeeringCtx's
constructor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30285 from IlsooByun/slow_op_report
Kefu Chai [Fri, 13 Sep 2019 07:53:30 +0000 (15:53 +0800)]
Merge pull request #30285 from IlsooByun/slow_op_report

mgr: do not reset reported if a new metric is not collected

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocephfs-shell: handle du's arguments elsewhere outside do_du() 28560/head
Rishabh Dave [Fri, 23 Aug 2019 12:50:04 +0000 (18:20 +0530)]
cephfs-shell: handle du's arguments elsewhere outside do_du()

Create new action class for do_du()'s args.paths and push the code that
handles arguments for do_du() in there. The intention is to keep only
the code that does some disk usage stuff in do_du().

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agocephfs-shell: reuse code
Rishabh Dave [Tue, 20 Aug 2019 12:18:07 +0000 (17:48 +0530)]
cephfs-shell: reuse code

Make path_to_bytes.__call__() call to_bytes() and get rid of the code
within path_to_bytes.__call__().

Signed-off-by: Rishabh Dave <ridave@redhat.com>