]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoosd: restructure and simplify internal fullness checks
Sage Weil [Thu, 23 Feb 2017 20:55:35 +0000 (15:55 -0500)]
osd: restructure and simplify internal fullness checks

First, eliminate the useless nearfull failsafe--all it did was
generate a log message, which we can do based on the OSDMap
states.

Add some new helpers.

Unify the cluster nearfull/full vs failsafe states so that
failsafe is a "really" full state that is more severe than
full, so we have NONE, NEARFULL, FULL, FAILSAFE.

Pull the full/nearfull ratios out of the OSDMap (remember that
we require luminous mons, so these will be initialized).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/PGMonitor: disable old 'pg set_[near]full_ratio ...' in luminous
Sage Weil [Thu, 23 Feb 2017 20:50:41 +0000 (15:50 -0500)]
mon/PGMonitor: disable old 'pg set_[near]full_ratio ...' in luminous

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/workunits/cephtool/test.sh: change [near]full_ratio tests
Sage Weil [Mon, 27 Feb 2017 19:29:02 +0000 (14:29 -0500)]
qa/workunits/cephtool/test.sh: change [near]full_ratio tests

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: implement new 'osd set-[near]full-ratio ...' commands
Sage Weil [Thu, 23 Feb 2017 20:52:27 +0000 (15:52 -0500)]
mon/OSDMonitor: implement new 'osd set-[near]full-ratio ...' commands

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: initialize osdmap ratios from pgmap on upgrade
Sage Weil [Thu, 23 Feb 2017 20:52:10 +0000 (15:52 -0500)]
mon/OSDMonitor: initialize osdmap ratios from pgmap on upgrade

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: set osdmap ratios on mkfs
Sage Weil [Thu, 23 Feb 2017 20:51:50 +0000 (15:51 -0500)]
mon/OSDMonitor: set osdmap ratios on mkfs

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/OSDMonitor: handle MOSDFull messages from OSDs
Sage Weil [Thu, 23 Feb 2017 20:51:37 +0000 (15:51 -0500)]
mon/OSDMonitor: handle MOSDFull messages from OSDs

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: rename failsafe [near]full getters appropriately
Sage Weil [Thu, 23 Feb 2017 19:16:51 +0000 (14:16 -0500)]
osd: rename failsafe [near]full getters appropriately

...and make most of these methods private to clarify the public
interface

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/OSDMap: add [near]full_ratio to OSDMap[::Incremental]
Sage Weil [Thu, 23 Feb 2017 18:59:19 +0000 (13:59 -0500)]
osd/OSDMap: add [near]full_ratio to OSDMap[::Incremental]

This used to live in PGMap; we're moving it here for luminous
(which makes more sense anyway!).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: add per-osd FULL and NEARFULL state bits
Sage Weil [Thu, 23 Feb 2017 16:41:39 +0000 (11:41 -0500)]
osd: add per-osd FULL and NEARFULL state bits

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13425 from dzafman/wip-15912
David Zafman [Mon, 6 Mar 2017 18:49:01 +0000 (10:49 -0800)]
Merge pull request #13425 from dzafman/wip-15912

osd: various changes for preventing internal ENOSPC condition

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13783 from cbodley/wip-18980
Yehuda Sadeh [Mon, 6 Mar 2017 17:11:50 +0000 (09:11 -0800)]
Merge pull request #13783 from cbodley/wip-18980

rgw: if user.email is empty, dont try to delete

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13379 from jecluis/wip-mon-luminous-features
Sage Weil [Mon, 6 Mar 2017 16:46:08 +0000 (10:46 -0600)]
Merge pull request #13379 from jecluis/wip-mon-luminous-features

mon: enable luminous monmap feature on full quorum

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13582 from guzhongyan/cleanup_execute_ctx
Yuri Weinstein [Mon, 6 Mar 2017 16:35:11 +0000 (08:35 -0800)]
Merge pull request #13582 from guzhongyan/cleanup_execute_ctx

osd: correct the func name in execute_ctx() log messages

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13699 from yuyuyu101/wipasync-name
Yuri Weinstein [Mon, 6 Mar 2017 16:34:28 +0000 (08:34 -0800)]
Merge pull request #13699 from yuyuyu101/wipasync-name

