]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
8 years agoMerge pull request #15398 from liewegas/wip-bluestore-leak
Sage Weil [Fri, 2 Jun 2017 15:19:26 +0000 (10:19 -0500)]
Merge pull request #15398 from liewegas/wip-bluestore-leak

os/bluestore: fix buffers pinned by indefinitely deferred writes

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #15402 from liewegas/wip-bluestore-mempools
Sage Weil [Fri, 2 Jun 2017 15:19:03 +0000 (10:19 -0500)]
Merge pull request #15402 from liewegas/wip-bluestore-mempools

os/bluestore: improve mempool usage

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #15403 from liewegas/wip-mempool-dump
Sage Weil [Fri, 2 Jun 2017 15:18:38 +0000 (10:18 -0500)]
Merge pull request #15403 from liewegas/wip-mempool-dump

mempool: improve dump; fix buffer accounting bugs

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15431 from rzarzynski/wip-rgw-vim-modeline-for-orhpantool
Casey Bodley [Fri, 2 Jun 2017 14:05:17 +0000 (10:05 -0400)]
Merge pull request #15431 from rzarzynski/wip-rgw-vim-modeline-for-orhpantool

rgw: add the Vim's modeline into rgw_orphan.cc.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15425 from yaozongyou/fix-build-error
Kefu Chai [Fri, 2 Jun 2017 13:56:03 +0000 (21:56 +0800)]
Merge pull request #15425 from yaozongyou/fix-build-error

cmake: link against fcgi only if enabled

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: add the Vim's modeline into rgw_orphan.cc.
Radoslaw Zarzynski [Fri, 2 Jun 2017 12:03:44 +0000 (14:03 +0200)]
rgw: add the Vim's modeline into rgw_orphan.cc.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #15408 from yonghengdexin735/wip-zzz-add_const
Jos Collin [Fri, 2 Jun 2017 05:41:58 +0000 (11:11 +0530)]
Merge pull request #15408 from yonghengdexin735/wip-zzz-add_const

include/lru.h: add const to member functions

Reviewed-by: Jos Collin <jcollin@redhat.com>
8 years agoFix cmake build error.
Yao Zongyou [Fri, 2 Jun 2017 04:11:59 +0000 (12:11 +0800)]
Fix cmake build error.

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
8 years agoMerge pull request #15420 from yuriw/wip_remove_default_idle_timeout
Sage Weil [Fri, 2 Jun 2017 03:08:31 +0000 (22:08 -0500)]
Merge pull request #15420 from yuriw/wip_remove_default_idle_timeout

qa: Removed all 'default_idle_timeout' due to chnage in rwg task

8 years agoMerge pull request #15397 from dzafman/wip-20089
Sage Weil [Fri, 2 Jun 2017 02:40:29 +0000 (21:40 -0500)]
Merge pull request #15397 from dzafman/wip-20089

osd: Object level shard errors are tracked and used if no auth available

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15417 from smithfarm/wip-cond-epoch-2
Sage Weil [Fri, 2 Jun 2017 02:14:13 +0000 (21:14 -0500)]
Merge pull request #15417 from smithfarm/wip-cond-epoch-2

build/ops: rpm: move _epoch_prefix below Epoch definition

8 years agoinclude/lru: add const to member function
yonghengdexin735 [Thu, 1 Jun 2017 08:20:55 +0000 (16:20 +0800)]
include/lru: add const to member function

Signed-off-by: yonghengdexin735 <zhang.zezhu@zte.com.cn>
8 years agoRemoved all 'default_idle_timeout' due to chnage in rwg task
Yuri Weinstein [Thu, 1 Jun 2017 21:01:30 +0000 (14:01 -0700)]
Removed all 'default_idle_timeout' due to chnage in rwg task
https://github.com/ceph/ceph/commit/8c74c8a639cd3dead52e1942b36f6eb3f1ceab2c#diff-995b04809fcabacc3e3ecfaea903a41aL539

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
8 years agobuild/ops: rpm: move _epoch_prefix below Epoch definition
Nathan Cutler [Thu, 1 Jun 2017 19:37:09 +0000 (21:37 +0200)]
build/ops: rpm: move _epoch_prefix below Epoch definition

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15400 from yehudasa/wip-20128
Sage Weil [Thu, 1 Jun 2017 19:22:39 +0000 (14:22 -0500)]
Merge pull request #15400 from yehudasa/wip-20128

