Commit Graph

78050 Commits

Author SHA1 Message Date
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
amitkuma
40e9cad775 client: NULL check before append value to bufferlist
Fixes the Coverity Scan Report:

** 1405275 Dereference after null check
CID 1405275 (#1 of 1): Dereference after null check (FORWARD_NULL)
5. var_deref_model: Passing null pointer value to append, which dereferences it.

Signed-off-by: Amit Kumar amitkuma@redhat.com
2017-09-01 23:28:06 +05:30
wangshuguang
189d9cb956 fix a bug at preprocess_beacon
when a mds node reboot, mon deal beacon message from this mds.
The connection between mon and MDS has been released.This will cause Session is empty.Then this mon will assert(session);

BTW in mon/OSDMonitor.cc,this bug is fixed.

Signed-off-by: wangshuguang <wangshugaung@inspur.com>
2017-09-02 01:56:28 +08: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
Abhishek Lekshmanan
7b9dfd3ed0 doc/releases: the Kraken sleepeth, faintest sunlights flee
updating releases to retire Kraken, Hammer. Also updated to mention
Jewel will be around until at least N is finalized

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-09-01 16:05:46 +02:00
w11979
afdacc6ed7 osd: fix build_initial_pg_history
We need to update our info about the previous interval in order to
detect interval changes properly.

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

Signed-off-by: w11979 <wang.wenfeng@h3c.com>
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-01 10:04:17 -04:00
Alfredo Deza
219f64b8a5 doc/ceph-volume update intro to mention dm-cache
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2017-09-01 10:00:35 -04:00
Sage Weil
7949c2c603 Merge pull request #17364 from theanalyst/release-updates
doc: update releases to the current state
2017-09-01 08:46:52 -05:00
Nick Erdmann
db027bcd8e mgr/dashboard: change raw usage chart's color depending on usage
Signed-off-by: Nick Erdmann <n@nirf.de>
2017-09-01 13:14:00 +00:00
John Spray
618a27868d mon: add helper for emitting logs by health status
We were starting to repeat our little "if(status==HEALTH_ERR"
blocks in too many places.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-09-01 05:53:13 -04:00
Abhishek Lekshmanan
948bff4c21 doc: update releases to the current state
Adding Luminous release date, and dropping links for dev releases (since
they've been merged to 12.2.0), also rearranged the table so that newer
releases come left

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-09-01 11:23:59 +02:00
xie xingguo
9f94f9f00e os/bluestore: handle small main device properly
Originally reported by MarcinDulak on 'ceph-users' channel.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-01 15:53:38 +08:00
xie xingguo
22740cc9b3 os/bluestore: formatting nits
So we don't output anything if csum is currently off:

_do_alloc_write blob Blob(0x7fad7cc25950 blob([0x42a80000~10000] none/0x1)

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-01 12:33:40 +08:00
xie xingguo
8ec4b4960f os/bluestore: don't re-initialize csum-setting for existing blobs
The global checksum setting may change, e.g., from NONE to CRC32,
which can cause improper re-initialization of the csum-settings of
existing blobs(e.g., partial write/overwrite may turn out to shrink
'csum_data').

We could develop some complicated solutions but for now let's not
bother since the above scenario is rare.

Fixes: http://tracker.ceph.com/issues/21175
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-09-01 12:33:40 +08:00
Jos Collin
dd4cc66673 Merge pull request #17397 from ZVampirEM77/wip-doc
doc: fix doc/radosgw/admin.rst typos

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-09-01 03:36:42 +00:00