]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agomon: change "mon_pg_warn_min_per_osd" to uint64_t 18358/head
Kefu Chai [Tue, 17 Oct 2017 04:17:09 +0000 (12:17 +0800)]
mon: change "mon_pg_warn_min_per_osd" to uint64_t

* this silences a warning from -Wsign-compare.
* also switch all its user to the new-style option

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd,mon: change "mon_max_pg_per_osd" to uint64_t
Kefu Chai [Tue, 17 Oct 2017 04:10:55 +0000 (12:10 +0800)]
osd,mon: change "mon_max_pg_per_osd" to uint64_t

as it should never be a negative number. if this option is disabled,
it's 0.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: add max-pg-per-osd limit
Kefu Chai [Tue, 26 Sep 2017 07:54:14 +0000 (15:54 +0800)]
osd: add max-pg-per-osd limit

osd will refused to create new pgs, until its pg number is lower
than the max-pg-per-osd upper bound setting.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/tasks/ceph: add "create_rbd_pool" option
Kefu Chai [Sun, 15 Oct 2017 12:46:28 +0000 (20:46 +0800)]
qa/tasks/ceph: add "create_rbd_pool" option

True by default, but we can opt not to create the "rbd" pool.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomon/OSDMonitor: bypass checks if pg_temp.forced
Kefu Chai [Tue, 26 Sep 2017 07:50:08 +0000 (15:50 +0800)]
mon/OSDMonitor: bypass checks if pg_temp.forced

originally, monitor ignores the pg_temp messages sent from replica osds,
but to re-trigger peering if replica osd's pg number drops down below
the setting, we need to bypass the checks.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomessages/MOSDPGTemp: add `forced` field
Kefu Chai [Tue, 26 Sep 2017 07:49:11 +0000 (15:49 +0800)]
messages/MOSDPGTemp: add `forced` field

the monitor is supposed to bypass some checks if `forced` is true.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: print osd as "osd.$osdid" in log message
Kefu Chai [Thu, 12 Oct 2017 12:07:46 +0000 (20:07 +0800)]
osd: print osd as "osd.$osdid" in log message

easier to read this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18332 from rzarzynski/wip-testfio-fix-build-error
Kefu Chai [Tue, 17 Oct 2017 02:21:15 +0000 (10:21 +0800)]
Merge pull request #18332 from rzarzynski/wip-testfio-fix-build-error

test/fio: fix building of the fio_ceph_objectstore plugin.

Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-By: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17134 from PCzhangPC/metaexin
Jason Dillaman [Tue, 17 Oct 2017 01:00:08 +0000 (21:00 -0400)]
Merge pull request #17134 from PCzhangPC/metaexin

rbd: export/import image-meta when we export/import an image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18249 from PCzhangPC/addrwpro
Jason Dillaman [Tue, 17 Oct 2017 00:59:49 +0000 (20:59 -0400)]
Merge pull request #18249 from PCzhangPC/addrwpro

rbd: show read:write proportion in the infomation of readwrite bench test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18271 from cbodley/wip-21772
Yuri Weinstein [Mon, 16 Oct 2017 19:58:37 +0000 (12:58 -0700)]
Merge pull request #18271 from cbodley/wip-21772

rgw: fix bilog entries on multipart complete

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #18212 from shashalu/clean-up-radosgw-admin
Yuri Weinstein [Mon, 16 Oct 2017 19:58:05 +0000 (12:58 -0700)]
Merge pull request #18212 from shashalu/clean-up-radosgw-admin

rgw: drop "realm remove" in radosgw-admin

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agotest/fio: fix building of the fio_ceph_objectstore plugin. 18332/head
Radoslaw Zarzynski [Mon, 16 Oct 2017 16:41:32 +0000 (18:41 +0200)]
test/fio: fix building of the fio_ceph_objectstore plugin.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #18313 from Carbenium/rbd-map-crash
Jason Dillaman [Mon, 16 Oct 2017 16:02:27 +0000 (12:02 -0400)]
Merge pull request #18313 from Carbenium/rbd-map-crash

rbd: fix crash during map when "rw" option is specified

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18238 from tchaikov/wip-bufferlist-test
Josh Durgin [Mon, 16 Oct 2017 15:54:40 +0000 (08:54 -0700)]
Merge pull request #18238 from tchaikov/wip-bufferlist-test

