]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocls/rbd: sanitize entity instance messenger version type 30438/head
Jason Dillaman [Tue, 17 Sep 2019 19:49:48 +0000 (15:49 -0400)]
cls/rbd: sanitize entity instance messenger version type

The entity_addr_t::type field does not uniquely identify the connection
and might switch back and forth between LEGACY, V2, and ALL depending on
the client, the OSD, and the OSD map feature bits. Therefore, always
fix the entity address type to ANY prior to any comparisons.

Fixes: https://tracker.ceph.com/issues/41833
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30393 from tianshan/fix_data_sync_noent
Casey Bodley [Tue, 17 Sep 2019 16:33:49 +0000 (12:33 -0400)]
Merge pull request #30393 from tianshan/fix_data_sync_noent

rgw: fix data sync start delay if remote haven't init data_log

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30381 from ajarr/fix-40689
Venky Shankar [Tue, 17 Sep 2019 16:23:49 +0000 (21:53 +0530)]
Merge pull request #30381 from ajarr/fix-40689

doc: add ceph fs volumes and subvolumes documentation

5 years agoMerge pull request #30053 from mxdInspur/fix_20190901
Jason Dillaman [Tue, 17 Sep 2019 15:17:23 +0000 (11:17 -0400)]
Merge pull request #30053 from mxdInspur/fix_20190901

librbd: adjust the else-if conditions in validate_striping()

5 years agoMerge pull request #30314 from Songweibin/wip-rbd-pybind
Jason Dillaman [Tue, 17 Sep 2019 15:16:50 +0000 (11:16 -0400)]
Merge pull request #30314 from Songweibin/wip-rbd-pybind

rbd/pybind: fix unsupported format character of %lx

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
5 years agoMerge pull request #30429 from smithfarm/wip-rn-14.2.4
Alfredo Deza [Tue, 17 Sep 2019 14:05:08 +0000 (10:05 -0400)]
Merge pull request #30429 from smithfarm/wip-rn-14.2.4

doc/releases: Ceph Nautilus v14.2.4 Release Notes

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agodoc/releases: Ceph Nautilus v14.2.4 Release Notes 30429/head
Nathan Cutler [Tue, 17 Sep 2019 13:00:05 +0000 (15:00 +0200)]
doc/releases: Ceph Nautilus v14.2.4 Release Notes

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #30193 from cbodley/wip-qa-s3test-website
Casey Bodley [Tue, 17 Sep 2019 12:50:49 +0000 (08:50 -0400)]
Merge pull request #30193 from cbodley/wip-qa-s3test-website

qa/rgw: add new rgw/website suite for static website tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30389 from batrick/i41835
Venky Shankar [Tue, 17 Sep 2019 12:31:22 +0000 (18:01 +0530)]
Merge pull request #30389 from batrick/i41835

mds: drive cap recall while dropping cache

5 years agoqa/rgw: rgw/website suite uses subdomain calling format 30193/head
Casey Bodley [Fri, 6 Sep 2019 19:08:29 +0000 (15:08 -0400)]
qa/rgw: rgw/website suite uses subdomain calling format

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/rgw: add new rgw/website suite for static website tests
Casey Bodley [Thu, 5 Sep 2019 19:54:10 +0000 (15:54 -0400)]
qa/rgw: add new rgw/website suite for static website tests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/rgw: s3test tasks sets s3website_domain to match dns-s3website-name
Casey Bodley [Thu, 5 Sep 2019 19:52:15 +0000 (15:52 -0400)]
qa/rgw: s3test tasks sets s3website_domain to match dns-s3website-name

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/s3tests: use correct endpoint from rgw_server
Casey Bodley [Thu, 5 Sep 2019 19:51:16 +0000 (15:51 -0400)]
qa/s3tests: use correct endpoint from rgw_server

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/ragweed: use correct endpoint from rgw_server
Casey Bodley [Thu, 5 Sep 2019 19:50:26 +0000 (15:50 -0400)]
qa/ragweed: use correct endpoint from rgw_server

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/rgw: fix for extra_args in s3tests task
Casey Bodley [Thu, 5 Sep 2019 19:48:43 +0000 (15:48 -0400)]
qa/rgw: fix for extra_args in s3tests task

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30218 from cbodley/wip-qa-rgw-barbican
Casey Bodley [Tue, 17 Sep 2019 12:17:30 +0000 (08:17 -0400)]
Merge pull request #30218 from cbodley/wip-qa-rgw-barbican

qa/rgw: add integration test for sse-kms with barbican

Reviewed-by: Ali Maredia <amaredia@redhat.com>
5 years agodoc: add ceph fs volumes and subvolumes documentation 30381/head
Ramana Raja [Fri, 13 Sep 2019 11:08:41 +0000 (16:38 +0530)]
doc: add ceph fs volumes and subvolumes documentation

