Commit Graph

95311 Commits

Author SHA1 Message Date
Kefu Chai
8a6658f8a9 cmake: fix syntax error of set()
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-22 13:43:00 +08:00
Casey Bodley
9929628670
Merge pull request #26566 from theanalyst/vstart-beast
vstart: make beast as the default frontend for rgw

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-02-21 16:48:55 -05:00
Sage Weil
e084dd85c2 Merge PR #26541 into master
* refs/pull/26541/head:
	msg/async: guard protocol Interceptor with preprocessor variable
	cmake: add UNIT_TESTS_BUILD preprocessor var based on WITH_TESTS cmake var
	test/msgr: remove test_msgr2 unused test
	msg/async: msgr2: resolve reconnect races
	test/msgr: msgr2 unit tests using the protocol interceptor WIP
	msg/async: Protocol interceptor infrastructure

Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-21 12:47:35 -06:00
Patrick Donnelly
1ed2622835
Merge PR #26458 into master
* refs/pull/26458/head:
	MDSMonitor: do not assign standby-replay when degraded

Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-21 10:43:27 -08:00
Patrick Donnelly
0989abe3fe
Merge PR #26468 into master
* refs/pull/26468/head:
	qa: config recall settings to test cache drop
	qa: check cache dump works without timeout
	mds: add 2nd order recall throttle
	mds: drive log flush and cache trim during recall
	mds: avoid gather assertion when subs exist
	mds: output full details for recall threshold

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-02-21 10:26:25 -08:00
Patrick Donnelly
3a58b1838d
Merge PR #26422 into master
* refs/pull/26422/head:
	mds: start to trim cache when mds enters clientreplay state
	mds: avoid evaluating stray dentry multiple times
	mds: simplfy stray manager activation

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-02-21 10:11:55 -08:00
Patrick Donnelly
4f243b71b3
Merge PR #26459 into master
* refs/pull/26459/head:
	mds: do not show standby-replay as ranks

Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-02-21 10:10:25 -08:00
Patrick Donnelly
8bdf2d159d
Merge PR #26486 into master
* refs/pull/26486/head:
	mds: remove wrong puts on Message

Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-21 10:09:12 -08:00
Sage Weil
0a7077a855 Merge PR #26237 into master
* refs/pull/26237/head:
	Revert "qa: update test_envlibrados_for_rocksdb.sh for libradospp split"
	doc/librados: explicitly mention that the C++ API is not stable
	ceph.spec: force use of upgrade devtoolset-gcc under RHEL 7
	librados: add symbol versioning to the C++ API
	librados: add symbol versioning to the C API
	librados: revert librados3/libradoscc back to librados2

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-21 11:18:46 -06:00
Ricardo Dias
1920d3a8b2
msg/async: guard protocol Interceptor with preprocessor variable
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-21 16:01:22 +00:00
Ricardo Dias
f42c440158
cmake: add UNIT_TESTS_BUILD preprocessor var based on WITH_TESTS cmake var
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-21 16:00:26 +00:00
Abhishek Lekshmanan
b9a13aac15 vstart: make beast as the default frontend for rgw
mstart also features an overrideable $RGW_FRONTEND which defaults to beast

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-02-21 16:03:04 +01:00
Jason Dillaman
e066757731
Merge pull request #26395 from ykcowrebbaj/patch-1
doc: corrected options of iscsiadm command

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-21 09:54:17 -05:00
Mykola Golub
a51d9188bb
Merge pull request #26521 from dillaman/wip-38385
qa/workunits: fixed mon address parsing for rbd-mirror
2019-02-21 16:46:05 +02:00
Casey Bodley
708165c754
Merge pull request #26502 from tchaikov/wip-common-coroutine-ifdef
common: define BOOST_COROUTINES_NO_DEPRECATION_WARNING if not yet

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-02-21 09:33:58 -05:00
Jason Dillaman
9683869442 Revert "qa: update test_envlibrados_for_rocksdb.sh for libradospp split"
This reverts commit 0475dfdea3.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-21 08:28:43 -05:00
Jason Dillaman
3322798a36 doc/librados: explicitly mention that the C++ API is not stable
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-21 08:28:43 -05:00
Jason Dillaman
a7ce5fb07a ceph.spec: force use of upgrade devtoolset-gcc under RHEL 7
There is a known crash under C++17 mode that requires an updated
devtoolset to address.