msg/async: set thread name for msgr worker

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13726 from dachary/wip-crushtool-json
Yuri Weinstein [Mon, 6 Mar 2017 16:33:53 +0000 (08:33 -0800)]
Merge pull request #13726 from dachary/wip-crushtool-json

crush: add --dump to crushtool

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13730 from idryomov/wip-osd-rm-incremental
Yuri Weinstein [Mon, 6 Mar 2017 16:32:26 +0000 (08:32 -0800)]
Merge pull request #13730 from idryomov/wip-osd-rm-incremental

osd/OSDMap: don't set weight to IN when OSD is destroyed

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13715 from wangzhengyong/master
Sage Weil [Mon, 6 Mar 2017 14:36:02 +0000 (08:36 -0600)]
Merge pull request #13715 from wangzhengyong/master

os/bluestore: remove unused local variable "pos"

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13728 from ifed01/wip-bluestore-fix-smallwrite
Sage Weil [Mon, 6 Mar 2017 14:35:20 +0000 (08:35 -0600)]
Merge pull request #13728 from ifed01/wip-bluestore-fix-smallwrite

os/bluestore: fix a bug in small write handling on sharded extents

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13736 from rzarzynski/wip-bs-bitmap-exact-type-in-leaf
Sage Weil [Mon, 6 Mar 2017 14:35:01 +0000 (08:35 -0600)]
Merge pull request #13736 from rzarzynski/wip-bs-bitmap-exact-type-in-leaf

os/bluestore: leverage the type knowledge in BitMapAreaLeaf.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13743 from rzarzynski/wip-bs-bitmap-zone-direct-vector
Sage Weil [Mon, 6 Mar 2017 14:34:43 +0000 (08:34 -0600)]
Merge pull request #13743 from rzarzynski/wip-bs-bitmap-zone-direct-vector

os/bluestore: remove unneeded indirection in BitMapZone.

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13228 from trociny/wip-qa-rbd_mirror-opts
Kefu Chai [Mon, 6 Mar 2017 04:07:23 +0000 (12:07 +0800)]
Merge pull request #13228 from trociny/wip-qa-rbd_mirror-opts

qa/workunits/rbd: tweak rbd-mirror config to spead up testing

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13772 from Liuchang0812/wip-add-override-in-mgr-headers
Kefu Chai [Mon, 6 Mar 2017 02:39:01 +0000 (10:39 +0800)]
Merge pull request #13772 from Liuchang0812/wip-add-override-in-mgr-headers

mgr: add override in headers

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13765 from guihecheng/rgwfs-time-attrs
Matt Benjamin [Sat, 4 Mar 2017 20:50:47 +0000 (15:50 -0500)]
Merge pull request #13765 from guihecheng/rgwfs-time-attrs

rgw_file: posix style atime,ctime,mtime

8 years agoMerge pull request #13712 from linuxbox2/wip-dtor-fhcache
Matt Benjamin [Sat, 4 Mar 2017 20:50:03 +0000 (15:50 -0500)]
Merge pull request #13712 from linuxbox2/wip-dtor-fhcache

rgw_file: RGWFileHandle dtor must also cond-unlink from FHCache

8 years agoMerge pull request #13645 from yehudasa/wip-rgw-support-ragweed
Orit Wasserman [Sat, 4 Mar 2017 14:12:09 +0000 (16:12 +0200)]
Merge pull request #13645 from yehudasa/wip-rgw-support-ragweed

rgw: add apis to support ragweed
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #13413 from zhaochao/fix-mailmap-affiation
Kefu Chai [Sat, 4 Mar 2017 04:51:19 +0000 (12:51 +0800)]
Merge pull request #13413 from zhaochao/fix-mailmap-affiation

mailmap: fix Zhao Chao affiliation.

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agorgw: delete_system_obj() fails on empty object name 13783/head
Casey Bodley [Fri, 3 Mar 2017 17:10:40 +0000 (12:10 -0500)]
rgw: delete_system_obj() fails on empty object name

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: if user.email is empty, dont try to delete
Casey Bodley [Fri, 3 Mar 2017 16:42:45 +0000 (11:42 -0500)]
rgw: if user.email is empty, dont try to delete

