Commit Graph

67511 Commits

Author SHA1 Message Date
Ricardo Dias
0b47ea705f rbd: Implementation of a generic managed-lock
Signed-off-by: Ricardo Dias <rdias@suse.com>
2017-01-03 09:20:08 -05:00
Ricardo Dias
7295969a30 rbd: ImageWatcher refactoring using Watcher super class
Signed-off-by: Ricardo Dias <rdias@suse.com>
2017-01-03 09:20:08 -05:00
Ricardo Dias
653df23bf0 rbd: Removed ObjectWatcher class and substituted with Watcher class
Signed-off-by: Ricardo Dias <rdias@suse.com>
2017-01-03 09:20:08 -05:00
Ricardo Dias
1eb2ebcce2 rbd: Implementation of a generic object watcher class
Signed-off-by: Ricardo Dias <rdias@suse.com>
2017-01-03 09:19:38 -05:00
Jason Dillaman
01cc5e8dfb Merge pull request #12667 from trociny/wip-librados_test_stub-tmap_udate
test: librados_test_stub: tmap_update: return -ENOENT when removing nonexisent key

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-03 09:14:46 -05:00
Kefu Chai
3da84ae456 Merge pull request #12712 from liewegas/wip-18366
mon/OSDMonitor: set last_force_op_resend on overlay pool too

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-03 19:38:22 +08:00
Kefu Chai
1397872306 Merge pull request #12717 from hrchu/patch-1
doc: Update keystone.rst

Reviewed-by: Sage Weil <sage@redhat.com>
2017-01-03 18:37:48 +08:00
hrchu
70a7ef99bb doc: Update keystone.rst
Make it clear that project/domain options accept name instead of id.

Signed-off-by: Chu, Hua-Rong <hrchu@cht.com.tw>
2017-01-03 09:27:13 +00:00
Haomai Wang
eb60e5fd3e Merge pull request #12734 from liupan1111/wip-fix-nvme-driver-compile-issue
spdk: upgrade spdk to v16.12

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-01-03 16:01:45 +08:00
Brad Hubbard
a945407bde Merge pull request #12751 from tchaikov/wip-18395
ceph_test_rados_api_watch_notify: move global variables into test class

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-01-03 17:38:16 +10:00
Kefu Chai
543886405d Merge pull request #12730 from Liuchang0812/fix-dev-doc-pglog
doc/dev: update log_based_pg.rst, fix some display problem

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-03 14:38:19 +08:00
Kefu Chai
c43274f2bb ceph_test_rados_api_watch_notify: move global variables into test class
so the class instances using mempool are destructed before the mempools
are destroyed. this avoids the "invalid read" issue reported by
valgrind.

Fixes: http://tracker.ceph.com/issues/18395
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-01-03 14:24:28 +08:00
Kefu Chai
d50ddd3a4b Merge pull request #12713 from badone/wip-ceph_test_rados_api_watch_notify-valgrind-fixes
test_rados_watch_notify: Fix trivial memory leaks

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-03 14:19:16 +08:00
Kefu Chai
38f8bc3628 Merge pull request #12680 from badone/wip-ceph_test_rados_api_misc-valgrind-fixes
ceph_test_rados_api_misc: Fix trivial memory leak

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-03 14:07:22 +08:00
liuchang0812
5fa0a015fc doc/dev: update log_based_pg.rst, fix some display problem
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-01-03 13:11:27 +08:00
Pan Liu
637ba5769c os/bluestore: add more useful log information in NVMEDevice.cc
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-03 11:08:49 +08:00
Jason Dillaman
e4ca3c17dd Merge pull request #12747 from SUSE/wip-18388
tests: rbd/test_lock_fence.sh: fix rbdrw.py relative path

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-02 18:47:53 -05:00
Nathan Cutler
91231de16d tests: rbd/test_lock_fence.sh: fix rbdrw.py relative path
This commit fixes a regression introduced by
cf294777ea

Fixes: http://tracker.ceph.com/issues/18388
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-02 22:53:13 +01:00
Amir Vadai
194bc3cb5f RDMA: Fix compilation warning
Infiniband.cc: In member function ‘int Infiniband::recv_msg(CephContext*, int, IBSYNMsg&)’:
Infiniband.cc:883:86: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘uint16_t* {aka short unsigned int*}’ [-Wformat=]
     sscanf(msg, "%x:%x:%x:%x:%s", &(im.lid), &(im.qpn), &(im.psn),
     &(im.peer_qpn),gid);