qa/rgw_snaps: move default_idle_timeout config under the client

8 years agoosd: Object level shard errors are tracked and used if no auth available
David Zafman [Wed, 31 May 2017 22:39:19 +0000 (15:39 -0700)]
osd: Object level shard errors are tracked and used if no auth available

Shards with object mismatch are tracked to mark them inconsistent
Fix test because storing omap_digest in object_info not behaving as before

Fixes: http://tracker.ceph.com/issues/20089
Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoosd-scrub-repair: Fix broken test and correctly handle ec overwrite testing
David Zafman [Thu, 1 Jun 2017 03:53:28 +0000 (20:53 -0700)]
osd-scrub-repair: Fix broken test and correctly handle ec overwrite testing

Caused by: 3ca750d41dfe33c6efea4abc96d2bd426a9742b9

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #15212 from neha-ojha/wip-fix-recovery-sleep-configurable
Sage Weil [Thu, 1 Jun 2017 16:54:58 +0000 (11:54 -0500)]
Merge pull request #15212 from neha-ojha/wip-fix-recovery-sleep-configurable

osd: Implement asynchronous recovery sleep

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15262 from Adirl/revert_cm
Sage Weil [Thu, 1 Jun 2017 16:54:33 +0000 (11:54 -0500)]
Merge pull request #15262 from Adirl/revert_cm

msg/async: Revert RDMA-CM

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #15307 from ovh/bp-64bit-mem-is-zero
Sage Weil [Thu, 1 Jun 2017 16:54:19 +0000 (11:54 -0500)]
Merge pull request #15307 from ovh/bp-64bit-mem-is-zero

inline_memory: optimized mem_is_zero for non-x64

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15340 from wjwithagen/wip-wjw-libcommon
Sage Weil [Thu, 1 Jun 2017 16:53:54 +0000 (11:53 -0500)]
Merge pull request #15340 from wjwithagen/wip-wjw-libcommon

cmake: do not link libcommon against some libs

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15342 from chardan/jfw-wip-add_VLA_warning
Sage Weil [Thu, 1 Jun 2017 16:53:32 +0000 (11:53 -0500)]
Merge pull request #15342 from chardan/jfw-wip-add_VLA_warning

build: Adds C++ warning flag for C Variable-Length Arrays.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15364 from joscollin/wip-cleanup-putto-operator-const
Sage Weil [Thu, 1 Jun 2017 16:52:57 +0000 (11:52 -0500)]
Merge pull request #15364 from joscollin/wip-cleanup-putto-operator-const

src: put-to operator function - const input cleanup

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #15372 from ganeshmaharaj/reuse-isal
Sage Weil [Thu, 1 Jun 2017 16:52:40 +0000 (11:52 -0500)]
Merge pull request #15372 from ganeshmaharaj/reuse-isal

erasure-code: Remove duplicate of isa-l files

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoos/bluestore: release aios and pinned buffers on io complete
Sage Weil [Wed, 31 May 2017 22:44:02 +0000 (18:44 -0400)]
os/bluestore: release aios and pinned buffers on io complete

Once we're done with our IO, clear the aio list so that the pinned buffers
are unpinned.  This ensures we release memory quickly, even if the
TransContext sticks around for a while (e.g., in the osr q).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: submit deferred if txc cleanup is blocked
Sage Weil [Wed, 31 May 2017 22:38:36 +0000 (18:38 -0400)]
os/bluestore: submit deferred if txc cleanup is blocked

If we have a single deferred write, and then a uniform workload with *no*
deferred writes, we will never actually submit it.  Meanwhile, the txc is
stuck on the osr q and nothing ever gets retired.

Simple fix is to submit any deferred ops if the osr queue is blocked by
a queued deferred write and the osr queue length is above some
threshold.  This prevents memory from being pinned indefinitely.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15209 from liewegas/wip-sortbitwise-notes
Sage Weil [Thu, 1 Jun 2017 16:26:06 +0000 (11:26 -0500)]
Merge pull request #15209 from liewegas/wip-sortbitwise-notes

doc/release-notes: update which jewel version does sortbitwise warning

8 years agoMerge pull request #15274 from liewegas/wip-auto-ccache
Sage Weil [Thu, 1 Jun 2017 16:25:36 +0000 (11:25 -0500)]
Merge pull request #15274 from liewegas/wip-auto-ccache

