Commit Graph

69147 Commits

Author SHA1 Message Date
Haomai Wang
595f945cbd Merge pull request #13525 from yuyuyu101/wip-infiniband-fork
msg/async/rdma: make Infiniband can be forkable
2017-03-02 11:36:51 +08:00
Haomai Wang
522555070b msg/async/rdma: restart Infiniband resources to handle fork properly
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-03-02 11:36:12 +08:00
Haomai Wang
f1ae21ba2e Merge pull request #13666 from Adirl/chunk_size
msg/async/rdma: rename chunk_size to buffer_size

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-02 11:34:44 +08:00
Haomai Wang
1a457beb3e Merge pull request #13680 from yuyuyu101/wip-tx-zerocopy
msg/async/rdma: refactor tx handle flow to get rid of locks

Reviewed-by: Adir lev <adirl@mellanox.com>
2017-03-02 10:00:16 +08:00
Zack Cerza
49aee217e0 Merge pull request #13706 from zmc/wip-openstack-volumes
qa/suites/ceph-deploy: Drop OpenStack volume count
2017-03-01 16:35:42 -07:00
Brad Hubbard
f321309c9c Merge pull request #13657 from badone/wip-rgw-setuid-no-coredump
rgw: set dumpable flag after setuid post ff0e521

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2017-03-02 08:54:37 +10:00
Sage Weil
8d179d2a14 Merge pull request #12998 from Liuchang0812/wip-11081
common: fix that $host always expands to localhost instead of actual hostname

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-01 16:30:24 -06:00
Sage Weil
ad5f382aa4 Merge pull request #13651 from rzarzynski/wip-bs-bitmap-nocct-in-entry
os/bluestore: remove CephContext* from BmapEntry.

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-01 16:29:09 -06:00
Sage Weil
86f2d14c96 Merge pull request #13662 from majianpeng/aio-memset
os/aio: remove the redundant memset(struct iocb)

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-01 16:28:38 -06:00
Sage Weil
7a1d9170d3 Merge pull request #13668 from songbaisen/m3
osd: the osd should not share map with others when it is in stopping state

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-01 16:27:24 -06:00
Sage Weil
f85cec8315 Merge pull request #13702 from liewegas/wip-trackedop-desc
common/TrackedOp: make TrackedOp::reset_desc() safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-03-01 16:26:54 -06:00
Zack Cerza
5fa96a60d7 qa/suites/ceph-deploy: Drop OpenStack volume count
Looks like we only need two per node, since there is only one OSD per
node, and ceph-deploy wants two disks per OSD to account for the
journal.

Signed-off-by: Zack Cerza <zack@redhat.com>
2017-03-01 15:15:49 -07:00
Mykola Golub
496cc53de9 Merge pull request #13729 from dillaman/wip-librbd-compile-warnings
librbd: eliminate compiler warnings

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-03-01 23:57:54 +02:00
Kefu Chai
2f157ae3ff Merge pull request #11995 from SUSE/wip_timeouts_ceph-create-keys
ceph-create-keys: Add connection timeouts.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-03-02 01:07:22 +08:00
Haomai Wang
f104300156 msg/async: must destruct ConnectedSocket in the his own thread
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-03-02 00:05:06 +08:00
Haomai Wang
bc580b0a61 msg/async/rdma: refactor RDMAStack to accelerate tx handle
previously Dispatcher thread will poll both rx and tx events, then dispatch
these events to RDMAWorker and RDMAConnectedSocketImpl.

Actually tx event handling is a lightweight task and we make these handling
inline now. rx event dispatching is still working.

Another change is adding tx cq to make event polling separated.