Fixes: http://tracker.ceph.com/issues/18980
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13767 from tchaikov/wip-vstart-no-multiple-mgr-x
Sage Weil [Fri, 3 Mar 2017 15:56:07 +0000 (09:56 -0600)]
Merge pull request #13767 from tchaikov/wip-vstart-no-multiple-mgr-x

vstart.sh: do not add host for mgr.* section if not $overwrite_conf

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw_file: RGWFileHandle dtor must also cond-unlink from FHCache 13712/head
Matt Benjamin [Wed, 1 Mar 2017 01:24:12 +0000 (20:24 -0500)]
rgw_file: RGWFileHandle dtor must also cond-unlink from FHCache

Formerly masked in part by the reclaim() action, direct-delete now
substitutes for reclaim() iff its LRU lane is over its high-water
mark, and in particular, like reclaim() the destructor is certain
to see handles still interned on the FHcache when nfs-ganesha is
recycling objects from its own LRU.

Fixes: http://tracker.ceph.com/issues/19112
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agomgr: add override in headers 13772/head
liuchang0812 [Wed, 22 Feb 2017 11:52:46 +0000 (19:52 +0800)]
mgr: add override in headers

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #13584 from theanalyst/doc/release-luminous
Nathan Cutler [Fri, 3 Mar 2017 09:42:07 +0000 (10:42 +0100)]
Merge pull request #13584 from theanalyst/doc/release-luminous

doc: releases update the luminous, hammer, jewel release dates

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoos/bluestore: "noid" is not always necessary in clone op 13715/head
wangzhengyong [Fri, 3 Mar 2017 09:16:21 +0000 (17:16 +0800)]
os/bluestore: "noid" is not always necessary in clone op

Signed-off-by: wangzhengyong@cmss.chinamobile.com
8 years agovstart.sh: do not add host for mgr.* section if not $overwrite_conf 13767/head
Kefu Chai [Fri, 3 Mar 2017 07:52:11 +0000 (15:52 +0800)]
vstart.sh: do not add host for mgr.* section if not $overwrite_conf

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13678 from liewegas/wip-readable
Kefu Chai [Fri, 3 Mar 2017 07:03:03 +0000 (15:03 +0800)]
Merge pull request #13678 from liewegas/wip-readable

test/encoding: fix readable.sh bugs; fix ceph-object-corpus

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorgw_file: posix style atime,ctime,mtime 13765/head
Gui Hecheng [Thu, 2 Mar 2017 09:21:57 +0000 (17:21 +0800)]
rgw_file: posix style atime,ctime,mtime

As an ganesha FSAL backend, rgw_file should properly maintain
the atime,ctime,mtime properly against operations such as:
(read,write) for file
(create,unlink,mkdir,rmdir,rename) for dir
(setattr) for file and dir

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
8 years agoMerge pull request #13762 from Liuchang0812/wip-remove-unnecessary-code-in-mon
Kefu Chai [Fri, 3 Mar 2017 05:05:04 +0000 (13:05 +0800)]
Merge pull request #13762 from Liuchang0812/wip-remove-unnecessary-code-in-mon

mon: remove unnecessary function declaration

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomon: remove unnecessary function declaration 13762/head
liuchang0812 [Fri, 3 Mar 2017 03:54:34 +0000 (11:54 +0800)]
mon: remove unnecessary function declaration

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #12566 from Liuchang0812/wip-rados
Kefu Chai [Fri, 3 Mar 2017 03:47:25 +0000 (11:47 +0800)]
Merge pull request #12566 from Liuchang0812/wip-rados

tools/rados: remove useless function declaration

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12421 from cernceph/wip-dvanders-split
Sage Weil [Fri, 3 Mar 2017 01:04:51 +0000 (19:04 -0600)]
Merge pull request #12421 from cernceph/wip-dvanders-split

os/filestore/HashIndex: be loud about splits

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12627 from liupan1111/wip-fix-remove-when-full
Yuri Weinstein [Fri, 3 Mar 2017 00:59:34 +0000 (16:59 -0800)]
Merge pull request #12627 from liupan1111/wip-fix-remove-when-full