do_cmake.sh: enable ccache if installed

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodo_cmake.sh: enable ccache if installed
Sage Weil [Thu, 1 Jun 2017 16:25:11 +0000 (12:25 -0400)]
do_cmake.sh: enable ccache if installed

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15391 from liewegas/wip-authors
Sage Weil [Thu, 1 Jun 2017 15:15:30 +0000 (10:15 -0500)]
Merge pull request #15391 from liewegas/wip-authors

AUTHORS: update with release manager, backport team

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #15410 from dachary/wip-19941-ceph-disk
Loic Dachary [Thu, 1 Jun 2017 14:31:38 +0000 (16:31 +0200)]
Merge pull request #15410 from dachary/wip-19941-ceph-disk

ceph-disk: do not setup_statedir on trigger

Reviewed-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15412 from dachary/wip-choose-args
Kefu Chai [Thu, 1 Jun 2017 12:57:25 +0000 (20:57 +0800)]
Merge pull request #15412 from dachary/wip-choose-args

crush: add missing tunable in tests

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocrush: add missing tunable in tests
Loic Dachary [Thu, 1 Jun 2017 11:50:51 +0000 (13:50 +0200)]
crush: add missing tunable in tests

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #15286 from smithfarm/wip-cond-epoch
Kefu Chai [Thu, 1 Jun 2017 11:41:41 +0000 (19:41 +0800)]
Merge pull request #15286 from smithfarm/wip-cond-epoch

build/ops: rpm: apply epoch only if %epoch macro is defined

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15240 from ukernel/wip-20055
John Spray [Thu, 1 Jun 2017 10:33:51 +0000 (11:33 +0100)]
Merge pull request #15240 from ukernel/wip-20055

osdc/Journaler: avoid executing on_safe contexts prematurely

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #15282 from david-z/wip-fix-mantle
John Spray [Thu, 1 Jun 2017 10:28:46 +0000 (11:28 +0100)]
Merge pull request #15282 from david-z/wip-fix-mantle

mds: Pass empty string to clear mantle balancer

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15314 from renhwztetecs/renhw-wip-client-cleanup
John Spray [Thu, 1 Jun 2017 10:25:44 +0000 (11:25 +0100)]
Merge pull request #15314 from renhwztetecs/renhw-wip-client-cleanup

client: fix display ino in the ldout

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #15300 from ukernel/wip-20083
John Spray [Thu, 1 Jun 2017 10:24:09 +0000 (11:24 +0100)]
Merge pull request #15300 from ukernel/wip-20083

mds: properly create aux subtrees for pinned directory

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15278 from viCEnTECheNg/wip-data-pools-type
John Spray [Thu, 1 Jun 2017 10:23:33 +0000 (11:23 +0100)]
Merge pull request #15278 from viCEnTECheNg/wip-data-pools-type

mds: change the type of data_pools

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15205 from batrick/i20039
John Spray [Thu, 1 Jun 2017 10:23:02 +0000 (11:23 +0100)]
Merge pull request #15205 from batrick/i20039

mds: check export pin during replay

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoceph-disk: do not setup_statedir on trigger
Loic Dachary [Thu, 1 Jun 2017 09:37:20 +0000 (11:37 +0200)]
ceph-disk: do not setup_statedir on trigger

trigger may run when statedir is unavailable and does not use it.

Fixes: http://tracker.ceph.com/issues/19941
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #15406 from tchaikov/wip-setuptools-vendors-six-or-not
Kefu Chai [Thu, 1 Jun 2017 07:17:15 +0000 (15:17 +0800)]
Merge pull request #15406 from tchaikov/wip-setuptools-vendors-six-or-not

install-deps.sh: workaround setuptools' dependency on six

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoinstall-deps.sh: workaround setuptools' dependency on six
Kefu Chai [Thu, 1 Jun 2017 06:05:07 +0000 (14:05 +0800)]
install-deps.sh: workaround setuptools' dependency on six

see also https://github.com/pypa/setuptools/issues/1042

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: mempools for writing and writing_deferred
Sage Weil [Thu, 1 Jun 2017 02:50:04 +0000 (22:50 -0400)]
os/bluestore: mempools for writing and writing_deferred

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: bluestore_txc mempool
Sage Weil [Thu, 1 Jun 2017 02:45:11 +0000 (22:45 -0400)]
os/bluestore: bluestore_txc mempool

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: rename cache mempools to bluestore_cache_*
Sage Weil [Thu, 1 Jun 2017 02:43:17 +0000 (22:43 -0400)]
os/bluestore: rename cache mempools to bluestore_cache_*

