Commit Graph

77816 Commits

Author SHA1 Message Date
Haomai Wang
09561004a1 Merge pull request #17435 from liupan1111/wip-fix-spdk-perf
bluestore/NVMEDevice: accurate the latency perf counter of queue latency

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-09-03 22:33:43 -07:00
Pan Liu
ddc96a8e68 bluestore/NVMEDevice: accurate the latency of queue latency.
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
2017-09-04 11:33:03 +08:00
Pan Liu
cc4596803c bluestore/NVMEDevice: remove mm_pause according to the example givn by
spdk.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
2017-09-04 11:31:59 +08:00
huanwen ren
389d676b5d mgr: add the ip addr of standbys
we need to manage the ip addr of the "standbys" state,
because the hostname/gid is insufficient to locate the
Standby node. we add ip of the mgr standby to metadata.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
2017-09-04 11:00:27 +08:00
Pan Liu
90bd1961cc bluestore/NVMEDevice: rename the perf counter *aio_write* to *write*,
because it will also statistic the latency of sync write

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
2017-09-04 10:57:24 +08:00
Pan Liu
cba229e987 bluestore/NVMEDevice.cc: rename the thread from ceph-osd to
nvme-device-manager, to avoid name duplication with main thread
"ceph-osd"

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
2017-09-04 10:49:11 +08:00
Xie Xingguo
c93c20fea5 Merge pull request #17409 from liewegas/wip-21207
os/bluestore: separate finisher for deferred_try_submit

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Varada Kari <varada.kari@sandisk.com>
2017-09-04 09:20:40 +08:00
Xie Xingguo
5ac0969b8a Merge pull request #17395 from theanalyst/cli-rados-stat2
cli: rados: support for high precision time using stat2

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-04 09:18:20 +08:00
Xie Xingguo
659f8912e6 Merge pull request #17100 from mychoxin/yuanxin_vstart_default_bluestore
vstart.sh: use bluestore as default osd objectstore backend

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-04 09:17:07 +08:00
Yehuda Sadeh
f609c0eb3a Merge pull request #16855 from amitkumar50/rgw_module
rgw: Initializes uninitialized members

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-09-03 08:25:42 +03:00
Yehuda Sadeh
1970d8fbc0 Merge pull request #17129 from C2python/clear_para
rgw: Remove unused Parameter in Function RGWConf::init()

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-09-03 08:23:59 +03:00
Sage Weil
c30ef8760d Merge pull request #15341 from chardan/jfw-wip-rand_makes_puppies_cry
common: implement random number generator (following N3551)

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
2017-09-02 13:37:37 -05:00
Sage Weil
6ad99a7e6c Merge pull request #15565 from gmayyyha/ceph-osd-help-output
ceph-osd: some flags are not documented in the help output

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-02 13:36:53 -05:00
Sage Weil
f6baa93735 Merge pull request #16942 from jcsp/wip-20888
mon: rate limit on health check update logging

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-02 13:36:08 -05:00
Sage Weil
1d103c0769 Merge pull request #17404 from rzarzynski/wip-bs-ldout-in-stupid
os/bluestore: replace dout with ldout in StupidAllocator.
2017-09-02 13:35:51 -05:00
Sage Weil
f47c85ed12 Merge pull request #17406 from liewegas/wip-21206
qa/tasks/ceph_manager: revive osds before doing final rerr reset
2017-09-02 13:35:26 -05:00
Sage Weil
a216dd0447 Merge pull request #17416 from xiexingguo/wip-handle-small-block
os/bluestore: handle small main device properly

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-02 13:35:15 -05:00
Sage Weil
94722b4a35 Merge pull request #17423 from liewegas/wip-21203
osd: fix build_initial_pg_history

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-02 13:34:41 -05:00
Danny Al-Gaaf
f43b1f49d1 test/librados/aio.cc: silence coverity with scope_guard
Fix for:

CID 1313405 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion2 going out of scope
 leaks the storage it points to.

CID 1219522 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion going out of scope
 leaks the storage it points to.

CID 1219501 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion going out of scope
 leaks the storage it points to.

CID 1313406 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion2 going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:16 +08:00
Danny Al-Gaaf
8162d65e27 c_read_operations.cc: silence coverity with scope_guard
CID 1219593 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable completion going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:16 +08:00
Danny Al-Gaaf
79d2a60e11 LibradosTestStub.cc: memset struct sockaddr_in
Fix for:

CID 1402624 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value sin. Field sin.sin_zero is
 uninitialized.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:16 +08:00
Danny Al-Gaaf
e014231cd4 common/Timer.h: ~SafeTimer needs to be virtual
Fix for:

CID 1396232 (#1 of 1): Non-virtual destructor (VIRTUAL_DTOR)
 nonvirtual_dtor: Class librbd::<unnamed>::SafeTimerSingleton has a
 destructor and a pointer to it is upcast to class SafeTimer which
 doesn't have a virtual destructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:16 +08:00
Danny Al-Gaaf
1ec2de3003 test_ipaddr.cc: memset with 0 and not '0'
Fix for:

CID 1405070 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405071 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405073 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405074 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405075 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405077 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405083 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405086 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405087 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
 bad_memset: "memset" with fill value "'0'" (the zero character).
 memset(&net, 48, 28UL). (CWE-665)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:16 +08:00
Danny Al-Gaaf
72bb835016 client/MetaRequest.h: fix UNINIT_CTOR
Fix for:

CID 717207 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member dirp is not initialized
 in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:15 +08:00
Danny Al-Gaaf
658c61aca7 client/Client.cc: fix UNINIT_CTOR
Fix for:

CID 1406088 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member root_ancestor is not
 initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:15 +08:00
Danny Al-Gaaf
b520cfae5e crush/CrushCompiler.cc: fix error handling
calloc() does not take negative values, check return value from
get_max_buckets() and handle it correctly.

Fix for:

CID 1405301 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)
 negative_returns: arg_map.size is passed to a parameter that cannot
 be negative.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:27:15 +08:00