removing lots of codes yet.

Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-03-02 00:04:59 +08:00
Jason Dillaman
445cac55c0 librbd: eliminate compiler warnings
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-01 10:34:58 -05:00
Sage Weil
e6e83659f5 Merge pull request #13343 from liewegas/wip-faster-dispatch
osd: faster dispatch

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2017-03-01 09:21:55 -06:00
Radoslaw Zarzynski
d40a318f63 Merge pull request #13557 from prallabh/healthcheck
rgw: Correct the return codes for the health check feature

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-03-01 13:06:06 +01:00
Kefu Chai
fec59e80ef Merge pull request #13685 from tchaikov/wip-19097
mgr/MgrClient: use unique_ptr for MgrClient::session

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-01 18:12:14 +08:00
Haomai Wang
3955caca28 Merge pull request #13716 from Adirl/move_counter
msg/async/rdma: move active_queue_pairs perf counter dec to polling

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-01 15:54:17 +08:00
DanielBar-On
b364d24a57 msg/async/rdma: move active_queue_pairs perf counter dec to polling
removing dead qp's is actually done at polling. if polling is busy then
dead qp will not be removed and active_queue_pair counter is not correct.

issue: 992513

Change-Id: I825e813ce0632fd01f6d29adc87e0e33a2bc13d9
Signed-off-by: DanielBar-On <danielbo@mellanox.com>
2017-03-01 09:02:28 +02:00
root
4da2bf310f rgw: Correct the return codes for the health check feature
Fixes: http://tracker.ceph.com/issues/19025
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
2017-03-01 11:49:24 +05:30
Kefu Chai
27d4dcdf2d mon/MonClient: do not assert on auth in build_authorizer()
* there is chance that some connections is still trying to authorize
  itself after the MonClient is shut down. do not assert in this case,
  but it is a sign of bug, or bad shutdown sequence, so print a message to
  dout().
* do not use active_con->get_auth() as an alternative to `this->auth` if
  it is not available. because we promote the authorized conn in
  pending_cons as the active_con, and std::swap(active_conn->auth, this->auth)
  with the monc_lock. so there is no point to return active_con->get_auth(),
  as it's always null.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-03-01 10:11:12 +08:00
Matt Benjamin
2bcd9d7dde Merge pull request #13703 from linuxbox2/wip-is-linked
rgw_file:  use fh_hook::is_linked() to check residence
verified by hand f23
2017-02-28 16:16:16 -05:00
Matt Benjamin
c0aa515f8d rgw_file: use fh_hook::is_linked() to check residence
Previously we assumed that !deleted handles were resident--there
is an observed case where a !deleted handle is !linked.  Since
we currently use safe_link mode, an is_linked() check is
available, and exhaustive.

Fixes: http://tracker.ceph.com/issues/19111

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-02-28 15:56:40 -05:00
Sage Weil
7884fbff04 Merge pull request #13671 from liewegas/wip-filestore-omap
os/filestore: debug which omap keys are set

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-02-28 14:27:10 -06:00
Matt Benjamin
af7f0483ab Merge pull request #13546 from cbodley/wip-19019
rgw: RGWMetaSyncShardControlCR retries with backoff on all error codes
tested by-had, using fault injection
2017-02-28 15:06:15 -05:00
Sage Weil
3212ba75cf Merge pull request #13415 from ifed01/wip-fix-storetest
test/store_test: add deferred test case setup to support explicit min…

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-28 13:19:20 -06:00
Sage Weil
9fcef127df Merge pull request #13476 from songbaisen/s18
osd: small clear up and optimize on _recover_now and should_share_map function

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-28 13:18:08 -06:00
Sage Weil
0565b11c19 common/TrackedOp: make TrackedOp::reset_desc() safe
It is possible for a reset_desc() call to clear the desc char* while
get_desc() is executing such that it will return a nullptr to the caller.
This can lead to bad results, like a crash in std::string() (which does
not like to take null).

Fix this by not clearing desc.  Instead, set a separate flag to indicate
that desc should be (safely) rebuilt on the next get_desc() call.