These map directly onto the bluestore_cache_size setting.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: maybe_rebuild before adding to cache too
Sage Weil [Wed, 31 May 2017 19:41:33 +0000 (15:41 -0400)]
os/bluestore: maybe_rebuild before adding to cache too

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoAUTHORS: update with release manager, backport team
Sage Weil [Thu, 1 Jun 2017 02:32:13 +0000 (22:32 -0400)]
AUTHORS: update with release manager, backport team

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15370 from liewegas/wip-jewel-tunables
Sage Weil [Thu, 1 Jun 2017 02:26:17 +0000 (21:26 -0500)]
Merge pull request #15370 from liewegas/wip-jewel-tunables

crush, mon: make jewel the lower bound for client/crush compat for new clusters

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agotest/cli/osdmaptool/: fix tests
Sage Weil [Thu, 1 Jun 2017 02:25:26 +0000 (22:25 -0400)]
test/cli/osdmaptool/: fix tests

CRUSH tunables now default to jewel; outputs vary and
upmap results are a bit different.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: fix some append_buffer vs mempool assignment; add tests
Sage Weil [Thu, 1 Jun 2017 02:19:51 +0000 (22:19 -0400)]
buffer: fix some append_buffer vs mempool assignment; add tests

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: make dump more concise
Sage Weil [Wed, 31 May 2017 20:53:33 +0000 (16:53 -0400)]
mempool: make dump more concise

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/cli/crushtool: adjust tests
Sage Weil [Wed, 31 May 2017 13:44:27 +0000 (09:44 -0400)]
test/cli/crushtool: adjust tests

Specify chooseleaf_stable for --build tests to match prior output.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: set mon_osd_initial_require_min_compat_client = jewel
Sage Weil [Tue, 30 May 2017 17:55:18 +0000 (13:55 -0400)]
mon: set mon_osd_initial_require_min_compat_client = jewel

IMO a jewel lower bound is reasonable for new clusters.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocrush: set default tunables to jewel
Sage Weil [Tue, 30 May 2017 17:54:16 +0000 (13:54 -0400)]
crush: set default tunables to jewel

For new clusters.

This is the last "disruptive" tunable change we've made (where adjusting/
fixing it requires lots of data movement).  For new clusters a lower bound
of jewel seems pretty reasonable, and this has been upstream in Linux
for a while now.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15267 from joscollin/wip-cleanup-redundant-headers-5
Brad Hubbard [Thu, 1 Jun 2017 00:39:15 +0000 (10:39 +1000)]
Merge pull request #15267 from joscollin/wip-cleanup-redundant-headers-5

common: Remove redundant includes - 5

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoqa/rgw_snaps: move default_idle_timeout config under the client
Yehuda Sadeh [Thu, 1 Jun 2017 00:13:41 +0000 (17:13 -0700)]
qa/rgw_snaps: move default_idle_timeout config under the client

Fixes: http://tracker.ceph.com/issues/20128
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #15311 from dachary/wip-crush-add-remove
Sage Weil [Wed, 31 May 2017 23:09:36 +0000 (18:09 -0500)]
Merge pull request #15311 from dachary/wip-crush-add-remove

crush: update choose_args when items are added/removed

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15318 from tchaikov/wip-20067
Sage Weil [Wed, 31 May 2017 23:09:06 +0000 (18:09 -0500)]
Merge pull request #15318 from tchaikov/wip-20067

mon: trim the creating_pgs after updating it with pgmap

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15352 from liewegas/wip-buffer-mempools
Sage Weil [Wed, 31 May 2017 23:08:49 +0000 (18:08 -0500)]
Merge pull request #15352 from liewegas/wip-buffer-mempools

buffer: allow buffers to be accounted in arbitrary mempools

8 years agoMerge pull request #15357 from ceph/typo_bluestore
Sage Weil [Wed, 31 May 2017 23:08:34 +0000 (18:08 -0500)]
Merge pull request #15357 from ceph/typo_bluestore

os/bluestore: fix a typo about bleustore