See https://bugzilla.redhat.com/show_bug.cgi?id=1616223

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-21 08:28:43 -05:00
Jason Dillaman
d2b1ab49f5 librados: add symbol versioning to the C++ API
The future goal would be to change the version for each Ceph major
release to ensure C++ applications will need to be recompiled against
the librados C++ API since we don't guarentee ABI stability.

Fixes: https://tracker.ceph.com/issues/38177
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-21 08:27:38 -05:00
ykcowrebbaj
50f0d8739b doc/rbd: fix options of iscsiadm command
Signed-off-by: ZhuJieWen <154667715@qq.com>
2019-02-21 21:25:36 +08:00
Sebastian Wagner
ecd2a9c77c
Merge pull request #26241 from jmolmo/hosts_management_add_rm
mgr/ansible: Add/remove hosts

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sébastien Han <seb@redhat.com>
2019-02-21 13:40:29 +01:00
Juan Miguel Olmo Martínez
b6e8da7e55
mgr/ansible: Add/remove hosts
- Implementation of operations add/rm hosts
- Improvement of error management in Ansible Runner Service Client

- Addressed @sebastian-philipp suggestions and findings
- Remove the <role> parameter of hosts operations.
Now all the hosts are placed by default in a specific Ansible Inventory group called <orchestrator>.
Discussion on-going about to keep Host management API endpoint or not.
If hosts management is removed, further modifications will be needed to:
- Keep updated the <host inventory> in the orchestrator
- Manage hosts groups when operations are executed
- Adapted new commands (host add/rm) to use to the new <orchestrator_cli> syntax

- Improved error management
- Added return information to Add/remove host methods docstring

- Removed redundant exceptions following @sebastian-philipp suggestion

- Removed duplicated code
- Removed extra space

- Fixed unit tests
- Improved error management in launch playbook

- removed unused param in docstring (orchestrator.py)

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
2019-02-21 12:01:53 +01:00
Kefu Chai
c927900456
Merge pull request #26525 from liupengs/wip-msg-async-fix-rdma-exchage-port
msg/async/rdma: parse IBSYNMsg.lid as hex when receiving message

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-21 15:08:28 +08:00
Xie Xingguo
6c43373687
Merge pull request #26532 from xiexingguo/wip-pool-scrub
mgr: add per pool scrub commands

Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-21 13:26:15 +08:00
Kefu Chai
106c28f8cc
Merge pull request #26533 from badone/wip-test-dup_index-trim
test: Verify a log trim trims the dup_index

Reviewed-By: Eric Ivanvich <ivanvich@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-21 13:13:01 +08:00
Kefu Chai
6ca980beff
Merge pull request #26402 from tchaikov/wip-install-deps
install-deps.sh: selectively install dependencies

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2019-02-21 11:59:10 +08:00
Sage Weil
38e25b5837 Merge PR #26551 into master
* refs/pull/26551/head:
	osd/PG: fix get debug refcount line

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-02-20 21:40:36 -06:00
Sage Weil
32f36a9a72 Merge PR #26511 into master
* refs/pull/26511/head:
	mgr: Selftest fails, dashboard/server_port not string

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
2019-02-20 21:36:58 -06:00
Sage Weil
95dbff79fd Merge PR #26513 into master
* refs/pull/26513/head:
	osd/PG: fix comments in merge_from
	osd/PG: align past_intervals and last_epoch_clean for fabricated merge target

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-02-20 21:36:31 -06:00
Sage Weil
e784b697b4 Merge PR #26526 into master
* refs/pull/26526/head:
	rpm,deb: remove btrfs-tools as a build-dependency
	rpm,deb: remove bc as a build-dependency

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2019-02-20 21:36:13 -06:00
Sage Weil
12c6090c5c Merge PR #26536 into master
* refs/pull/26536/head:
	src/tools: only build dedup tool if WITH_TESTS is set