Danny Al-Gaaf
9cb79067dc client/Client.cc: fix USE_AFTER_FREE
Don't call put_request() twice, it's already called by
unregister_request()

Fix for:

CID 1405360 (#1 of 1): Use after free (USE_AFTER_FREE)
 deref_arg: Calling put_request dereferences freed pointer request

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:07:20 +08:00
Danny Al-Gaaf
a02aca3173 tools/rbd/Utils.cc: yank features_set_specified and related logic
since it isn't used

Fix for:

CID 1394854 (#1 of 1): 'Constant' variable guards dead code (DEADCODE)
 dead_error_line: Execution cannot reach this statement:
 opts->set(RBD_IMAGE_OPTION_....
 Local variable features_set_specified is assigned only once, to a
 constant value, making it effectively constant throughout its scope.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2017-09-02 12:07:20 +08:00
Sage Weil
3ce39706ed Merge pull request #17304 from kungf/calc_replicated_acting
osd/PG: remove unused parameter in calc_ec_acting

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-01 21:07:33 -05:00
Sage Weil
f9eca1fafa Merge pull request #17088 from zmedico/interval_set_intersection_of_optimization
interval_set: optimize intersection_of

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-01 21:06:36 -05:00
Sage Weil
3682651105 Merge pull request #15816 from chardan/jfw-wip-consolidate-spinlocks
common: consolidate spinlocks

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2017-09-01 16:28:03 -05:00
Sage Weil
e59508e730 Merge pull request #17265 from zmedico/interval-set-intersection-insert-optimization
interval_set: optimize intersect_of insert operations

Reviewed-by: Adam Emerson <aemerson@redhat.com>
2017-09-01 16:27:42 -05:00
Sage Weil
30a99d4ca7 Merge pull request #17391 from myoungwon/wip-proxywrite-cleanup
osd: remove unused variable in do_proxy_write

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-01 16:26:50 -05:00
Sage Weil
c66f68dea6 Merge pull request #17394 from Songweibin/wip-common-cleanup
common: drop unused variables "bluestore_csum_*_block" in opts

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-01 16:26:24 -05:00
Sage Weil
91bf1ed053 Merge pull request #17398 from xiexingguo/wip-21175
os/bluestore: don't re-initialize csum-setting for existing blobs

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-01 16:25:53 -05:00
Josh Durgin
317a8bae5e Merge pull request #17160 from ceph/wip-luminous-x-master
qa: add upgrade/luminous-x suite

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-09-01 14:19:48 -07:00
Kefu Chai
dc3efc4f9d Merge pull request #17405 from tchaikov/wip-remove-boost-submodule
boost: remove boost submodule

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2017-09-02 01:47:18 +08:00
Alfredo Deza
3831d4023b Merge pull request #17425 from ceph/wip-ceph-volume-docs
docs: ceph-volume CLI updates

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2017-09-01 12:55:34 -04:00
Sage Weil
0dbd0b9def Merge pull request #17426 from liewegas/wip-integration
script/build-integration-branch: print pr url list with titles

Reviewed-by: Yuri Weinstein <yweinstei@redhat.com>
2017-09-01 11:33:37 -05:00
Sage Weil
5916683c52 script/build-integration-branch: print pr url list with titles
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-01 12:26:39 -04:00
Casey Bodley
7e9de8bd90 Merge pull request #17353 from scienceluo/wip-luo-fix-rgw-memory-leak-branch
rgw: fix resource leak in rgw_bucket.cc and rgw_user.cc

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-09-01 12:23:33 -04:00
Alfredo Deza
dc2f1ffb66 doc/ceph-volume prepare partitions with PARTUUID
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-09-01 12:12:43 -04:00
Yuri Weinstein
aff342627c Initial check in
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2017-09-01 08:56:19 -07:00
Alfredo Deza
aad84fc9ce doc/ceph-volume prepare needs both volume group and lv names
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-09-01 11:51:59 -04:00
Alfredo Deza
794067e694 doc/ceph-volume activate re-links the journal always
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-09-01 11:29:51 -04:00
Alfredo Deza
8858f02610 doc/ceph-volume emphasize the danger of calling prepare for an existing OSD
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-09-01 11:29:15 -04:00
Luo Kexue
1f23976ada rgw: fix resource leak in rgw_bucket.cc and rgw_user.cc
Fixes: http://tracker.ceph.com/issues/21214

Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
2017-09-01 23:11:11 +08:00
Sage Weil
692a32600d Merge pull request #17421 from nrdmn/dashboard-colors
mgr/dashboard: change raw usage chart's color depending on usage

Reviewed-by: John Spray <john.spray@redhat.com>
2017-09-01 09:31:35 -05:00
Sage Weil
a9ae738348 Merge pull request #17424 from theanalyst/release-eol-updates-l
doc/releases: the Kraken sleepeth, faintest sunlights flee

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2017-09-01 09:18:46 -05:00
John Spray
5b903c7b42 mon: rate limit on health check update logging
Fixes: http://tracker.ceph.com/issues/20888
Signed-off-by: John Spray <john.spray@redhat.com>
2017-09-01 10:18:01 -04:00