Reviewed-by: Varada Kari <varada.kari@gmail.com>
8 years agoMerge pull request #15385 from myoungwon/wip-20114
Sage Weil [Wed, 31 May 2017 23:06:40 +0000 (18:06 -0500)]
Merge pull request #15385 from myoungwon/wip-20114

test/osd/TestRados.cc: run set-redirect test after finishing setup

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoRevert "osd: When scrub finds an attr error mark shard inconsistent"
David Zafman [Wed, 31 May 2017 20:49:18 +0000 (13:49 -0700)]
Revert "osd: When scrub finds an attr error mark shard inconsistent"

This reverts commit 44736aac74493b5532c9e3574a37a3642766f212.

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #14457 from ceph/wip-rest-flask
Sage Weil [Wed, 31 May 2017 22:48:43 +0000 (17:48 -0500)]
Merge pull request #14457 from ceph/wip-rest-flask

ceph-mgr: Implement new pecan-based rest api

8 years agoMerge pull request #15222 from guihecheng/rgw_file-fix-unlink
Matt Benjamin [Wed, 31 May 2017 20:57:20 +0000 (16:57 -0400)]
Merge pull request #15222 from guihecheng/rgw_file-fix-unlink

rgw_file: fix flags set on unsuccessful unlink

8 years agoMerge pull request #15329 from guihecheng/rgw_file-readdir
Matt Benjamin [Wed, 31 May 2017 20:35:37 +0000 (16:35 -0400)]
Merge pull request #15329 from guihecheng/rgw_file-readdir

rgw_file: add lock protection for readdir against gc

8 years agoMerge pull request #14871 from ceph/wip-selinux-optimize
Boris Ranto [Wed, 31 May 2017 18:53:14 +0000 (20:53 +0200)]
Merge pull request #14871 from ceph/wip-selinux-optimize

selinux: Do parallel relabel on package install

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
8 years agomempool: dump total, too
Sage Weil [Tue, 30 May 2017 18:47:04 +0000 (14:47 -0400)]
mempool: dump total, too

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: (loosely) mark cached map bl buffers as osd_mapbl
Sage Weil [Mon, 29 May 2017 20:55:28 +0000 (16:55 -0400)]
osd: (loosely) mark cached map bl buffers as osd_mapbl

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: mark buffer caches buffers as bluestore_data
Sage Weil [Mon, 29 May 2017 01:21:20 +0000 (21:21 -0400)]
os/bluestore: mark buffer caches buffers as bluestore_data

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: remove buffer_data mempool
Sage Weil [Tue, 30 May 2017 19:58:53 +0000 (15:58 -0400)]
buffer: remove buffer_data mempool

We are explicitly accounting for buffers via arbitrary pools, defaulting
to buffer_anon, so we don't need buffer_data anymore.  It leads to
double-counting.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: allow buffers to map into arbitrary mempools
Sage Weil [Mon, 29 May 2017 01:21:05 +0000 (21:21 -0400)]
buffer: allow buffers to map into arbitrary mempools

- default is buffer_anon
- buffer_data includes *all* buffers across all mempools, and is the
*actual* allocation (includes raw_combined).
- buffer_meta is other buffer-related overhead.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: allow pool counts to be adjusted explicitly
Sage Weil [Mon, 29 May 2017 01:19:44 +0000 (21:19 -0400)]
mempool: allow pool counts to be adjusted explicitly

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agobuffer: fix mempool accounting for claimed chars
Sage Weil [Mon, 8 May 2017 18:50:43 +0000 (14:50 -0400)]
buffer: fix mempool accounting for claimed chars

These are allocated by the caller, outside of the mempool; do not
deallocate via the mempool.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: kill unittest_? mempools
Sage Weil [Fri, 5 May 2017 19:48:46 +0000 (15:48 -0400)]
mempool: kill unittest_? mempools

These were just annoying.  Use some real ones that will be empty
for the unit tests.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15291 from liewegas/wip-osdmap-pgtemp
Sage Weil [Wed, 31 May 2017 18:47:00 +0000 (13:47 -0500)]
Merge pull request #15291 from liewegas/wip-osdmap-pgtemp

osd/OSDMap: make pg_temp more efficient

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15321 from liewegas/wip-failed-msg
Sage Weil [Wed, 31 May 2017 18:46:09 +0000 (13:46 -0500)]
Merge pull request #15321 from liewegas/wip-failed-msg