Signed-off-by: Amir Vadai <amir@vadai.me>
2017-01-02 12:12:04 +02:00
Amir Vadai
3662403e99 RDMA: Move defenitions from RDMAStack.h into .cc
Signed-off-by: Amir Vadai <amir@vadai.me>
2017-01-02 12:12:04 +02:00
Amir Vadai
75996d20ae RDMA: Move defenitions from Infiniband.h into .cc
Signed-off-by: Amir Vadai <amir@vadai.me>
2017-01-02 12:12:04 +02:00
Pan Liu
4fb90d4930 os/bluestore: fixed compilation issue when use spdk v16.12
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-02 16:49:38 +08:00
Pan Liu
19ffa3ea7c spdk: fixed the compilation error for testcases when use spdk v16.12
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-02 16:43:59 +08:00
Pan Liu
2c2cae16cf dpdk: make compilation successful when use dpdk v16.11
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-02 16:41:08 +08:00
liuchang0812
66fd36d51f mgr: Make stats period configurable
Fixes: http://tracker.ceph.com/issues/17449
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-01-02 15:53:03 +08:00
Kefu Chai
8b07aad0f0 Merge pull request #12706 from Liuchang0812/wip-qa-rados-1228
test: update test_rados_tool.sh, use POOL and OBJ var

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-02 14:21:03 +08:00
Pan Liu
4f85bdf91e spdk: upgrade spdk version to 16.12
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-01 16:22:32 +08:00
Pan Liu
f70cf09c59 dpdk: upgrade dpdk version to 16.11
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2017-01-01 16:17:50 +08:00
Sage Weil
d4adeb7500 osd/PG: publish PG stats when backfill-related states change
These frequently get flushed because other updates
happen, but we should explicitly ensure that the mon
sees these state changes.

Fixes: http://tracker.ceph.com/issues/18369
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-30 17:29:58 -05:00
Sage Weil
c2fac9c9a9 osd: _exit() intead of exit() for failure injection
This avoids a segv from code that doesn't easily shut
down (e.g., bluestore).

Fixes: http://tracker.ceph.com/issues/18372
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-30 15:42:44 -05:00
Sage Weil
4e657c7206 Merge pull request #12716 from kylinstorage/wip-ctypos_h
misc: fix code typos in header files

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-12-30 13:06:57 -06:00
Sage Weil
6f53f56702 Merge pull request #12721 from chendave/wip-authx-options
auth: Let's not use the deprecated cephx option

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-30 13:04:54 -06:00
Sage Weil
98405376ad Merge pull request #12676 from chendave/master
common/ceph_context: Show clear message if all features are enabled

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-12-30 12:58:20 -06:00
Sage Weil
eef842e48d Merge pull request #12633 from liewegas/wip-15784
msg/simple: call clear_pipe in wait() shutdown path

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-12-30 12:57:02 -06:00
Sage Weil
3b0cb4e9b8 Merge pull request #12692 from XinzeChi/wip-bluestore-statfs
os/bluestore: _txc_release_alloc when do wal cleaning

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-30 12:55:20 -06:00
Sage Weil
0260de99fe Merge pull request #12691 from runsisi/wip-dump-osdop
osd/OpRequest: dump both name and addr for the client op

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-30 12:52:27 -06:00
Sage Weil
1a3fc9cf64 Merge pull request #12363 from wjwithagen/wip-wjw-freebsd-strerror
common/module.c: do not use strerror_r the GNU way.

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-30 12:51:45 -06:00
Sage Weil
882ad33b52 os/bluestore/BlueFS: fix reclaim_blocks
We need to return all extents to the caller.  The current code
fails to assign *offset so it appears like a single extent from
the start of the device, which is very wrong.

Fixes: http://tracker.ceph.com/issues/18368
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-30 12:22:42 -05:00
Sage Weil
8e313a2496 os/bluestore/bluestore_types: operator<< for AllocExtent
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-30 12:20:31 -05:00
Li Wang
83a384de9e osd/OSD.h: fix uninitialized member
Silence Coverity 1398203

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2016-12-30 14:55:21 +00:00
Li Wang
b1620057ba osd/PrimaryLogPG.cc: fix uninitialized member
Silence Coverity 1398201

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2016-12-30 14:53:17 +00:00
Li Wang
df961dd338 os/bluestor/BitAllocator.h: fix uninitialized member
Silence Coverity 1398206

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2016-12-30 14:15:15 +00:00
Li Wang
a7b610acf5 os/bluestore/BitmapFreelistManager.cc: fix uninitialized member
Silence Coverity 1398205

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2016-12-30 14:10:06 +00:00
Li Wang
387ad76b5e os/bluestore/BitAllocator.cc: fix uninitialized member
Silence Coverity 1398204

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2016-12-30 14:01:17 +00:00
Li Wang
9939a6550f os/bluestore/BlueStore.h: fix uninitialized member
Silence Coverity 1398202

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2016-12-30 13:57:51 +00:00
Li Wang
7f2f216cd0 os/kstore/KStore.h: fix uninitialized member
Silence Coverity 1398200

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2016-12-30 13:57:21 +00:00
Jianpeng Ma
00533e43c0 common/Finisher: Using queue(list<context*>) instead queue(context*).
Avoid call many time queue(context*).

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-12-30 20:11:19 +08:00
Gaurav Kumar Garg
98a802ab7a rbd: remove unused condition
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
2016-12-30 11:33:42 +01:00
Dave Chen
3953db2b5a cephx: Let's not use the deprecated option
Enable cephx by setting the option of "auth supported" has been
deprecated for a long time, it's better to use the recommended
options instead.

Signed-off-by: Dave Chen <wei.d.chen@intel.com>
2016-12-30 17:04:28 +08:00
Li Wang
68bf649dd2 Merge pull request #12718 from kylinstorage/wip-orig
organizationmap: add Xianxia Xiao to Kylin Cloud team
2016-12-30 14:50:06 +08:00