rbd: When Ceph cluster becomes full, should allow user to remove rbd …

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13289 from songbaisen/s13
Yuri Weinstein [Fri, 3 Mar 2017 00:57:23 +0000 (16:57 -0800)]
Merge pull request #13289 from songbaisen/s13

rados:  we need to get the latest osdmap when pool does not exists

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoos/bluestore: remove unneeded indirection in BitMapZone. 13743/head
Radoslaw Zarzynski [Wed, 1 Mar 2017 15:54:39 +0000 (16:54 +0100)]
os/bluestore: remove unneeded indirection in BitMapZone.

BitMapZone aggregates BmapEntries through a pointer to independently-
allocated std::vector which in turn has its own pointer to the real
data. This indirection is unnecessary as std::vector is pretty cheap
in the terms of memory overhead. For instance, on x86-64 & GCC 5.4.0
sizeof(std::vector) == 24, which translates to 3 raw pointers.

Stripping the indirection could have positive impact on processor's
caches and allow to minimize the number of memory accesses.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #13599 from kylinstorage/cleanup_bitmapallocator
Sage Weil [Thu, 2 Mar 2017 22:50:22 +0000 (16:50 -0600)]
Merge pull request #13599 from kylinstorage/cleanup_bitmapallocator

os/bluestore/BitMapAllocator: rm unused variable

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13744 from smithfarm/wip-19129
Sage Weil [Thu, 2 Mar 2017 22:39:46 +0000 (16:39 -0600)]
Merge pull request #13744 from smithfarm/wip-19129

build/ops: add psmisc dependency to ceph-base (deb and rpm)

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13750 from Saumay-Agrawal/master
Sage Weil [Thu, 2 Mar 2017 22:38:56 +0000 (16:38 -0600)]
Merge pull request #13750 from Saumay-Agrawal/master

mon: Update OSDMon.cc comments

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13751 from Saumay-Agrawal/patch-1
Sage Weil [Thu, 2 Mar 2017 22:38:07 +0000 (16:38 -0600)]
Merge pull request #13751 from Saumay-Agrawal/patch-1

doc: Update sample.ceph.conf

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoUpdate sample.ceph.conf 13751/head
Saumay Agrawal [Thu, 2 Mar 2017 19:34:19 +0000 (01:04 +0530)]
Update sample.ceph.conf

I have fixed the cleanup issue #19090: Wrong hard-coded URLs
Please add these changes to your documentation.

8 years agoUpdate OSDMon.cc 13750/head
Saumay Agrawal [Thu, 2 Mar 2017 19:09:26 +0000 (00:39 +0530)]
Update OSDMon.cc

I have fixed the issue cleanup #19090: Wrong hard-coded URLs
I have replaced the wrong URLs with correct URLs redirecting to the Tunables headline under Crush Map documentation.
Please add it to the documentation.

8 years agoMerge pull request #13748 from tchaikov/wip-disable-dwz
Sage Weil [Thu, 2 Mar 2017 18:12:52 +0000 (12:12 -0600)]
Merge pull request #13748 from tchaikov/wip-disable-dwz

rpm: disable dwz to speed up valgrind

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomon: test 'mon feature' cli 13379/head
Joao Eduardo Luis [Tue, 14 Feb 2017 16:35:01 +0000 (16:35 +0000)]
mon: test 'mon feature' cli

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
8 years agoqa/workunits/ceph-helpers: add wait_for_quorum()
Joao Eduardo Luis [Tue, 21 Feb 2017 01:27:54 +0000 (01:27 +0000)]
qa/workunits/ceph-helpers: add wait_for_quorum()

Takes optional timeout and desired quorum size

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
8 years agomon: enable persistent monmap features on full quorum
Joao Eduardo Luis [Mon, 13 Feb 2017 00:36:31 +0000 (00:36 +0000)]
mon: enable persistent monmap features on full quorum

We will now only enable persistent features automatically
when ALL the monitors in the monmap are in the quorum.
 #noMonitorLeftBehind

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
8 years agomon: better 'mon features' cli
Joao Eduardo Luis [Mon, 13 Feb 2017 00:35:18 +0000 (00:35 +0000)]
mon: better 'mon features' cli

