]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoosd/PrimaryLogPG: do not append outdata to TMAPUP ops 30457/head
Jason Dillaman [Wed, 18 Sep 2019 13:52:17 +0000 (09:52 -0400)]
osd/PrimaryLogPG: do not append outdata to TMAPUP ops

Write operations should not have data but TMAPUP incorrectly appends
the previously read TMAP object to the outdata buferlist.

Fixes: https://tracker.ceph.com/issues/41908
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30452 from idryomov/wip-krbd-discard-direct
Ilya Dryomov [Wed, 18 Sep 2019 12:53:43 +0000 (14:53 +0200)]
Merge pull request #30452 from idryomov/wip-krbd-discard-direct

qa: avoid page cache for krbd discard round off tests

Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30386 from tchaikov/wip-run_tox.sh-cleanup
Kefu Chai [Wed, 18 Sep 2019 12:11:23 +0000 (20:11 +0800)]
Merge pull request #30386 from tchaikov/wip-run_tox.sh-cleanup

script/run_tox.sh: remove unused code

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #29734 from hselin/rados_bench_rand_read
Kefu Chai [Wed, 18 Sep 2019 11:42:23 +0000 (19:42 +0800)]
Merge pull request #29734 from hselin/rados_bench_rand_read

tools/rados: use num ops instead of num objs for tracking outstanding IO

Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #29767 from votdev/issue_41314
Laura Paduano [Wed, 18 Sep 2019 09:40:45 +0000 (11:40 +0200)]
Merge pull request #29767 from votdev/issue_41314

mgr/dashboard: Editing RGW bucket fails because of name is already in use

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #30313 from cyx1231st/wip-seastar-msgr-test-racing-crimson
Kefu Chai [Wed, 18 Sep 2019 09:08:12 +0000 (17:08 +0800)]
Merge pull request #30313 from cyx1231st/wip-seastar-msgr-test-racing-crimson

crimson/net: v2 racing tests, stall tests and bug fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/net: log out_q size when execute_ready() 30313/head
Yingxin Cheng [Mon, 16 Sep 2019 06:17:30 +0000 (14:17 +0800)]
crimson/net: log out_q size when execute_ready()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: set exit_open atomically with write_dispatching
Yingxin Cheng [Mon, 16 Sep 2019 03:54:39 +0000 (11:54 +0800)]
crimson/net: set exit_open atomically with write_dispatching

exit_open should be set atomically with state checks and
write_dispatching changes, or there would be chances to be blocked
forever by exit_open.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: add timeout feature for blockers to fail
Yingxin Cheng [Thu, 12 Sep 2019 07:17:21 +0000 (15:17 +0800)]
test/crimson: add timeout feature for blockers to fail

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: improve loggings for test operations
Yingxin Cheng [Thu, 12 Sep 2019 02:08:19 +0000 (10:08 +0800)]
test/crimson: improve loggings for test operations

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: chain non-discardable futures
Yingxin Cheng [Wed, 11 Sep 2019 06:27:53 +0000 (14:27 +0800)]
crimson/net: chain non-discardable futures

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: discard and add note to discardable futures
Yingxin Cheng [Wed, 11 Sep 2019 06:24:48 +0000 (14:24 +0800)]
crimson/net: discard and add note to discardable futures

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: discard future returned by close()
Yingxin Cheng [Wed, 11 Sep 2019 06:09:45 +0000 (14:09 +0800)]
crimson/net: discard future returned by close()

It's OK to discard the returned future of Connection::close() because
Messenger::shutdown() will wait for all connections closed.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: explicitly discard future from with_gate()
Yingxin Cheng [Wed, 11 Sep 2019 05:51:24 +0000 (13:51 +0800)]
crimson/net: explicitly discard future from with_gate()

We are using with_gate() to wrap a slow operation when we want to start
it but don't want/need to wait it to be finished in the same function.
In this case, the future returned from with_gate() is discarded, and we
need to make sure there is another continuation responsible to waiting
for the gate closed.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: test connection stall cases for v2
Yingxin Cheng [Wed, 11 Sep 2019 01:44:43 +0000 (09:44 +0800)]
test/crimson: test connection stall cases for v2

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: implement STALL action for breakpoint
Yingxin Cheng [Wed, 11 Sep 2019 01:39:27 +0000 (09:39 +0800)]
test/crimson: implement STALL action for breakpoint

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: test connect-reconnect racing cases for v2
Yingxin Cheng [Wed, 11 Sep 2019 01:46:22 +0000 (09:46 +0800)]
test/crimson: test connect-reconnect racing cases for v2

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: always dispatch accept when replaced/accepted
Yingxin Cheng [Fri, 6 Sep 2019 04:47:32 +0000 (12:47 +0800)]
crimson/net: always dispatch accept when replaced/accepted

Fix issues of missing dispatches of accept event during connection
racing.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: test connect racing cases for v2
Yingxin Cheng [Fri, 6 Sep 2019 03:44:45 +0000 (11:44 +0800)]
test/crimson: test connect racing cases for v2

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: fix tests with the new ESTABLISHING state
Yingxin Cheng [Fri, 6 Sep 2019 03:42:48 +0000 (11:42 +0800)]
test/crimson: fix tests with the new ESTABLISHING state

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: add ESTABLISHING state
Yingxin Cheng [Fri, 6 Sep 2019 03:31:06 +0000 (11:31 +0800)]
crimson/net: add ESTABLISHING state