mon/OSDMonitor: change info in 'osd failed' messages

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15388 from idryomov/wip-krbd-fallocate-tests
Jason Dillaman [Wed, 31 May 2017 16:38:15 +0000 (12:38 -0400)]
Merge pull request #15388 from idryomov/wip-krbd-fallocate-tests

qa: krbd discard/zeroout tests

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15135 from cbodley/wip-denc-sstring
Sage Weil [Wed, 31 May 2017 15:38:53 +0000 (10:38 -0500)]
Merge pull request #15135 from cbodley/wip-denc-sstring

denc: add encode/decode for basic_sstring

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13802 from LiumxNL/wip-170306
Sage Weil [Wed, 31 May 2017 15:38:24 +0000 (10:38 -0500)]
Merge pull request #13802 from LiumxNL/wip-170306

mon/OSDMonitor: use up set instead of acting set in reweight_by_utilization

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoerasure-code: Remove duplicate of isa-l files
Ganesh Mahalingam [Tue, 30 May 2017 20:14:30 +0000 (13:14 -0700)]
erasure-code: Remove duplicate of isa-l files

There are two copies of isa-l. While one is a git submodule the other
was a static copy from an older version. This change helps with removing
the duplicate and maintain a single copy.
This is also upgrading isa-l used by (src/erasure-code/isa/isa-l) from
v2.14 to v2.16.0

Signed-off-by: Ganesh Mahalingam <ganesh.mahalingam@intel.com>
8 years agoMerge pull request #15295 from liewegas/wip-bluestore-fsck
Sage Weil [Wed, 31 May 2017 14:39:18 +0000 (09:39 -0500)]
Merge pull request #15295 from liewegas/wip-bluestore-fsck

os/bluestore: fix fsck deferred_replay

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agotest/osd/TestRados.cc: run test after finishing redirect setup
myoungwon oh [Wed, 31 May 2017 14:13:56 +0000 (23:13 +0900)]
test/osd/TestRados.cc: run test after finishing redirect setup

