Commit Graph

77762 Commits

Author SHA1 Message Date
Patrick Donnelly f0f93c6645
Merge PR #17373 into master
* refs/remotes/upstream/pull/17373/head:
	doc/cephfs: add info on using EC pools with CephFS

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-09-05 12:48:41 -07:00
Casey Bodley 683212ae1f Merge pull request #17141 from theanalyst/doc-civetweb-ports
doc: rgw: mention the civetweb support for binding to multiple ports

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-09-05 11:39:12 -04:00
Jason Dillaman 149778edde Merge pull request #17436 from ashishkumsingh/wip-doc-fix-snapshot-flatten-example
doc: Fixes rbd snapshot flatten example

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-09-05 10:13:50 -04:00
Sage Weil 06ed8ee832 Merge pull request #17457 from batrick/githubmap
githubmap: add map for GitHub contributor lookup

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-05 09:05:46 -05:00
Jos Collin 9aab943015 Merge pull request #17489 from mychoxin/yuanxin_deep_copy
include/buffer.h: fix typo in comment

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-09-05 12:12:30 +00:00
xin.yuan 2c5442a1d5 include/buffer.h: fix comment 'no not allow' -> 'do not allow'
Signed-off-by: mychoxin <mychoxin@gmail.com>
2017-09-05 19:25:39 +08:00
Kefu Chai a9e015261b Merge pull request #17430 from Songweibin/wip-osd-misc
osd: misc cleanups 

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-05 13:43:05 +08:00
Kefu Chai c46220e682 Merge pull request #16476 from renhwztetecs/renhw-wip-mgr-standby-ip
mgr: add the ip addr of standbys

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-05 13:02:03 +08:00
Kefu Chai e99c535c61 Merge pull request #17431 from tchaikov/wip-da-SCA-20170510
Coverity and SCA fixes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-09-05 12:52:57 +08:00
Kefu Chai 10fedb208c Merge pull request #17437 from tchaikov/wip-refactor-build_initial_pg_history
osd: update info only if new_interval

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-05 10:05:09 +08:00
Kefu Chai a0052516b2 Merge pull request #17393 from tchaikov/wip-cmake-disable-vta
cmake: disable VTA on options.cc

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-05 09:33:24 +08:00
Patrick Donnelly f6fa38e9be
githubmap: add map for GitHub contributor lookup
Idea of this is to allow scripts to lookup the contributor name/email by GitHub
username. This is useful in particular for adding appropriate "Reviewed-by"s
for each GitHub style "review".

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-09-04 12:11:16 -07:00
Xie Xingguo aa27ac7791 Merge pull request #15705 from xiexingguo/wip-fix-blob-tracker-check
os/bluestore: pass strict flag to bluestore_blob_use_tracker_t::equal()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2017-09-04 19:53:14 +08:00
Ashish Singh fec61eb5cc doc: Fixes rbd snapshot flatten example
Snapshot flatten example has incorrect image name, fixing the same.

Fixes: #17723

Signed-off-by: Ashish Singh <assingh@redhat.com>
2017-09-04 16:51:57 +05:30
Xie Xingguo b1e31f5e3f Merge pull request #15363 from ShiqiCooperation/master
test/unittest_bluefs: check whether rmdir success

Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-04 19:01:59 +08:00
Kefu Chai 4ae053439e osd: update info only if new_interval
refactor OSD::build_initial_pg_history() so we update the info only if a
new interval is identified. also, this is consistent with
OSD::build_past_intervals_parallel().

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-09-04 13:51:52 +08:00
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