With the new ESTABLISHING state, connection lookup and acceptance can be
atomic, solving the issues related to racing connect.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: test reconnect racing cases for v2
Yingxin Cheng [Fri, 6 Sep 2019 03:01:16 +0000 (11:01 +0800)]
test/crimson: test reconnect racing cases for v2

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: implement BLOCK action for breakpoint
Yingxin Cheng [Fri, 6 Sep 2019 02:56:41 +0000 (10:56 +0800)]
test/crimson: implement BLOCK action for breakpoint

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: implement different ways to wait in tests
Yingxin Cheng [Fri, 6 Sep 2019 02:46:47 +0000 (10:46 +0800)]
test/crimson: implement different ways to wait in tests

wait_replaced(count): wait for connection replaced;
wait_established(): wait for all pending messages sent and received;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: log intercepted breakpoint with counter
Yingxin Cheng [Fri, 6 Sep 2019 02:32:24 +0000 (10:32 +0800)]
test/crimson: log intercepted breakpoint with counter

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: improve loggings related to state change
Yingxin Cheng [Fri, 6 Sep 2019 02:23:34 +0000 (10:23 +0800)]
crimson/net: improve loggings related to state change

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: always validate state when switch to another
Yingxin Cheng [Fri, 6 Sep 2019 01:58:01 +0000 (09:58 +0800)]
crimson/net: always validate state when switch to another

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: use bp_type_t for breakpoint type
Yingxin Cheng [Fri, 6 Sep 2019 01:41:59 +0000 (09:41 +0800)]
test/crimson: use bp_type_t for breakpoint type

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agotest/crimson: don't send msg from lossy server
Yingxin Cheng [Wed, 11 Sep 2019 07:00:21 +0000 (15:00 +0800)]
test/crimson: don't send msg from lossy server

It is possible to lose message at server side due to lossy policy,
causing unit test blocked and waiting for lost replies.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agocrimson/net: add SocketConnection::peer_wins()
Yingxin Cheng [Thu, 5 Sep 2019 08:36:32 +0000 (16:36 +0800)]
crimson/net: add SocketConnection::peer_wins()

Also expose Connection::peer_wins() to unit tests.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agoqa: avoid page cache for krbd discard round off tests 30452/head
Ilya Dryomov [Tue, 17 Sep 2019 16:55:18 +0000 (18:55 +0200)]
qa: avoid page cache for krbd discard round off tests

rbd rounds off and ignores discards that are smaller than alloc_size,
but the page cache is invalidated according to the original offset and
length, before calling into the driver.  For a 512~4193792 discard, all
pages except for the first will be invalidated, but the first page may
remain cached after being partially zeroed out.  This results in an
inconsistency when alloc_size != 512.  E.g. for 64k:

                0       512     4k      64k             4M
                |       |       |       |               |
  page cache:   xxxxxxxx00000000xxxxxxxx0000000000000000
       RADOS:   xxxxxxxxxxxxxxxxxxxxxxxx0000000000000000

Given that these tests asserts on-disk state, we need to read directly
from disk.  krbd_discard_512b.t and krbd_zeroout.t are fine -- there is
no rounding there.

Fixes: https://tracker.ceph.com/issues/41753
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #29839 from hualongfeng/master
Casey Bodley [Tue, 17 Sep 2019 17:49:20 +0000 (13:49 -0400)]
Merge pull request #29839 from hualongfeng/master

doc/radosgw/admin:fix how to modify subuser info

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30392 from zhangsw/rgw-cleanup-trimusage
Casey Bodley [Tue, 17 Sep 2019 16:37:37 +0000 (12:37 -0400)]
Merge pull request #30392 from zhangsw/rgw-cleanup-trimusage

rgw: change MAX_USAGE_TRIM_ENTRIES value from 128 to 1000.

Reviewed-by: Casey Bodley <cbodley@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 agorgw: change MAX_USAGE_TRIM_ENTRIES value from 128 to 1000. 30392/head
zhang Shaowen [Mon, 16 Sep 2019 02:32:19 +0000 (10:32 +0800)]
rgw: change MAX_USAGE_TRIM_ENTRIES value from 128 to 1000.

Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
5 years agotools/rados: Fix rand & seq read bench to use num ops instead of num objs when issuin... 29734/head
Albert H Chen [Sun, 15 Sep 2019 19:40:55 +0000 (19:40 +0000)]
tools/rados: Fix rand & seq read bench to use num ops instead of num objs when issuing and tracking outstanding IO

ObjBencher::seq_read_bench() is using "num_objects > data.started" to make sure
we don't issue more reads than what was written during ObjBencher::write_bench().
However, this does not work op_size != object_size as data.started is number of read
ops issued, not number of objects read.
This fix modifies ObjBencher::seq_read_bench() to use "num_ops > data.started" instead.
Where "num_ops" is metadata saved at the end of ObjBencher::write_bench().

ObjBencher::rand_read_bench() is using "rand() % num_objects" for rand_id and
"rand_id / reads_per_object" to generate object name.
This will not work correctly when reads_per_object != 1 (i.e. when op_size != object_size).
For example, if reads_per_object = 100 and num_objects = 2, then all generated
reads will be directed towards the first object, with no read for the second object.
This fix modifies ObjBencher::rand_read_bench() to use "rand() % num_ops" for rand_id instead.
Where "num_ops" is metadata saved at the end of ObjBencher::write_bench().

This patch also modifies ObjBencher::write_bench() to save number of write operations issued
(num_ops above), rather than number of objects written (num_objects). We can always derive
num_objects based on "(num_ops + ops_per_object - 1) / ops_per_object" where "ops_per_object"
is simply object_size / op_size.

Signed-off-by: Albert H Chen <hselin.chen@gmail.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 agoscript/run_tox.sh: remove unused code 30386/head
Kefu Chai [Sun, 15 Sep 2019 07:45:00 +0000 (15:45 +0800)]
script/run_tox.sh: remove unused code

it's a follow-up of 793308f8, where the code to use python2/python3 to
determine env_list was removed already

Signed-off-by: Kefu Chai <tchaikov@gmail.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>