set-redirect test creates more objects than default due to redirect mapping
(let's assume that we create 500 objects, oid 1 -> oid 501, oid 2 -> oid 502)
But the test should use objects within pre-defined range. For example,
If the number of object is 500, only 1~500 oid are allowed for test operations.

In the failure cases, test operation tried to use wrong oids (which means
higher than 500). This is because the bug in the setup phase.
If max_inflights > 1, set-redirect can be finished after setup is completed.
(so wrong oid is included in oid_in_use).
We need to completely remove redirect objects in oid_in_use before start the test.

Fixes: http://tracker.ceph.com/issues/20114
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
8 years agoqa: krbd discard/zeroout tests
Ilya Dryomov [Tue, 30 May 2017 14:17:21 +0000 (16:17 +0200)]
qa: krbd discard/zeroout tests

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agorpm: Move ceph-disk to ceph-base
Boris Ranto [Fri, 26 May 2017 07:52:25 +0000 (09:52 +0200)]
rpm: Move ceph-disk to ceph-base

The SELinux package now requires the ceph-disk binary but that one was
part of the ceph-osd package. The ceph-disk python library is already
packaged in ceph-base so moving ceph-disk to ceph-base seems like a
reasonable next step.

Signed-off-by: Boris Ranto <branto@redhat.com>
8 years agorgw_file: add lock protection for readdir against gc
Gui Hecheng [Sat, 27 May 2017 02:03:59 +0000 (10:03 +0800)]
rgw_file: add lock protection for readdir against gc

The state.mtx protects state.events accessed both from readdir and gc.
Fixes: http://tracker.ceph.com/issues/20121
Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
8 years agoMerge pull request #15374 from yonghengdexin735/wip-zzz-mds
Jos Collin [Wed, 31 May 2017 07:50:45 +0000 (13:20 +0530)]
Merge pull request #15374 from yonghengdexin735/wip-zzz-mds

mon: Removed unnecessary function declaration in MDSMonitor.h

Reviewed-by: Jos Collin <jcollin@redhat.com>
8 years agocrush: update choose_args on adjust_item_weight
Loic Dachary [Fri, 26 May 2017 21:46:10 +0000 (00:46 +0300)]
crush: update choose_args on adjust_item_weight

The osd_crush_update_weight_set (true by default) can be used to disable
the update of the weights.

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agocrush: update choose_args when items are added/removed
Loic Dachary [Fri, 26 May 2017 13:38:24 +0000 (16:38 +0300)]
crush: update choose_args when items are added/removed

When items are added:

- the value in the weight set is set to the target weight. It is assumed
  that weight set are updated on a regular basis and will eventually be
  set to a value that prevents excessive over/under filling.

- the value in the id list is set to the item id.

When items are removed, their weight / ids in all choose_args are
removed.

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agosrc: put-to operator function - const input cleanup
Jos Collin [Tue, 30 May 2017 14:57:50 +0000 (20:27 +0530)]
src: put-to operator function - const input cleanup

Fixed the instances of the issue specified in Tracker#3977 inside src/ folder utmost, by adding
const input. This fix avoids the following directories inside src: rocksdb/ zstd/ boost/ rapidjson/ googletest/ Beast/.

Fixes: http://tracker.ceph.com/issues/3977
Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #15373 from kestrels/wip-asm-capital-S
Kefu Chai [Wed, 31 May 2017 05:46:56 +0000 (13:46 +0800)]
Merge pull request #15373 from kestrels/wip-asm-capital-S

build: Use .S suffix for ppc64le assembly files

Reviewed-by: Bassam Tabbara <bassam.tabbara@quantum.com>
Reviewed-By: Kefu Chai <kchai@redhat.com>
8 years agomon:remove useless function for MDSMonitor::generate_mds_map()
yonghengdexin735 [Wed, 31 May 2017 03:34:23 +0000 (11:34 +0800)]
mon:remove useless function for MDSMonitor::generate_mds_map()

Signed-off-by: yonghengdexin735 <zhang.zezhu@zte.com.cn>
8 years agoMerge pull request #15351 from liewegas/wip-osdmap-require-min-client
Sage Weil [Wed, 31 May 2017 02:48:01 +0000 (21:48 -0500)]
Merge pull request #15351 from liewegas/wip-osdmap-require-min-client

osd/OSDMap: replace string-based min_compat_client with a CEPH_RELEASE_* uint8_t

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoosdmaptool: fix cli tests
Sage Weil [Tue, 30 May 2017 18:51:31 +0000 (14:51 -0400)]
osdmaptool: fix cli tests

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/version: include release name and type in version string
Sage Weil [Sat, 27 May 2017 19:38:10 +0000 (15:38 -0400)]
common/version: include release name and type in version string

 ceph version 12.0.2-1687-ge042051 (e0420518d712d87a4882b3a327eaf1d3fcea12df) luminous (dev)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/OSDMap: switch [require_]min_compat_client to CEPH_RELEASE_* values
Sage Weil [Sat, 27 May 2017 19:09:16 +0000 (15:09 -0400)]
osd/OSDMap: switch [require_]min_compat_client to CEPH_RELEASE_* values

Instead of using a string, use the defined CEPH_RELEASE_* values.  This
is simpler.

We allow decoding of post-kraken pre-luminous maps that use the string
values.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon: expand CEPH_RELEASE_ names; rename helper
Sage Weil [Sat, 27 May 2017 18:53:24 +0000 (14:53 -0400)]
common: expand CEPH_RELEASE_ names; rename helper

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15331 from yonghengdexin735/wip-zzz-override
Jos Collin [Wed, 31 May 2017 01:57:48 +0000 (07:27 +0530)]
Merge pull request #15331 from yonghengdexin735/wip-zzz-override

mon: Add override for FsNewHandler::handle()

Reviewed-by: Jos Collin <jcollin@redhat.com>
8 years agobuild: Use .S suffix for ppc64le assembly files
Andrew Solomon [Tue, 30 May 2017 17:39:34 +0000 (17:39 +0000)]
build: Use .S suffix for ppc64le assembly files

The assembly file name suffix was changed from .S to .s,
which caused a build break on ppc64le architecture.

To fix this issue, the suffix will be changed back to .S
for ppc64le assembly files only.  The x86 assembly files
can retain the .s suffix.

Fixes: http://tracker.ceph.com/issues/20106
Signed-off-by: Andrew Solomon <asolomon@us.ibm.com>
8 years agomon: Add override for FsNewHandler::handle()
yonghengdexin735 [Wed, 31 May 2017 00:34:42 +0000 (08:34 +0800)]
mon: Add override for FsNewHandler::handle()

Signed-off-by: yonghengdexin735 <zhang.zezhu@zte.com.cn>