Fixes: http://tracker.ceph.com/issues/19110
Signed-off-by: Sage Weil <sage@redhat.com>
2017-02-28 12:23:53 -06:00
Jason Dillaman
0ca0a0a8fe Merge pull request #13686 from wjwithagen/wip-wjw-fsx-linux-2
test: Need to exclude the fsx executable also on FreeBSD

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-28 12:25:52 -05:00
Kefu Chai
1f0824b72d Merge pull request #13523 from wjwithagen/wip-wjw-clang-mempool
include/mempool.h: fix Clangs complaint about types

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-01 00:02:29 +08:00
Kefu Chai
5d152cc63a Merge pull request #13659 from majianpeng/compiler-warning
common/EventTrace: fix compiler warning.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-01 00:01:46 +08:00
Kefu Chai
91c09376ba Merge pull request #13667 from jcsp/wip-mgr-misc
mgr: use unique_ptr for MgrStandby::active_mgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-01 00:00:30 +08:00
Kefu Chai
15cbb9855c Merge pull request #13669 from jcsp/wip-mgr-get-version
mgr: add a get_version to the python interface

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-01 00:00:02 +08:00
Sage Weil
ef6de18a62 Merge pull request #13692 from Liuchang0812/wip-add-override-in-auth-headers
common/auth: add override in headers

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-28 09:54:55 -06:00
John Spray
bb041c61eb Merge pull request #13591 from batrick/mds-static-counters
mds: automate MDS object count tracking

Reviewed-by: John Spray <john.spray@redhat.com>
2017-02-28 15:07:46 +00:00
John Spray
a04179110e Merge pull request #13581 from jcsp/wip-mdsmonitor-refactor
mon: refactor MDSMonitor command handling

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-02-28 15:07:20 +00:00
John Spray
6a0c9870c2 Merge pull request #13532 from ukernel/wip-18995
ceph_fuse: fix daemonization when pid file is non-empty

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-28 15:06:07 +00:00
John Spray
c9f53ffaf1 Merge pull request #13464 from jcsp/wip-sessionmap-ioerror
mds: fix IO error handling in SessionMap

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-02-28 15:05:21 +00:00
John Spray
39204abeda Merge pull request #13282 from jcsp/wip-fuse-mount-teardown
tasks/cephfs: tear down on mount() failure

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-02-28 15:04:59 +00:00
Orit Wasserman
1c733225e2 Merge pull request #13676 from yehudasa/wip-19096
rgw: don't init rgw_obj from rgw_obj_key when it's incorrect to do so
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2017-02-28 15:58:03 +02:00
Kefu Chai
50a0fe4fc9 Merge pull request #13600 from dachary/wip-17821-revert
ceph-disk: Revert "Revert "change get_dmcrypt_key test to support different cluster name""

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-28 20:44:55 +08:00
liuchang0812
4975d6d3d1 common/auth: add override in headers
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-02-28 17:22:51 +08:00
Willem Jan Withagen
285afdeeb0 src/test/librbd/CMakeLists.txt: Need to exclude the fsx executable also on FreeBSD
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-02-28 09:32:38 +01:00
Kefu Chai
c53073aa61 Merge pull request #13682 from tahia-khan/wip-doc-architecture-rados-hyperlink
doc: fixes a broken hyperlink to RADOS paper in architecture

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-28 16:15:00 +08:00
Kefu Chai
4d1989dc22 mgr/MgrClient: use unique_ptr for MgrClient::session
* use unique_ptr<MgrSessionState> for MgrClient::session, so we don't leak it.
* also reset it in MgrClient::shutdown(), so the connection held by session can
  be released properly, and hence the MonClient will not be asked for
  an AuthAuthorizer after being shut down.

Fixes: http://tracker.ceph.com/issues/19097
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-28 14:58:11 +08:00
Tahia Khan
a92171ebb8 doc: fixes a broken hyperlink to RADOS paper in architecture
Signed-off-by: Tahia Khan <tahia.khan@gmail.com>
2017-02-27 22:44:58 -05:00
Sage Weil
8962f2c94b Merge pull request #13138 from liewegas/wip-vstart
vstart: clean up usage a bit

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-27 20:58:10 -06:00