Reviewed-by: Myoungwon Oh <omwmw@sk.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2019-02-20 21:35:11 -06:00
LiuPeng
6c11ccf606 msg/async/rdma: parse IBSYNMsg.lid as hex when receiving message
function send_msg encode struct IBSYNMsg to a string, and recv_msg parse the string.
In the function send_msg, im.lid (unsigned short int) is formatted into a string with format string %04x,
so, recv_msg should read im.lid from the string with format string %hx instead of %hu (unsigned short).

Fixes: https://tracker.ceph.com/issues/38391
Signed-off-by: Peng Liu <liupeng37@baidu.com>
2019-02-21 09:52:32 +08:00
xie xingguo
97d55fd113 mgr: add per pool scrub commands
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-02-21 09:04:41 +08:00
Sage Weil
1fb41a0a92 osd/PG: fix get debug refcount line
Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-20 17:23:51 -06:00
Jason Dillaman
e72d7bc671
Merge pull request #26483 from idryomov/wip-send-copyup-cleanups
librbd: send_copyup() fixes and cleanups

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-20 15:19:30 -05:00
Jason Dillaman
7bf6b5ee12 librados: add symbol versioning to the C API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-20 14:59:28 -05:00
Jason Dillaman
65c8733b56 librados: revert librados3/libradoscc back to librados2
For backwards compatibility and upgrade reasons, the librados2
API needs to be preserved and it needs to continue to be compatible
with dependent libraries like librbd1.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-20 14:59:26 -05:00
David Zafman
449e92b08c
Merge pull request #26465 from dzafman/wip-38344
osd: Prevent negative local num_bytes sent to peer for backfill reser…

Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-02-20 11:17:38 -08:00
Ilya Dryomov
57537d92f8 librbd: CopyupRequest::m_pending_copyups doesn't need to be atomic
It's protected by CopyupRequest::m_lock mutex.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-20 14:12:21 -05:00
Ilya Dryomov
2be8fd0140 librbd: don't clone IoCtx in send_copyup()
Calling aio_operate() with the explicit snap_seq and snaps doesn't
mutate IoCtx, so no reason to clone it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-20 14:12:21 -05:00
Ilya Dryomov
34d6374c19 librbd: send copyup and hint only once
In the deep-copy case, don't send copyup and hint twice (once with the
blank and once with the current snapshot context).

Preserve the workaround for compare-and-write added in commit
f6db9b8027 ("librbd: copyup state machine needs to handle empty write
ops").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-20 14:12:21 -05:00
Jason Dillaman
4e6aa67014
Merge pull request #26519 from idryomov/wip-cmpext-bl
librbd: ensure compare-and-write doesn't skip compare after copyup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-20 14:10:20 -05:00
Sage Weil
d198831c44 Merge PR #26262 into master
* refs/pull/26262/head:
	mgr/orch/ssh: add qa test
	qa: install/exclude ceph-mgr-ssh package
	debian: package ssh orchestrator
	spec.ceph: package ssh orchestrator
	ssh/orch: add ssh orchestrator
2019-02-20 13:05:11 -06:00
Casey Bodley
6d87b0a501
Merge pull request #26197 from wanghao72/master
rgw: bug in versioning concurrent, list and get have consistency issue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2019-02-20 13:39:02 -05:00
Casey Bodley
92719995e0
Merge pull request #26494 from cbodley/wip-rgw-datalog-autotrim
rgw: fix rgw_data_sync_info::json_decode()

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2019-02-20 13:38:38 -05:00
Noah Watkins
06422208ec mgr/orch/ssh: add qa test
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-02-20 09:45:48 -08:00
Noah Watkins
a2e8960079 qa: install/exclude ceph-mgr-ssh package
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-02-20 09:45:48 -08:00
Noah Watkins
b5972a53d9 debian: package ssh orchestrator
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-02-20 09:45:48 -08:00
Noah Watkins
c9fc8d3a7c spec.ceph: package ssh orchestrator
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-02-20 09:45:48 -08:00
Noah Watkins
cdeb604b10 ssh/orch: add ssh orchestrator
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-02-20 09:45:48 -08:00