test/unittest_bufferlist: check retvals of syscalls

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18129 from dragonylffly/wip-fix-coverity-warning-for-uninialized...
Jason Dillaman [Mon, 16 Oct 2017 15:01:13 +0000 (11:01 -0400)]
Merge pull request #18129 from dragonylffly/wip-fix-coverity-warning-for-uninialized-member

librbd: fix coverity warning for uninitialized member

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18314 from MahatiC/example_librbd
Jason Dillaman [Mon, 16 Oct 2017 14:54:10 +0000 (10:54 -0400)]
Merge pull request #18314 from MahatiC/example_librbd

examples: add new librbd example

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18265 from majianpeng/lirbd-cleanup
Jason Dillaman [Mon, 16 Oct 2017 14:53:00 +0000 (10:53 -0400)]
Merge pull request #18265 from majianpeng/lirbd-cleanup

librbd: drop redundant check for null ImageCtx

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18326 from joscollin/wip-log-sign-compare-warning
Kefu Chai [Mon, 16 Oct 2017 14:52:25 +0000 (22:52 +0800)]
Merge pull request #18326 from joscollin/wip-log-sign-compare-warning

log: silence warning from -Wsign-compare

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18288 from trociny/wip-metadata
Jason Dillaman [Mon, 16 Oct 2017 14:51:50 +0000 (10:51 -0400)]
Merge pull request #18288 from trociny/wip-metadata

test/librbd: test metadata_set/remove is applied

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #15941 from oritwas/wip-rgw-dynamic-resharding-doc
Abhishek L [Mon, 16 Oct 2017 13:58:58 +0000 (15:58 +0200)]
Merge pull request #15941 from oritwas/wip-rgw-dynamic-resharding-doc

rgw: Add dynamic resharding documentation

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-By: Alfredo Deza <adeza@redhat.com>
7 years agorbd:show read:write proportion in the infomation of readwrite bench test 18249/head
PCzhangPC [Mon, 16 Oct 2017 13:26:17 +0000 (21:26 +0800)]
rbd:show read:write proportion in the infomation of readwrite bench test

Signed-off-by: PCzhangPC <pengcheng.zhang@easystack.cn>
7 years agoMerge pull request #18209 from tchaikov/wip-new-style-opt-mon
Kefu Chai [Mon, 16 Oct 2017 13:01:33 +0000 (21:01 +0800)]
Merge pull request #18209 from tchaikov/wip-new-style-opt-mon

mon/OSDMonitor: use new style options

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18093 from jcsp/wip-mgr-gil-safety
John Spray [Mon, 16 Oct 2017 12:22:07 +0000 (13:22 +0100)]
Merge pull request #18093 from jcsp/wip-mgr-gil-safety

mgr: safety checks on pyThreadState usage

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
7 years agolog: silence warning from -Wsign-compare 18326/head
Jos Collin [Mon, 16 Oct 2017 10:50:24 +0000 (16:20 +0530)]
log: silence warning from -Wsign-compare

This warning appears in jenkins build:

