Commit Graph

98028 Commits

Author SHA1 Message Date
Ricardo Marques
f243f7a531 mgr/dashboard: Fix iSCSI form when using IPv6
Fixes: https://tracker.ceph.com/issues/39578

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2019-05-07 09:38:41 +01:00
Kefu Chai
4a8d366672
Merge pull request #27975 from tchaikov/wip-pidfile_write
global/pidfile: pass string_view instead of ConfigProxy to pidfile_wr…

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-05-07 11:19:13 +08:00
Sage Weil
55d5ed4f77 Merge PR #27932 into master
* refs/pull/27932/head:
	osd: clean up osdmap sharing
	osd: minor cleanup in dequeue_op

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-05-06 21:40:11 -05:00
Gregory Farnum
6dbe49605e
Merge pull request #26152 from noonedeadpunk/mgr/zabbix_discovery
mgr/zabbix Added pools discovery and per-pool statistics

Reviewed-by: Wido den Hollander <wido@42on.com>
2019-05-06 13:15:54 -07:00
Sebastian Wagner
5affd3b943 Apply suggestions from code review
Signed-off-by: Dmitriy Rabotjagov <noonedeadpunk@ya.ru>
2019-05-06 20:33:22 +03:00
Casey Bodley
f5c515e72a
Merge pull request #27967 from liewegas/wip-fix-rgw-bias
rgw/rgw_tools: fix 'osd pool set' json syntax

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-05-06 13:05:54 -04:00
Lenz Grimmer
22d6a82ad9
mgr/dashboard: Allow the decrease of pg's of an existing pool (#27785)
mgr/dashboard: Allow the decrease of pg's of an existing pool

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-05-06 17:38:34 +02:00
Casey Bodley
1da57c3aa7
Merge pull request #27977 from cbodley/wip-39597
doc/rgw: document CreateBucketConfiguration for s3 PUT Bucket api

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
2019-05-06 10:50:07 -04:00
Kefu Chai
4276ee233a
Merge pull request #27968 from iotcg/master
vstart.sh: correct ceph-run path

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-05-06 21:39:16 +08:00
Casey Bodley
e97668bb7a doc/rgw: document CreateBucketConfiguration for s3 PUT Bucket api
Fixes: http://tracker.ceph.com/issues/39597

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-05-06 09:33:07 -04:00
Kefu Chai
89d62afcdf global/pidfile: pass string_view instead of ConfigProxy to pidfile_write()
there is no need to pass ConfigProxy to this function. and passing a
string_view also make it easier to reuse this function.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-06 21:04:27 +08:00
Casey Bodley
c2b0fa3c79
Merge pull request #27970 from Liuchang0812/duplicate-tags-bl
rgw: eliminates duplicated tags_bl var

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-05-06 08:43:46 -04:00
Lenz Grimmer
1991495a22
doc: fix small typo in dashboard documentation (#27850)
doc: fix small typo in dashboard documentation

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
2019-05-06 10:22:39 +02:00
Changcheng Liu
ce534b4f63 vstart.sh: correct ceph-run path
ceph-run is in the same directory as vstart.sh. It's often that
vstart.sh is run under build directory. Without giving the right
directory, ceph-run file can't be found.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
2019-05-06 15:17:33 +08:00
Chang Liu
533ba85d17 rgw: eliminates duplicated tags_bl var
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
2019-05-06 15:05:50 +08:00
Kefu Chai
1b414e8281
Merge pull request #27538 from iotcg/radosgw
init-radosgw: use ceph-conf to get cluster configuration value

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-05-06 13:29:46 +08:00
Sage Weil
3ee793d603 rgw/rgw_tools: fix 'osd pool set' json syntax
Fixes af30e3a512

Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-05 20:31:09 -05:00
Kefu Chai
ba970314fe
Merge pull request #27885 from b-ranto/wip-restful-perf-counters
restful: Expose perf counters

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-05-04 13:28:13 +08:00
Kefu Chai
382a3efddf
Merge pull request #27891 from tchaikov/wip-mgr-pgp-num-change-throttling
mgr/DaemonServer: refactor pgp_num changes throttling

Reviewed-by: Sage Weil <sage@redhat.com>
2019-05-04 13:26:39 +08:00
Yuri Weinstein
bb4bceb3b2
Merge pull request #27960 from yuriw/wip-yuriw-crontab-master
qa/tests: removed all runs on ovh
2019-05-03 13:36:56 -07:00
J. Eric Ivancich
a7b4667954
Merge pull request #27896 from ivancich/wip-add-rgw-period-comments
rgw: add some comments to rgw code to help explain functionality

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-05-03 16:12:48 -04:00
Yuri Weinstein
e96f61a205
Merge pull request #27956 from yuriw/wip-yuriw-smoke-master
qa/tests - cleaned up distro settings
2019-05-03 13:06:11 -07:00
Yuri Weinstein
e699d9026d qa/tests: removed all runs on ovh
and consolidated `smoke` runs re: https://github.com/ceph/ceph/pull/27956

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2019-05-03 12:40:59 -07:00
J. Eric Ivancich
8111dd712b rgw: add some comments to rgw code to help explain functionality
Comments to explain the role of RGWPeriod and the use of prefixes in
gc log entries are added. Some other comments are reformatted for 80
columns.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2019-05-03 15:29:59 -04:00
Casey Bodley
10e9fa3df0
Merge pull request #27838 from yuvalif/wip-yuval-pubsub_teuthology-new
rgw/pubsub: add multisite pubsub tests to teuthology

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-05-03 14:49:25 -04:00
Yuri Weinstein
52fdf23026 qa/tests - cleaned up distro settings
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2019-05-03 08:21:42 -07:00
Lenz Grimmer
9b99ed9157
Merge pull request #27448 from ricardoasmarques/upgrade-ceph-iscsi-version
mgr/dashboard: Support ceph-iscsi config v9

Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-05-03 13:10:23 +02:00
Nathan Cutler
9b5815f505
Merge pull request #27887 from smithfarm/wip-bci-len255plus
script/backport-create-issue: handle long Redmine issue names

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-05-03 13:06:08 +02:00
Mykola Golub
7f80660068
Merge pull request #27895 from dillaman/wip-librbd-zero-copy
librbd: support zero-copy writes via the C API

Reviewed-by: Mykola Golub <mgolub@suse.com>
2019-05-03 10:19:06 +03:00
Kefu Chai
dfdb1d0810
Merge pull request #16929 from amitkumar50/cov-rgw-1
rgw: Initialize member variables in rgw_sync.h, rgw_rados.h

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2019-05-03 13:25:42 +08:00
Kefu Chai
88d2f975af
Merge pull request #27927 from tchaikov/wip-util.collect_sys_info-is-optional
test/common/test_util: skip it if /etc/os-release does not exist

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2019-05-03 10:34:49 +08:00
Sage Weil
573913c2e8 osd: clean up osdmap sharing
- always use the Session::last_sent_epoch value, both for clients and osds
- get rid of the stl map<> of peer epochs
- consolidate all map sharing into a single maybe_share_map()
- optionally take a lower bound on the peer's epoch, for use when it is
  available (e.g., when we are handling a message that specifies what
  epoch the peer had when it sent the message)
- use const OSDMapRef& where possible
- drop osd->is_active() check, since we no longer have any dependency on
  OSD[Service] state beyond our osdmap

The old callchain was convoluted, partly because it was needlessly
separated into several layers of helpers, and partly because the tracking
for clients and peer OSDs was totally different.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-02 14:44:49 -05:00
Sage Weil
7472219695 osd: minor cleanup in dequeue_op
Signed-off-by: Sage Weil <sage@redhat.com>
2019-05-02 14:32:09 -05:00
Casey Bodley
7a28272c34
Merge pull request #27897 from ivancich/wip-add-editor-comments-rgw-services
rgw: add editor directive comments to rgw services source files

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-05-02 14:23:33 -04:00
Abhishek L
ae8fe24b6f
Merge pull request #27820 from smithfarm/wip-39361
rgw: drop cloud sync module logs attrs from the log

Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
2019-05-02 19:52:57 +02:00
Kefu Chai
66de7bd8cc test: do not conditionize on GTEST_HAS_PARAM_TEST
value-parameterized is supported on all platforms, so drop this check

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-03 01:38:27 +08:00
Kefu Chai
71f5f3e8da test: s/INSTANTIATE_TEST_CASE_P/INSTANTIATE_TEST_SUITE_P/
the former is deprecated

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-03 01:35:04 +08:00
Jason Dillaman
ade792ee03 qa/valgrind.supp: added false-positive in boost::queue::lockfree
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 12:59:57 -04:00
Kefu Chai
45629975ac test/rbd_mirror: add "using ::testing::DoAll"
we should `using` it before calling it using `DoAll`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-03 00:53:17 +08:00
Kefu Chai
61e4a521b2 test/common/test_util: skip it if /etc/os-release does not exist
some GNU/Linux distros do not ship this file, and we should not fail the
test on them.

inspired by
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/ceph-skip-collect-sys-info-test.patch?id=48f19e60c4677e392ee2c23f28098cfcaf9d1710

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-03 00:09:15 +08:00
Kefu Chai
d4387d33ef cmake: do not install googletest
the new googletest added an option to allow its consumer to skip this,
so instead of patching googletest, let's use this option.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-02 23:52:45 +08:00
Kefu Chai
9acf335464 googletest: pick up GTEST_SKIP() changes
so we can use it to disable test at runtime

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-05-02 23:52:25 +08:00
Yuval Lifshitz
51fc8a40e3 rgw/pubsub: fix more test issues with teuthology failures
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-05-02 18:51:59 +03:00
Jason Dillaman
4876450faf librbd: use zero-copy on write via the C API when cache is disabled
It will also be disabled when using synchronous write API methods.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 09:30:45 -04:00
Jason Dillaman
308fcc3456 common/deleter: added missing headers
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 09:30:45 -04:00
Jason Dillaman
2856777613 librbd: allow AioCompletion objects to be blocked
This will be used when user-provided memory is wrapped into a
ceph::buffer::raw pointer to prevent its release prior to the
drop of its last reference internally.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 09:30:45 -04:00
Jason Dillaman
e2ee3cd50c librbd: AioCompletion fail path should complete in clean thread
Ensure that no internal librbd locks are being held when the
callbacks are invoked for AioCompletion::fail.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 09:30:45 -04:00
Jason Dillaman
4a2e2e08c0 librbd: simplify AioCompletion reference counting for 'fail' case
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 09:30:45 -04:00
Jason Dillaman
ef9d74720f librbd: switch to lock-free queue for event poll IO interface
'perf' shows several percent of CPU being wasted on lock contention
in the event poll interface. The 'fio' RBD engine uses this poll
IO interface by default when available.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 09:30:45 -04:00
Jason Dillaman
002afa0fe3 librbd: avoid using lock within AIO completion where possible
'perf' shows several percent of CPU is being utilized handling the
heavyweight locking semantics of AIO completion. With these changes,
the lock contention disappears.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-05-02 09:30:45 -04:00