]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
xie xingguo [Fri, 20 Sep 2019 07:33:40 +0000 (15:33 +0800)]
osd/PeeringState: recover_got - add special handler for empty log
If we use a small osd_min[max]_pg_log_entries setting, say, 10, and
do splitting, a child pg may only be able to keep some divergent log
entries in the list. Any follow-up peering cycle on that child pg
would then rewind all the divergent log entries and lead to an empty
log list, which as a result could reliably fire the
ceph_assert(info.last_complete == info.last_update)
assert if we start to recover any of the missing divergent objects
later.
Fixes: https://tracker.ceph.com/issues/41816
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
David Zafman [Wed, 18 Sep 2019 16:18:46 +0000 (09:18 -0700)]
Merge pull request #30440 from dzafman/wip-41900
Revert "common: default pg_autoscale_mode=on for new pools"
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Wed, 18 Sep 2019 15:47:59 +0000 (23:47 +0800)]
Merge pull request #30458 from tchaikov/wip-crimson-cbt-test
test/crimson: lower the bar for cbt test
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Kefu Chai [Wed, 18 Sep 2019 15:38:03 +0000 (23:38 +0800)]
Merge pull request #30433 from tchaikov/wip-crimson-pgls
crimson/osd: add pgls support
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Kefu Chai [Tue, 17 Sep 2019 16:13:27 +0000 (00:13 +0800)]
crimson/osd: add pgls_filter support
it's modeled after pgnls_filter. and use seastar::map_reduce() for
filtering the objects into the response.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 17 Sep 2019 16:10:19 +0000 (00:10 +0800)]
crimson/osd: return hobject_t from pgls_filter()
so we can use it as the mapper function in seastar::map_reduce().
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 18 Sep 2019 14:57:07 +0000 (22:57 +0800)]
crimson/osd: add pgls support
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 18 Sep 2019 14:54:37 +0000 (22:54 +0800)]
crimson/osd: handle pg ops with do_pg_ops()
currently, OpsExecuter tries to load the object info for all ops to be
executed, but the PG ops do not require the existence of object
specified by op. so we need to specialize for them.
in this change,
* `OpsExecuter::execute_pg_op()` is added to handle pg ops without
loading object info first.
* `pgnls` and `pgnls_filter` are handled by
`OpsExecuter::execute_pg_op()`.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 17 Sep 2019 14:25:46 +0000 (22:25 +0800)]
crimson/osd/OpsExecuter: pass nspace in msg to do_pg_op()
as pg ops should not require the object info, as there is chance that
the object specified in pg ops does not exist at all.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 17 Sep 2019 14:22:02 +0000 (22:22 +0800)]
crimson/osd/OpsExecuter: s/do_osd_op/execute_osd_op/
will add execute_pg_op() for performing pg specific ops, which do not
need the object state.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 18 Sep 2019 14:26:47 +0000 (22:26 +0800)]
test/crimson: lower the bar for cbt test
sometimes we have
13:27:59 - WARNING - cbt -prefill/incerta08.front.sepia.ceph.com/0: iops_stddev: (or (less) (near 0.05)):: 13.0/9.53939 => rejected
i think it's acceptable
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 18 Sep 2019 14:24:04 +0000 (22:24 +0800)]
github: add "jenkins test crimson perf" to triggers doc
Signed-off-by: Kefu Chai <kchai@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
David Zafman [Tue, 17 Sep 2019 21:40:57 +0000 (14:40 -0700)]
Revert "common: default pg_autoscale_mode=on for new pools"
This reverts commit
91e4fc24e785a25884125df6762ab2304bf8908b .
Fixes: https://tracker.ceph.com/issues/41900
Signed-off-by: David Zafman <dzafman@redhat.com>
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>
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>
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>
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>
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
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()
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>