Allows listing supported and currently set monmap features, as well as
setting and unsetting them.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
8 years agoMerge pull request #13571 from trociny/wip-18784
Jason Dillaman [Thu, 2 Mar 2017 17:03:25 +0000 (12:03 -0500)]
Merge pull request #13571 from trociny/wip-18784

rbd-mirror A/A: leader should track up/down rbd-mirror instances

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13746 from tahia-khan/wip-doc-quick-ceph-deploy
Kefu Chai [Thu, 2 Mar 2017 16:13:57 +0000 (00:13 +0800)]
Merge pull request #13746 from tahia-khan/wip-doc-quick-ceph-deploy

doc: deletes duplicated word and clarifies an example

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13689 from Liuchang0812/wip-19107-cleanup-confutil
Sage Weil [Thu, 2 Mar 2017 16:07:30 +0000 (10:07 -0600)]
Merge pull request #13689 from Liuchang0812/wip-19107-cleanup-confutil

common: use ref to avoid unnecessary memory copy

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13739 from Liuchang0812/fix-unittest-hostname
Sage Weil [Thu, 2 Mar 2017 16:05:21 +0000 (10:05 -0600)]
Merge pull request #13739 from Liuchang0812/fix-unittest-hostname

test: unittest_hostname compile error on freebsd

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #13693 from Liuchang0812/wip-add-override-in-mon-headers
Sage Weil [Thu, 2 Mar 2017 16:04:04 +0000 (10:04 -0600)]
Merge pull request #13693 from Liuchang0812/wip-add-override-in-mon-headers

mon: add override in headers

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13701 from dillaman/wip-19010
Mykola Golub [Thu, 2 Mar 2017 15:42:54 +0000 (17:42 +0200)]
Merge pull request #13701 from dillaman/wip-19010

librbd: simplify image open/close semantics

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agocommon: use ref to avoid unnecessary memory copy 13689/head
liuchang0812 [Tue, 28 Feb 2017 08:59:41 +0000 (16:59 +0800)]
common: use ref to avoid unnecessary memory copy

Fixes: http://tracker.ceph.com/issues/19107
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agodoc: deletes duplicated word and clarifies an example 13746/head
Tahia Khan [Thu, 2 Mar 2017 13:41:38 +0000 (08:41 -0500)]
doc: deletes duplicated word and clarifies an example

Signed-off-by: Tahia Khan <tahia.khan@gmail.com>
8 years agoMerge pull request #13679 from dillaman/wip-librbd-image-cache-clip
Mykola Golub [Thu, 2 Mar 2017 13:01:35 +0000 (15:01 +0200)]
Merge pull request #13679 from dillaman/wip-librbd-image-cache-clip

librbd: image-extent cache needs to clip out-of-bounds read buffers

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agomon: add override in headers 13693/head
liuchang0812 [Wed, 22 Feb 2017 10:07:02 +0000 (18:07 +0800)]
mon: add override in headers

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agobuild/ops: add psmisc dependency to ceph-base (deb and rpm) 13744/head
Nathan Cutler [Thu, 2 Mar 2017 11:41:07 +0000 (12:41 +0100)]
build/ops: add psmisc dependency to ceph-base (deb and rpm)

Fixes: http://tracker.ceph.com/issues/19129
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoos/bluestore: switch to alloc_dbg_assert in BmapEntityListIter::next(). 13736/head
Radoslaw Zarzynski [Thu, 2 Mar 2017 11:05:37 +0000 (12:05 +0100)]
os/bluestore: switch to alloc_dbg_assert in BmapEntityListIter::next().

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoos/bluestore: inline for the sake of BitMapAreaLeaf::child_check_n_lock.
Radoslaw Zarzynski [Thu, 2 Mar 2017 08:07:17 +0000 (09:07 +0100)]
os/bluestore: inline for the sake of BitMapAreaLeaf::child_check_n_lock.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agomailmap: fix Zhao Chao affiliation. 13413/head
Zhao Chao [Tue, 14 Feb 2017 08:39:15 +0000 (16:39 +0800)]
mailmap: fix Zhao Chao affiliation.

Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
8 years agoMerge pull request #13427 from ly798/update-info
Kefu Chai [Thu, 2 Mar 2017 09:00:48 +0000 (17:00 +0800)]
Merge pull request #13427 from ly798/update-info