Fixes: https://tracker.ceph.com/issues/40689
Signed-off-by: Ramana Raja <rraja@redhat.com>
5 years agomgr/dashboard: Improve workaround to redraw datatables (#30335)
Lenz Grimmer [Tue, 17 Sep 2019 08:48:34 +0000 (08:48 +0000)]
mgr/dashboard: Improve workaround to redraw datatables (#30335)

mgr/dashboard: Improve workaround to redraw datatables

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
5 years agomgr/dashboard: Firefox ngx-datatable performance issue (#30316)
Lenz Grimmer [Tue, 17 Sep 2019 08:40:35 +0000 (08:40 +0000)]
mgr/dashboard: Firefox ngx-datatable performance issue (#30316)

mgr/dashboard: Firefox ngx-datatable performance issue

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #30351 from dillaman/wip-41780
Mykola Golub [Tue, 17 Sep 2019 07:18:06 +0000 (10:18 +0300)]
Merge pull request #30351 from dillaman/wip-41780

rbd-mirror: cannot restore deferred deletion mirrored images

Reviewed-by: Mykola Golub <mgolub@suse.com>
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 agomgr/dashboard: Firefox ngx-datatable performance issue 30316/head
Patrick Seidensal [Fri, 13 Sep 2019 15:02:18 +0000 (17:02 +0200)]
mgr/dashboard: Firefox ngx-datatable performance issue

Fixes: https://tracker.ceph.com/issues/41667
Signed-off-by: Patrick Seidensal <pseidensal@suse.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 agorgw: fix data sync start delay if remote haven't init data_log 30393/head
Tianshan Qu [Mon, 16 Sep 2019 05:59:31 +0000 (13:59 +0800)]
rgw: fix data sync start delay if remote haven't init data_log

Fixes: https://tracker.ceph.com/issues/41839
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
5 years agomds: drive cap recall while dropping cache 30389/head
Patrick Donnelly [Mon, 16 Sep 2019 00:52:29 +0000 (17:52 -0700)]
mds: drive cap recall while dropping cache

STEADY does not imply TRIM. We want to always trim as many caps as
possible.

Introduced-by: be49866a150e04438cef971dec7948eaf34852fc
Fixes: https://tracker.ceph.com/issues/41835
Signed-off-by: Patrick Donnelly <pdonnell@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 agoqa/keystone: add --debug to openstack commands 30218/head
Casey Bodley [Thu, 12 Sep 2019 18:02:29 +0000 (14:02 -0400)]
qa/keystone: add --debug to openstack commands

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/keystone: save keystone config to archive dir
Casey Bodley [Thu, 12 Sep 2019 17:02:36 +0000 (13:02 -0400)]
qa/keystone: save keystone config to archive dir

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/tempest: update url for upper-constraints.txt in tox.ini
Casey Bodley [Wed, 11 Sep 2019 20:45:10 +0000 (16:45 -0400)]
qa/tempest: update url for upper-constraints.txt in tox.ini

the tox command fails to invoke tools/tox_install.sh because it passes
a stale url for its extra requirements. patch that url in tox.ini

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/barbican: pin barbican to 5.0.1 release
Casey Bodley [Wed, 11 Sep 2019 13:54:50 +0000 (09:54 -0400)]
qa/barbican: pin barbican to 5.0.1 release

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/keystone: hardcode --os-identity-api-version 2.0
Casey Bodley [Tue, 10 Sep 2019 21:09:48 +0000 (17:09 -0400)]
qa/keystone: hardcode --os-identity-api-version 2.0

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/keystone: add requirements.txt with python-openstackclient
Casey Bodley [Tue, 10 Sep 2019 19:49:45 +0000 (15:49 -0400)]
qa/keystone: add requirements.txt with python-openstackclient

works around a VersionConflict error by including the requirements on
jsonschema when installing python-openstackclient

also pin the version of python-openstackclient, because newer clients
don't seem to recognize --os-url

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/keystone: log to a file in the archive dir
Casey Bodley [Fri, 6 Sep 2019 19:39:24 +0000 (15:39 -0400)]
qa/keystone: log to a file in the archive dir

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/keystone: pip install bindep
Casey Bodley [Thu, 5 Sep 2019 18:06:45 +0000 (14:06 -0400)]
qa/keystone: pip install bindep

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/keystone: use bindep to discover keystone's dependencies
Casey Bodley [Thu, 5 Sep 2019 15:09:26 +0000 (11:09 -0400)]
qa/keystone: use bindep to discover keystone's dependencies

downloads the keystone repository first, because we need
keystone/bindep.txt to discover the binary dependencies

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/keystone: add missing ConfigError import
Casey Bodley [Tue, 3 Sep 2019 20:06:23 +0000 (16:06 -0400)]
qa/keystone: add missing ConfigError import

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa: barbican task doesn't look for ceph release branches
Casey Bodley [Tue, 3 Sep 2019 19:25:05 +0000 (15:25 -0400)]
qa: barbican task doesn't look for ceph release branches

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa: remove unnecessary imports in barbican task
Casey Bodley [Tue, 3 Sep 2019 19:24:40 +0000 (15:24 -0400)]
qa: remove unnecessary imports in barbican task

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/rgw: crypt suite uses clusters/fixed-1.yaml
Casey Bodley [Tue, 3 Sep 2019 19:24:10 +0000 (15:24 -0400)]
qa/rgw: crypt suite uses clusters/fixed-1.yaml

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoqa/rgw: abstract out barbican under 2-kms/
Casey Bodley [Tue, 3 Sep 2019 14:28:28 +0000 (10:28 -0400)]
qa/rgw: abstract out barbican under 2-kms/

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agotasks/barbican: Added task to deploy and configure barbican
Adam Kupczyk [Mon, 21 Aug 2017 09:34:21 +0000 (11:34 +0200)]
tasks/barbican: Added task to deploy and configure barbican

Fixed keystone, rgw and s3tests tasks to work with it.

Signed-off-by: Adam Kupczyk <akupczyk@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>