/home/jenkins-build/build/workspace/ceph-pull-requests/src/log/test.cc:266:232:   required from here
/home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/include/gtest/gtest.h:1392:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (lhs == rhs) {

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agomgr: safety checks on pyThreadState usage 18093/head
John Spray [Tue, 3 Oct 2017 12:16:10 +0000 (08:16 -0400)]
mgr: safety checks on pyThreadState usage

Previously relied on the caller of Gil() to
pass new_thread=true if they would be
calling from a different thread.

Enforce this with an assertion, by wrapping
PyThreadState in a SafeThreadState class
that remembers which POSIX thread
it's meant to be used in.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: move Gil implementation into .cc
John Spray [Tue, 22 Aug 2017 15:38:25 +0000 (11:38 -0400)]
mgr: move Gil implementation into .cc

The inclusion of Python.h in the .h was awkward
for other files including Gil.h.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr: reduce Gil verbosity at level 20
John Spray [Wed, 26 Jul 2017 11:21:40 +0000 (07:21 -0400)]
mgr: reduce Gil verbosity at level 20

Even at 20, it's pretty heavy to be logging
every lock acquire/release.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge PR #18309 into master
Patrick Donnelly [Mon, 16 Oct 2017 00:02:54 +0000 (17:02 -0700)]
Merge PR #18309 into master

* refs/pull/18309/head:
mds: prevent trim count from underflowing

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoexamples: add new librbd example 18314/head
Mahati Chamarthy [Sun, 15 Oct 2017 14:13:45 +0000 (19:43 +0530)]
examples: add new librbd example

Adds a librbd example

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
7 years agorbd: fix crash during map 18313/head
Peter Keresztes Schmidt [Sun, 15 Oct 2017 04:36:54 +0000 (06:36 +0200)]
rbd: fix crash during map

Currently the iterator isn't advanced after the erase call leading to a
second call on the iterator, which crashes due to a double free.
Since C++11 the map::erase function returns an iterator pointing to the
next element. Use the return value to set the iterator after erasing.

Fixes: http://tracker.ceph.com/issues/21808
Signed-off-by: Peter Keresztes Schmidt <carbenium@outlook.com>
7 years agorgw: Add dynamic resharding documentation 15941/head
Orit Wasserman [Mon, 26 Jun 2017 11:58:49 +0000 (14:58 +0300)]
rgw: Add dynamic resharding documentation

Fixes: http://tracker.ceph.com/issues/21553
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #18292 from xiexingguo/wip-recovery-order
Kefu Chai [Sat, 14 Oct 2017 22:55:11 +0000 (06:55 +0800)]
Merge pull request #18292 from xiexingguo/wip-recovery-order

osd/PrimaryLogPG: arrange recovery order by number of missing objects

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomds: prevent trim count from underflowing 18309/head
Patrick Donnelly [Sat, 14 Oct 2017 20:47:53 +0000 (13:47 -0700)]
mds: prevent trim count from underflowing

Fixes: http://tracker.ceph.com/issues/21807
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18295 from adamwg/awg/update-orgmap
Jos Collin [Sat, 14 Oct 2017 12:09:51 +0000 (12:09 +0000)]
Merge pull request #18295 from adamwg/awg/update-orgmap

organizationmap: Add Adam Wolfe Gordon's affiliation

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge PR #18139 into master
Patrick Donnelly [Fri, 13 Oct 2017 23:51:36 +0000 (16:51 -0700)]
Merge PR #18139 into master

* refs/pull/18139/head:
test: make the LibCephFS.ShutdownRacer test even more thrashy
lockdep: free_ids and lock_ref hashes must be truly global
common: add a clear_g_str_vec() function to clear g_str_vec
common: make it safe to call env_to_vec multiple times

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #18183 into master
Patrick Donnelly [Fri, 13 Oct 2017 23:51:31 +0000 (16:51 -0700)]
Merge PR #18183 into master

* refs/pull/18183/head:
osdc/ObjectCacher: limit memory usage of BufferHead

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18215 into master
Patrick Donnelly [Fri, 13 Oct 2017 23:51:27 +0000 (16:51 -0700)]
Merge PR #18215 into master

* refs/pull/18215/head:
mds: update client metadata for already open session

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18261 into master
Patrick Donnelly [Fri, 13 Oct 2017 23:51:22 +0000 (16:51 -0700)]
Merge PR #18261 into master

* refs/pull/18261/head:
mds: keep CInode::STATE_QUEUEDEXPORTPIN state when exporting inode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #18244 into master
Patrick Donnelly [Fri, 13 Oct 2017 23:51:18 +0000 (16:51 -0700)]
Merge PR #18244 into master

* refs/pull/18244/head:
mds: additional damage handling case in EImportStart

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #18229 from liewegas/wip-21753
Sage Weil [Fri, 13 Oct 2017 20:40:48 +0000 (15:40 -0500)]
Merge pull request #18229 from liewegas/wip-21753

ceph-objectstore-tool: fix import of post-split pg from pre-split ancestor

Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #18224 from liewegas/wip-pglog-cf
Sage Weil [Fri, 13 Oct 2017 20:32:40 +0000 (15:32 -0500)]
Merge pull request #18224 from liewegas/wip-pglog-cf

os/bluestore: dynamic CF configuration; put pglog omap in separate CF

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
7 years agoMerge pull request #18186 from xiexingguo/wip-miss-loc
Sage Weil [Fri, 13 Oct 2017 20:31:38 +0000 (15:31 -0500)]
Merge pull request #18186 from xiexingguo/wip-miss-loc

osd/PG: reduce some overhead on operating MissingLoc

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16030 from myoungwon/wip-revamp-opwq
Sage Weil [Fri, 13 Oct 2017 20:31:21 +0000 (15:31 -0500)]
Merge pull request #16030 from myoungwon/wip-revamp-opwq

osd: generalize queueing and lock interface for OpWq

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17541 from mikulely/log-time-msecs
Yuri Weinstein [Fri, 13 Oct 2017 19:52:15 +0000 (12:52 -0700)]
Merge pull request #17541 from mikulely/log-time-msecs

rgw: fix total_time to msec as per AWS S3

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18214 from shashalu/fix-null-data-mtime
Yuri Weinstein [Fri, 13 Oct 2017 19:51:50 +0000 (12:51 -0700)]
Merge pull request #18214 from shashalu/fix-null-data-mtime

rgw: don't change rados object's mtime when update olh

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18245 from yaozongyou/wip-radosgw-admin-bi-fix
Yuri Weinstein [Fri, 13 Oct 2017 19:51:26 +0000 (12:51 -0700)]
Merge pull request #18245 from yaozongyou/wip-radosgw-admin-bi-fix

rgw: udpate radosgw-admin usage with bi purge

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #18248 from ivancich/wip-rgw-unify-bi-hash-calc
Yuri Weinstein [Fri, 13 Oct 2017 19:50:59 +0000 (12:50 -0700)]
Merge pull request #18248 from ivancich/wip-rgw-unify-bi-hash-calc

rgw: consolidate code that implements hashing algorithms

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18272 from cbodley/wip-compressor-random
Kefu Chai [Fri, 13 Oct 2017 17:16:01 +0000 (01:16 +0800)]
Merge pull request #18272 from cbodley/wip-compressor-random

compressor: use generate_random_number() for type="random"

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18240 from tchaikov/wip-21716
Kefu Chai [Fri, 13 Oct 2017 17:14:51 +0000 (01:14 +0800)]
Merge pull request #18240 from tchaikov/wip-21716

test: fix misc fiemap testing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #18221 from tchaikov/wip-kvstore-tool-cleanup
Kefu Chai [Fri, 13 Oct 2017 17:13:58 +0000 (01:13 +0800)]
Merge pull request #18221 from tchaikov/wip-kvstore-tool-cleanup

ceph-kvstore-tool: use unique_ptr<> to manage the lifecycle of bluestore

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Chang Liu <liuchang0812@gmail.com>
7 years agoorganizationmap: Add Adam Wolfe Gordon's affiliation (DigitalOcean) 18295/head
Adam Wolfe Gordon [Fri, 13 Oct 2017 16:11:20 +0000 (16:11 +0000)]
organizationmap: Add Adam Wolfe Gordon's affiliation (DigitalOcean)

Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
7 years agoMerge pull request #18285 from tchaikov/wip-cmake
Ali Maredia [Fri, 13 Oct 2017 14:47:34 +0000 (10:47 -0400)]
Merge pull request #18285 from tchaikov/wip-cmake

cmake: bump up required cmake version to 2.8.12

7 years agoMerge pull request #18273 from cbodley/wip-21775
Matt Benjamin [Fri, 13 Oct 2017 13:56:04 +0000 (09:56 -0400)]
Merge pull request #18273 from cbodley/wip-21775

rgw: 'zone placement' commands validate compression type

7 years agomon/OSDMonitor: use new style options 18209/head
Kefu Chai [Tue, 10 Oct 2017 06:39:01 +0000 (14:39 +0800)]
mon/OSDMonitor: use new style options

* also mark "mon_osd_reporter_subtree_level" safe.
* change "mon_osd_min_down_reporters" to unsigned
* change "osd_pool_default_size" to unsigned
* change "osd_pool_default_min_size" to unsigned
* change "osd_pool_default_pg_num" to unsigned
* change "osd_pool_default_pgp_num" to unsigned

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd/PrimaryLogPG: arrange recovery order by number of missing objects 18292/head
xie xingguo [Fri, 13 Oct 2017 06:08:28 +0000 (14:08 +0800)]
osd/PrimaryLogPG: arrange recovery order by number of missing objects

Replica which has the shortest missing list (smallest amount of
objects to recover) should go recovering first, since it can be
technically brought back to normal sooner than others.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/librbd: test metadata_set/remove is applied 18288/head
Mykola Golub [Fri, 13 Oct 2017 07:13:40 +0000 (10:13 +0300)]
test/librbd: test metadata_set/remove is applied

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agocmake: fix gperftools version detection 18285/head
Kefu Chai [Fri, 13 Oct 2017 07:10:29 +0000 (15:10 +0800)]
cmake: fix gperftools version detection

there is chance that its "patch" version is empty. in that case, do not
include it in its version string. otherwise, we will have something
like:

Found gperftools:
GPERFTOOLS_TCMALLOC_LIBRARY;GPERFTOOLS_TCMALLOC_MINIMAL_LIBRARY;GPERFTOOLS_PROFILER_LIBRARY
(found version "2.4.#define TC_VERSION_PATCH  """)

when running cmake

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18286 from tchaikov/wip-kill-bluestore-warning
Xie Xingguo [Fri, 13 Oct 2017 07:10:43 +0000 (15:10 +0800)]
Merge pull request #18286 from tchaikov/wip-kill-bluestore-warning

os/bluestore: silence -Wreturn-type warning

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocls/rbd: fix log message
Mykola Golub [Fri, 13 Oct 2017 06:54:48 +0000 (09:54 +0300)]
cls/rbd: fix log message

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18277 from dillaman/wip-librbd-unused-variables
Mykola Golub [Fri, 13 Oct 2017 06:46:46 +0000 (09:46 +0300)]
Merge pull request #18277 from dillaman/wip-librbd-unused-variables

librbd: remove unused variables from ReadResult refactor

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agocmake: use CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN
Kefu Chai [Fri, 13 Oct 2017 05:53:29 +0000 (13:53 +0800)]
cmake: use CXX_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN

instead of using "-fvisibility=hidden -fvisibility-inlines-hidden", more
cmake-ish this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: s/LINK_PRIVATE/PRIVATE/
Kefu Chai [Fri, 13 Oct 2017 05:46:34 +0000 (13:46 +0800)]
cmake: s/LINK_PRIVATE/PRIVATE/

as 2.8.12 is required not, no need to be compatible with 2.8.11 anymore.

this reverts 457f023.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: refactor -fsanitize=... options
Kefu Chai [Fri, 13 Oct 2017 05:34:09 +0000 (13:34 +0800)]
cmake: refactor -fsanitize=... options

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: silence -Wreturn-type warning 18286/head
Kefu Chai [Fri, 13 Oct 2017 06:12:44 +0000 (14:12 +0800)]
os/bluestore: silence -Wreturn-type warning

this silences following warning:

ceph/src/os/bluestore/bluestore_types.h: In member function ‘bool bluestore_blob_t::_validate_range(uint64_t, uint64_t, bool) const’:
ceph/src/os/bluestore/bluestore_types.h:664:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: use CMAKE_POSITION_INDEPENDENT_CODE not -fPIC
Kefu Chai [Fri, 13 Oct 2017 05:01:59 +0000 (13:01 +0800)]
cmake: use CMAKE_POSITION_INDEPENDENT_CODE not -fPIC

we use the global setting of CMAKE_POSITION_INDEPENDENT_CODE for
defining this flag.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: bump up the required version to 2.8.12
Kefu Chai [Fri, 13 Oct 2017 05:00:49 +0000 (13:00 +0800)]
cmake: bump up the required version to 2.8.12

as both trusty and centos 7.3 offer 2.8.12

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17793 from amitkumar50/cov-misc-6
Kefu Chai [Fri, 13 Oct 2017 04:17:37 +0000 (12:17 +0800)]
Merge pull request #17793 from amitkumar50/cov-misc-6

librbd,os: address coverity false positives

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17825 from amitkumar50/cov-misc-9
Kefu Chai [Fri, 13 Oct 2017 04:17:10 +0000 (12:17 +0800)]
Merge pull request #17825 from amitkumar50/cov-misc-9

librbd,test: address coverity false positives

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17972 from cbodley/wip-21401
Kefu Chai [Fri, 13 Oct 2017 04:16:26 +0000 (12:16 +0800)]
Merge pull request #17972 from cbodley/wip-21401

auth: keep /dev/urandom open for get_random_bytes

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #18204 from ownedu/wip-fix-async-rdma-coredump
Kefu Chai [Fri, 13 Oct 2017 04:15:27 +0000 (12:15 +0800)]
Merge pull request #18204 from ownedu/wip-fix-async-rdma-coredump

msg/async/rdma: fix a coredump introduced by PR #18053

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18217 from liewegas/wip-pg-clang
Kefu Chai [Fri, 13 Oct 2017 04:14:31 +0000 (12:14 +0800)]
Merge pull request #18217 from liewegas/wip-pg-clang

osd/PG: fix clang build vs private state events

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18259 from xiexingguo/wip-blue-reclaim
Kefu Chai [Fri, 13 Oct 2017 04:12:45 +0000 (12:12 +0800)]
Merge pull request #18259 from xiexingguo/wip-blue-reclaim

os/bluestore/BlueFS: sanity check that alloc->allocate() won't return 0

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18262 from tchaikov/wip-rocksdb
Kefu Chai [Fri, 13 Oct 2017 04:10:57 +0000 (12:10 +0800)]
Merge pull request #18262 from tchaikov/wip-rocksdb

rocksdb: sync with upstream

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
7 years agoos/bluestore: dynamically configure CFs and options via bluestore_rocksdb_cfs 18224/head
Sage Weil [Tue, 10 Oct 2017 20:05:39 +0000 (15:05 -0500)]
os/bluestore: dynamically configure CFs and options via bluestore_rocksdb_cfs

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: put pglog omap in a separate CF
Sage Weil [Tue, 10 Oct 2017 19:49:29 +0000 (14:49 -0500)]
os/bluestore: put pglog omap in a separate CF

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agolibrbd: remove unused variables from ReadResult refactor 18277/head
Jason Dillaman [Thu, 12 Oct 2017 22:35:28 +0000 (18:35 -0400)]
librbd: remove unused variables from ReadResult refactor

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18210 from shangfufei/wip-async-fix
Yuri Weinstein [Thu, 12 Oct 2017 19:54:24 +0000 (12:54 -0700)]
Merge pull request #18210 from shangfufei/wip-async-fix

msg/async: fix bug of data type conversion when uint64_t -> int -> uint64_t

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Amit Kumar amitkuma@redhat.com
7 years agoMerge pull request #18246 from liewegas/wip-seesaw-warning
Yuri Weinstein [Thu, 12 Oct 2017 19:52:42 +0000 (12:52 -0700)]
Merge pull request #18246 from liewegas/wip-seesaw-warning

qa/suites/rados/singleton/all/mon-seesaw: whitelist MON_DOWN

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18270 from dillaman/wip-21391
Mykola Golub [Thu, 12 Oct 2017 19:39:55 +0000 (22:39 +0300)]
Merge pull request #18270 from dillaman/wip-21391

cls/journal: possible infinite loop within tag_list class method

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agocompressor: use generate_random_number for type="random" 18272/head
Casey Bodley [Thu, 12 Oct 2017 16:46:09 +0000 (12:46 -0400)]
compressor: use generate_random_number for type="random"

use an existing thread-local random engine instead of constructing,
seeding, and locking a separate engine

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: 'zone placement' commands validate compression type 18273/head
Casey Bodley [Thu, 12 Oct 2017 17:26:29 +0000 (13:26 -0400)]
rgw: 'zone placement' commands validate compression type

Fixes: http://tracker.ceph.com/issues/21775
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agolibrbd: drop redundant check for ictx. 18265/head
Jianpeng Ma [Thu, 12 Oct 2017 16:37:11 +0000 (00:37 +0800)]
librbd: drop redundant check for ictx.

ictx alreay checked.It must not null.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agocls/rgw: increment header version to avoid overwriting bilog entries 18271/head
Casey Bodley [Thu, 12 Oct 2017 15:25:13 +0000 (11:25 -0400)]
cls/rgw: increment header version to avoid overwriting bilog entries

Fixes: http://tracker.ceph.com/issues/21772
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocls/journal: fixed possible infinite loop which could kill the OSD 18270/head
Jason Dillaman [Thu, 12 Oct 2017 12:58:03 +0000 (08:58 -0400)]
cls/journal: fixed possible infinite loop which could kill the OSD

Fixes: http://tracker.ceph.com/issues/21771
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest: ceph_test_cls_journal was dropped when converting to cmake
Jason Dillaman [Thu, 12 Oct 2017 12:56:57 +0000 (08:56 -0400)]
test: ceph_test_cls_journal was dropped when converting to cmake

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18258 from shinobu-x/sk-osdmonitor_move_bufferlist_before_use
Joao Eduardo Luis [Thu, 12 Oct 2017 08:24:22 +0000 (09:24 +0100)]
Merge pull request #18258 from shinobu-x/sk-osdmonitor_move_bufferlist_before_use

mon/OSDMonitor: cleanup: move bufferlist before use

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
7 years agoMerge pull request #18235 from tchaikov/wip-qa-backfilling
Kefu Chai [Thu, 12 Oct 2017 06:54:41 +0000 (14:54 +0800)]
Merge pull request #18235 from tchaikov/wip-qa-backfilling

qa: s/backfill/backfilling/

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18222 from adamemerson/wip-don't-fix-what-ain't-broke
Kefu Chai [Thu, 12 Oct 2017 06:50:53 +0000 (14:50 +0800)]
Merge pull request #18222 from adamemerson/wip-don't-fix-what-ain't-broke

config: Remove _get_val

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomds: keep CInode::STATE_QUEUEDEXPORTPIN state when exporting inode 18261/head
Yan, Zheng [Thu, 12 Oct 2017 04:01:35 +0000 (12:01 +0800)]
mds: keep CInode::STATE_QUEUEDEXPORTPIN state when exporting inode

Fixes: http://tracker.ceph.com/issues/21768
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agorocksdb: sync with upstream 18262/head
Kefu Chai [Thu, 12 Oct 2017 03:45:55 +0000 (11:45 +0800)]
rocksdb: sync with upstream

to pickup two changes

- prefetched skiplist
- enable SSE42 CRC32 on EL7

Fixes: http://tracker.ceph.com/issues/21603
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore/BlueFS: sanity check that alloc->allocate() won't return 0 18259/head
xie xingguo [Thu, 12 Oct 2017 02:34:27 +0000 (10:34 +0800)]
os/bluestore/BlueFS: sanity check that alloc->allocate() won't return 0

If alloc[id]->allocate() returns 0, no space is actually reclaimed.
But BlueStore treats returning 0 as success and will keep reclaiming
space from BlueFS until hit the given threshold, which turns out to
be deadloop-prone.

For now, Bitmap and Stupid never return 0-length allocated space
(which is instead converted to -ENOSPC to suggest an error to caller),
so sanity checking against result code 0 will suffice.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agomon/OSDMonitor: Move bufferlist before use 18258/head
Shinobu Kinjo [Thu, 12 Oct 2017 02:03:12 +0000 (11:03 +0900)]
mon/OSDMonitor: Move bufferlist before use

Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
7 years agotest/rgw: add test_multipart_object_sync
Casey Bodley [Wed, 11 Oct 2017 23:27:55 +0000 (19:27 -0400)]
test/rgw: add test_multipart_object_sync

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoosd: fix reference a deleted item 16030/head
myoungwon oh [Wed, 11 Oct 2017 16:43:37 +0000 (01:43 +0900)]
osd: fix reference a deleted item

move() delete to_process' entries. This commit will prevent
referencing a deleted item

Signed-off-by: Myoungwon Oh <omwmw@sk.com>
7 years agoMerge pull request #17824 from shashalu/fix-lc-expiration
Yuri Weinstein [Wed, 11 Oct 2017 16:37:58 +0000 (09:37 -0700)]
Merge pull request #17824 from shashalu/fix-lc-expiration

rgw:lc fix expiration time

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
7 years agoMerge pull request #18102 from MI-OSiRIS/mgr_influx_dbcheck
John Spray [Wed, 11 Oct 2017 16:33:47 +0000 (17:33 +0100)]
Merge pull request #18102 from MI-OSiRIS/mgr_influx_dbcheck

Modify mgr-influx module database check to not require admin privileges

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18104 from linuxbox2/rgw-rel-lock-earlyx
Yuri Weinstein [Wed, 11 Oct 2017 16:30:36 +0000 (09:30 -0700)]
Merge pull request #18104 from linuxbox2/rgw-rel-lock-earlyx

rgw: release cls lock if taken in RGWCompleteMultipart

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18175 from yaozongyou/fix-radosgw-admin-command-arg-bug
Yuri Weinstein [Wed, 11 Oct 2017 16:30:02 +0000 (09:30 -0700)]
Merge pull request #18175 from yaozongyou/fix-radosgw-admin-command-arg-bug

rgw: fix command argument error for radosgw-admin

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #18193 from cbodley/wip-rgw-pool-application-jewel
Yuri Weinstein [Wed, 11 Oct 2017 15:48:09 +0000 (08:48 -0700)]
Merge pull request #18193 from cbodley/wip-rgw-pool-application-jewel

qa/rgw: ignore errors from 'pool application enable'

Reviewed-by: Yuri Weinstein <yweins@redhat.com>