mailmap: Liu Yang affiliation

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #13738 from yuyuyu101/wip-fix-ib
Haomai Wang [Thu, 2 Mar 2017 07:52:03 +0000 (15:52 +0800)]
Merge pull request #13738 from yuyuyu101/wip-fix-ib

msg/async/rdma: fix potential racing connection usage

Reviewed-by: Adir lev <adirl@mellanox.com>
8 years agoMerge pull request #13655 from Adirl/ulimit
Haomai Wang [Thu, 2 Mar 2017 07:02:21 +0000 (15:02 +0800)]
Merge pull request #13655 from Adirl/ulimit

msg/async/rdma: check ulimit

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: check ulimit 13655/head
Sarit Zubakov [Mon, 20 Feb 2017 20:52:55 +0000 (20:52 +0000)]
msg/async/rdma: check ulimit

On RDMA, memlock should be unlimited. If it is not then
warn the user

issue: 973654

Change-Id: If1e07722aaca9df88714828ca3f7398a2504e262
Signed-off-by: Sarit Zubakov <saritz@mellanox.com>
Signed-off-by: Adir Lev <adirl@mellanox.com>
8 years agoMerge pull request #13510 from yuyuyu101/wip-rdma-buffer-size
Haomai Wang [Thu, 2 Mar 2017 06:47:01 +0000 (14:47 +0800)]
Merge pull request #13510 from yuyuyu101/wip-rdma-buffer-size

common/config_opts: improve rdma buffer size to 128k

8 years agotest: unittest_hostname compile error on freebsd 13739/head
liuchang0812 [Thu, 2 Mar 2017 05:56:20 +0000 (13:56 +0800)]
test: unittest_hostname compile error on freebsd

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #13713 from drunkard/master
Kefu Chai [Thu, 2 Mar 2017 06:16:48 +0000 (14:16 +0800)]
Merge pull request #13713 from drunkard/master

doc: misc minor fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorpm: disable dwz to speed up valgrind 13748/head
Kefu Chai [Thu, 2 Mar 2017 05:08:17 +0000 (13:08 +0800)]
rpm: disable dwz to speed up valgrind

Fixes: http://tracker.ceph.com/issues/19099
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomsg/async/rdma: fix incorrect method name 13738/head
Haomai Wang [Thu, 2 Mar 2017 03:53:13 +0000 (11:53 +0800)]
msg/async/rdma: fix incorrect method name

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: keep qp_conns lock to prevent connection alive
Haomai Wang [Thu, 2 Mar 2017 03:44:59 +0000 (11:44 +0800)]
msg/async/rdma: keep qp_conns lock to prevent connection alive

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: remove unused variables
Haomai Wang [Thu, 2 Mar 2017 03:41:52 +0000 (11:41 +0800)]
msg/async/rdma: remove unused variables

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13525 from yuyuyu101/wip-infiniband-fork
Haomai Wang [Thu, 2 Mar 2017 03:36:51 +0000 (11:36 +0800)]
Merge pull request #13525 from yuyuyu101/wip-infiniband-fork

msg/async/rdma: make Infiniband can be forkable

8 years agomsg/async/rdma: restart Infiniband resources to handle fork properly 13525/head
Haomai Wang [Mon, 20 Feb 2017 03:58:15 +0000 (11:58 +0800)]
msg/async/rdma: restart Infiniband resources to handle fork properly

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13666 from Adirl/chunk_size
Haomai Wang [Thu, 2 Mar 2017 03:34:44 +0000 (11:34 +0800)]
Merge pull request #13666 from Adirl/chunk_size

msg/async/rdma: rename chunk_size to buffer_size

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agodoc: add missed commas 13713/head
Drunkard Zhang [Wed, 1 Mar 2017 02:06:02 +0000 (10:06 +0800)]
doc: add missed commas

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
8 years agodoc: add mark for quoted content
Drunkard Zhang [Wed, 1 Mar 2017 02:05:38 +0000 (10:05 +0800)]
doc: add mark for quoted content

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
8 years agodoc: command typo fix, s/radosgw_admin/radosgw-admin
Drunkard Zhang [Wed, 1 Mar 2017 02:01:38 +0000 (10:01 +0800)]
doc: command typo fix, s/radosgw_admin/radosgw-admin

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
8 years agodoc: fix aiming of command ping
Drunkard Zhang [Wed, 1 Mar 2017 02:00:43 +0000 (10:00 +0800)]
doc: fix aiming of command ping

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
8 years agodoc: hyperlink typo fix in dev/index
Drunkard Zhang [Wed, 1 Mar 2017 01:58:29 +0000 (09:58 +0800)]
doc: hyperlink typo fix in dev/index

The doc compiler complains about this.

Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
8 years agoos/bluestore: leverage the type knowledge in BitMapAreaLeaf.
Radoslaw Zarzynski [Thu, 2 Mar 2017 02:24:00 +0000 (03:24 +0100)]
os/bluestore: leverage the type knowledge in BitMapAreaLeaf.

We're sure the only element type BitMapAreaLeaf aggregates is
BitMapZone. There is no business to go through vptrs and thus
prohibit compiler to inline in a method that is crucial for
overall performance of the BitMap allocator.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #13680 from yuyuyu101/wip-tx-zerocopy
Haomai Wang [Thu, 2 Mar 2017 02:00:16 +0000 (10:00 +0800)]
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>
8 years agoMerge pull request #13706 from zmc/wip-openstack-volumes
Zack Cerza [Wed, 1 Mar 2017 23:35:42 +0000 (16:35 -0700)]
Merge pull request #13706 from zmc/wip-openstack-volumes

qa/suites/ceph-deploy: Drop OpenStack volume count

8 years agoMerge pull request #13657 from badone/wip-rgw-setuid-no-coredump
Brad Hubbard [Wed, 1 Mar 2017 22:54:37 +0000 (08:54 +1000)]
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>
8 years agoMerge pull request #12998 from Liuchang0812/wip-11081
Sage Weil [Wed, 1 Mar 2017 22:30:24 +0000 (16:30 -0600)]
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>
8 years agoMerge pull request #13651 from rzarzynski/wip-bs-bitmap-nocct-in-entry
Sage Weil [Wed, 1 Mar 2017 22:29:09 +0000 (16:29 -0600)]
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>
8 years agoMerge pull request #13662 from majianpeng/aio-memset
Sage Weil [Wed, 1 Mar 2017 22:28:38 +0000 (16:28 -0600)]
Merge pull request #13662 from majianpeng/aio-memset

os/aio: remove the redundant memset(struct iocb)

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13668 from songbaisen/m3
Sage Weil [Wed, 1 Mar 2017 22:27:24 +0000 (16:27 -0600)]
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>
8 years agoMerge pull request #13702 from liewegas/wip-trackedop-desc
Sage Weil [Wed, 1 Mar 2017 22:26:54 +0000 (16:26 -0600)]
Merge pull request #13702 from liewegas/wip-trackedop-desc

common/TrackedOp: make TrackedOp::reset_desc() safe

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoqa/suites/ceph-deploy: Drop OpenStack volume count 13706/head
Zack Cerza [Tue, 28 Feb 2017 20:07:15 +0000 (13:07 -0700)]
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>
8 years agoMerge pull request #13729 from dillaman/wip-librbd-compile-warnings
Mykola Golub [Wed, 1 Mar 2017 21:57:54 +0000 (23:57 +0200)]
Merge pull request #13729 from dillaman/wip-librbd-compile-warnings

librbd: eliminate compiler warnings

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoosd/OSDMap: don't set weight to IN when OSD is destroyed 13730/head
Ilya Dryomov [Wed, 1 Mar 2017 16:19:04 +0000 (17:19 +0100)]
osd/OSDMap: don't set weight to IN when OSD is destroyed

Since commit 4e28f9e63644 ("osd/OSDMap: clear osd_info, osd_xinfo on
osd deletion"), weight is set to IN when OSD is deleted.  This changes
the result of applying an incremental for clients, not just OSDs.
Because CRUSH computations are obviously affected, pre-4e28f9e63644
servers disagree with post-4e28f9e63644 clients on object placement,
resulting in misdirected requests.

Fixes: http://tracker.ceph.com/issues/19119
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>