]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoosd/osd_types: pg_pool_t: remove crash_replay_interval member 18379/head
Sage Weil [Wed, 18 Oct 2017 15:46:58 +0000 (10:46 -0500)]
osd/osd_types: pg_pool_t: remove crash_replay_interval member

We removed the dual ack before luminous, so this option is completely
obsolete now.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18376 from tchaikov/wip-authors
Sage Weil [Wed, 18 Oct 2017 13:51:39 +0000 (08:51 -0500)]
Merge pull request #18376 from tchaikov/wip-authors

doc: update Component Technical Leads and maintainers to canonical location

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18355 from gaosibei/wip-rgw-refrence
Casey Bodley [Wed, 18 Oct 2017 12:18:12 +0000 (08:18 -0400)]
Merge pull request #18355 from gaosibei/wip-rgw-refrence

RGW: change function parameters from value to refrence

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17432 from joscollin/wip-cleanup-fix-rgwconf
Matt Benjamin [Wed, 18 Oct 2017 11:57:20 +0000 (07:57 -0400)]
Merge pull request #17432 from joscollin/wip-cleanup-fix-rgwconf

rgw: Access RGWConf through RGWEnv

7 years agoMerge pull request #17440 from mikulely/cleanup-iterate
Matt Benjamin [Wed, 18 Oct 2017 11:52:57 +0000 (07:52 -0400)]
Merge pull request #17440 from mikulely/cleanup-iterate

rgw: update outdated debug func name

7 years agoMerge pull request #17956 from zhangsw/fix-rgw-encry-torrent-bug
Matt Benjamin [Wed, 18 Oct 2017 11:52:39 +0000 (07:52 -0400)]
Merge pull request #17956 from zhangsw/fix-rgw-encry-torrent-bug

rgw: Torrents are not supported for objects encrypted using SSE-C

7 years agoMerge pull request #18057 from baixueyu/branch1
Matt Benjamin [Wed, 18 Oct 2017 11:52:19 +0000 (07:52 -0400)]
Merge pull request #18057 from baixueyu/branch1

rgw: fix radosgw-admin quota enable return value bug

7 years agoMerge pull request #18375 from tchaikov/wip-ceph-disk-check-log
Alfredo Deza [Wed, 18 Oct 2017 10:51:27 +0000 (06:51 -0400)]
Merge pull request #18375 from tchaikov/wip-ceph-disk-check-log

ceph-disk: write log to /var/log/ceph not to /var/run/ceph

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoAUTHORS: Update Component Technical Leads and maintainers to canonical location of... 18376/head
scuttlemonkey [Fri, 10 Mar 2017 19:41:20 +0000 (14:41 -0500)]
AUTHORS: Update Component Technical Leads and maintainers to canonical location of ceph.com.

Signed-off-by: Patrick McGarry <pmcgarry@redhat.com>
7 years agoMerge pull request #18315 from dillaman/wip-21797
Mykola Golub [Wed, 18 Oct 2017 10:36:47 +0000 (13:36 +0300)]
Merge pull request #18315 from dillaman/wip-21797

librbd: object map batch update might cause OSD suicide timeout

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18345 from wido/doc-osd-replace
Kefu Chai [Wed, 18 Oct 2017 10:34:57 +0000 (18:34 +0800)]
Merge pull request #18345 from wido/doc-osd-replace

doc: Remove additional arguments when replacing OSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoceph-disk: write log to /var/log/ceph not to /var/run/ceph 18375/head
Kefu Chai [Wed, 18 Oct 2017 10:03:31 +0000 (18:03 +0800)]
ceph-disk: write log to /var/log/ceph not to /var/run/ceph

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18373 from tchaikov/wip-opt-desc
Xie Xingguo [Wed, 18 Oct 2017 08:15:35 +0000 (16:15 +0800)]
Merge pull request #18373 from tchaikov/wip-opt-desc

doc: fix the desc of "osd max pg per osd hard ratio"

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agodoc: fix the desc of "osd max pg per osd hard ratio" 18373/head
Kefu Chai [Wed, 18 Oct 2017 08:07:50 +0000 (16:07 +0800)]
doc: fix the desc of "osd max pg per osd hard ratio"

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18370 from mikulely/cleanup-rgw-write-meta
Jos Collin [Wed, 18 Oct 2017 05:34:45 +0000 (05:34 +0000)]
Merge pull request #18370 from mikulely/cleanup-rgw-write-meta

rgw: drop outdated function doc

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agorgw: drop misplaced&outdated func doc 18370/head
Jiaying Ren [Wed, 18 Oct 2017 04:32:24 +0000 (12:32 +0800)]
rgw: drop misplaced&outdated func doc

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
7 years agoMerge pull request #18352 from rzarzynski/wip-testfio-fix-pgps
Kefu Chai [Wed, 18 Oct 2017 02:52:13 +0000 (10:52 +0800)]
Merge pull request #18352 from rzarzynski/wip-testfio-fix-pgps

Revert "bluestore/fio: Fixed problem with all objects having the same hash

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
7 years agoMerge pull request #18338 from xiexingguo/wip-pg
Kefu Chai [Wed, 18 Oct 2017 02:48:32 +0000 (10:48 +0800)]
Merge pull request #18338 from xiexingguo/wip-pg

osd/PrimaryLogPG: do not use approx_size() for log trimming

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18340 from Yan-waller/wip-walle-1014osdprimarypg
Kefu Chai [Wed, 18 Oct 2017 02:47:37 +0000 (10:47 +0800)]
Merge pull request #18340 from Yan-waller/wip-walle-1014osdprimarypg

osd/PG: misc cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18351 from tchaikov/wip-osx
Kefu Chai [Wed, 18 Oct 2017 02:46:50 +0000 (10:46 +0800)]
Merge pull request #18351 from tchaikov/wip-osx

common/event_socket.h: include <errno.h> to use errno

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #18353 from xiexingguo/wip-do-read
Kefu Chai [Wed, 18 Oct 2017 02:46:18 +0000 (10:46 +0800)]
Merge pull request #18353 from xiexingguo/wip-do-read

osd/PrimaryLogPG: trigger auto-repair on full-object-size CRC error

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18321 from majianpeng/msg-async-cleanup
Kefu Chai [Wed, 18 Oct 2017 02:45:48 +0000 (10:45 +0800)]
Merge pull request #18321 from majianpeng/msg-async-cleanup

msg/async: batch handle numevents.

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #18358 from tchaikov/wip-max-pg-per-osd
Kefu Chai [Wed, 18 Oct 2017 02:44:16 +0000 (10:44 +0800)]
Merge pull request #18358 from tchaikov/wip-max-pg-per-osd

osd,mon: add max-pg-per-osd limit

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18289 from smithfarm/wip-21762
Kefu Chai [Wed, 18 Oct 2017 02:43:22 +0000 (10:43 +0800)]
Merge pull request #18289 from smithfarm/wip-21762

build/ops: rpm: move ceph-*-tool binaries out of ceph-test subpackage

Reviewed-By: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
7 years agoRGW: change function parameters from value to refrence 18355/head
gaosibei [Tue, 17 Oct 2017 13:22:40 +0000 (21:22 +0800)]
RGW: change function parameters from value to refrence

Signed-off-by: Sibei Gao <gaosb@inspur.com>
7 years agoMerge pull request #18184 from oritwas/wip-rgw-21725
Matt Benjamin [Tue, 17 Oct 2017 16:42:10 +0000 (12:42 -0400)]
Merge pull request #18184 from oritwas/wip-rgw-21725

rgw: disable dynamic resharding in multisite environment

7 years agoMerge pull request #16745 from Liuchang0812/object-store-repair
Kefu Chai [Tue, 17 Oct 2017 16:24:39 +0000 (00:24 +0800)]
Merge pull request #16745 from Liuchang0812/object-store-repair

common, tool: update kvstore-tool to repair key/value database

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #18281 into master
Patrick Donnelly [Tue, 17 Oct 2017 15:12:46 +0000 (08:12 -0700)]
Merge PR #18281 into master

* refs/pull/18281/head:
Fixed the readme examples
ptl-tool: Drop Default Labelling of PRs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
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 agoMerge pull request #18331 from Yan-waller/wip-walle-1008vstartrgw
Casey Bodley [Tue, 17 Oct 2017 15:06:53 +0000 (11:06 -0400)]
Merge pull request #18331 from Yan-waller/wip-walle-1008vstartrgw

vstart.sh: move rgw configuration to client.rgw section

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoFixed the readme examples 18281/head
Jos Collin [Tue, 17 Oct 2017 06:08:49 +0000 (11:38 +0530)]
Fixed the readme examples

Fixed the readme examples, according to the new --label definition.

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoptl-tool: Drop Default Labelling of PRs
Jos Collin [Fri, 13 Oct 2017 02:46:08 +0000 (08:16 +0530)]
ptl-tool: Drop Default Labelling of PRs

Dropped default labelling of PRs. Allowed --label '', which won't label the PR. The user can omit --label too, if the PR should not be labelled.

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #18231 from batrick/ptl-tool-labeled-prs
Jos Collin [Tue, 17 Oct 2017 14:09:14 +0000 (14:09 +0000)]
Merge pull request #18231 from batrick/ptl-tool-labeled-prs

ptl-tool: load labeled PRs

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoosd/PrimaryLogPG: trigger auto-repair on full-object-size CRC error 18353/head
xie xingguo [Tue, 17 Oct 2017 12:23:05 +0000 (20:23 +0800)]
osd/PrimaryLogPG: trigger auto-repair on full-object-size CRC error

There are still FileStore users and the full-object CRC might be able
to catch silently returned data errors. Since we support auto-repair now,
let's trigger an auto-repair process instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocommon/lockdep: do not set std::string using braces 18351/head
Kefu Chai [Tue, 17 Oct 2017 12:11:38 +0000 (20:11 +0800)]
common/lockdep: do not set std::string using braces

this silences follow warning from clang:

ceph/src/common/lockdep.cc:219:12: warning: braces around scalar initializer [-Wbraced-scalar-init]
    name = { "unknown" };
           ^~~~~~~~~~~~~
1 warning generated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoRevert "bluestore/fio: Fixed problem with all objects having the same hash" 18352/head
Radoslaw Zarzynski [Tue, 17 Oct 2017 11:09:02 +0000 (13:09 +0200)]
Revert "bluestore/fio: Fixed problem with all objects having the same hash"

This reverts commit 0eb5359273df2c92fa525683f88586878f57bb4b.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agocommon/event_socket.h: include <errno.h> to use errno
Kefu Chai [Tue, 17 Oct 2017 11:57:36 +0000 (19:57 +0800)]
common/event_socket.h: include <errno.h> to use errno

OSX needs this also.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18348 from Yan-waller/wip-walle-1017readmecmake
Kefu Chai [Tue, 17 Oct 2017 11:51:51 +0000 (19:51 +0800)]
Merge pull request #18348 from Yan-waller/wip-walle-1017readmecmake

README.md: bump up cmake to 2.8.12

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoREADME.md: bump up cmake to 2.8.12 18348/head
Yan Jun [Tue, 17 Oct 2017 08:35:44 +0000 (16:35 +0800)]
README.md: bump up cmake to 2.8.12

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
7 years agorgw: Access RGWConf through RGWEnv 17432/head
Jos Collin [Sat, 2 Sep 2017 05:59:01 +0000 (11:29 +0530)]
rgw: Access RGWConf through RGWEnv

Created functions rgw_conf_get_enable_ops_log(), rgw_conf_get_enable_usage_log() and
rgw_conf_get_defer_to_bucket_acls() and the necessary changes to provide the access of RGWConf through RGWEnv.

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agodoc: Remove additional arguments when replacing OSD 18345/head
Wido den Hollander [Tue, 17 Oct 2017 09:01:27 +0000 (11:01 +0200)]
doc: Remove additional arguments when replacing OSD

It's not required to provide the --bluestore nor --osd-uuid option
to ceph-disk.

Using BlueStore is the default on master (e.g. Luminous) and thus
this option is not required.

When no OSD UUID is supplied ceph-disk will generate one, so we do
not need to supply one generated by uuidgen.

Signed-off-by: Wido den Hollander <wido@42on.com>
7 years agoosd/PrimaryLogPG: do not use approx_size() for log trimming 18338/head
xie xingguo [Tue, 17 Oct 2017 01:55:57 +0000 (09:55 +0800)]
osd/PrimaryLogPG: do not use approx_size() for log trimming

There might be holes on log versions, thus the approx_size()
should (almost) always overestimate the actual number of log entries.
As a result, we might be at the risk of accessing violation
while searching for the oldest log entry to keep in the log list later.

Fix the above problem by counting the precise number of current
log entries instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocommon/config: drop unused configuration item 'osd_backoff_on_down' 18340/head
Yan Jun [Tue, 17 Oct 2017 06:47:47 +0000 (14:47 +0800)]
common/config: drop unused configuration item 'osd_backoff_on_down'

drop it for no more use.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
7 years agorgw: update outdated debug func name 17440/head
Jiaying Ren [Mon, 4 Sep 2017 07:17:42 +0000 (15:17 +0800)]
rgw: update outdated debug func name

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
7 years agoMerge pull request #18081 from zhsj/revert-15089-add-mirror
Kefu Chai [Tue, 17 Oct 2017 05:07:19 +0000 (13:07 +0800)]
Merge pull request #18081 from zhsj/revert-15089-add-mirror

doc: change cn mirror to ustc domain

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18312 from shinobu-x/sk-buffer_20171015
Kefu Chai [Tue, 17 Oct 2017 05:03:20 +0000 (13:03 +0800)]
Merge pull request #18312 from shinobu-x/sk-buffer_20171015

common/buffer: cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18318 from Linbing/wip-bluestore-compression
Kefu Chai [Tue, 17 Oct 2017 05:02:35 +0000 (13:02 +0800)]
Merge pull request #18318 from Linbing/wip-bluestore-compression

bluestore:  comp_min_blob_size init error

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #18279 from lixiaoy1/rmrange
Kefu Chai [Tue, 17 Oct 2017 05:01:30 +0000 (13:01 +0800)]
Merge pull request #18279 from lixiaoy1/rmrange

os/bluestore: use db->rm_range_keys to delete range of keys

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: use db->rm_range_keys to delete range of keys 18279/head
lisali [Fri, 13 Oct 2017 09:51:39 +0000 (05:51 -0400)]
os/bluestore: use db->rm_range_keys to delete range of keys

As Key Value DB provides the rm_range_keys interface to remove
some range of keys, BlueStore should use the interface. DB can
provide more efficient ways.

Signed-off-by: Xiaoyan Li <xiaoyan.li@intel.com>
7 years agoMerge pull request #18320 from shinobu-x/sk-include_unordered_x
Kefu Chai [Tue, 17 Oct 2017 04:59:35 +0000 (12:59 +0800)]
Merge pull request #18320 from shinobu-x/sk-include_unordered_x

include: Remove unused header, ciso646

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #18319 from shinobu-x/sk-osd_20171016
Kefu Chai [Tue, 17 Oct 2017 04:59:05 +0000 (12:59 +0800)]
Merge pull request #18319 from shinobu-x/sk-osd_20171016

osd: Don't include same header twice

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoptl-tool: load labeled PRs 18231/head
Patrick Donnelly [Tue, 10 Oct 2017 23:18:10 +0000 (16:18 -0700)]
ptl-tool: load labeled PRs

This lets you label in GitHub the PRs you want to test/merge.

Signed-off-by: Patrick Donnelly <pdonnell@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 agomsg/async: batch handle numevents. 18321/head
Jianpeng Ma [Mon, 16 Oct 2017 20:54:45 +0000 (04:54 +0800)]
msg/async: batch handle numevents.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.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 agovstart.sh: move rgw configuration to client.rgw section 18331/head
Yan Jun [Mon, 9 Oct 2017 03:41:12 +0000 (11:41 +0800)]
vstart.sh: move rgw configuration to client.rgw section

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
7 years agobuild/ops: deb: move ceph-*-tool binaries out of ceph-test subpackage 18289/head
Nathan Cutler [Fri, 13 Oct 2017 08:34:52 +0000 (10:34 +0200)]
build/ops: deb: move ceph-*-tool binaries out of ceph-test subpackage

ceph-osdomap-tool into ceph-osd subpackage
ceph-monstore-tool into ceph-mon subpackage
ceph-kvstore-tool into the ceph-base subpackage

Fixes: http://tracker.ceph.com/issues/21762
Signed-off-by: Nathan Cutler <ncutler@suse.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 agotool: do not core dump with a invalid kv type 16745/head
Chang Liu [Tue, 10 Oct 2017 11:39:48 +0000 (19:39 +0800)]
tool: do not core dump with a invalid kv type

Fixes: http://tracker.ceph.com/issues/21744
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
7 years agotest: new test case for ceph-kvstore-tool
Chang Liu [Fri, 6 Oct 2017 17:44:44 +0000 (01:44 +0800)]
test: new test case for ceph-kvstore-tool

Signed-off-by: Chang Liu <liuchang0812@gmail.com>
7 years agodoc: introduce repair subcommon of ceph-kvstore-tool
liuchang0812 [Thu, 28 Sep 2017 07:24:07 +0000 (15:24 +0800)]
doc: introduce repair subcommon of ceph-kvstore-tool

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
7 years agocommon, tool: update kvstore-tool to repair our key/value database
liuchang0812 [Mon, 24 Jul 2017 14:12:43 +0000 (22:12 +0800)]
common, tool: update kvstore-tool to repair our key/value database

Fixes: http://tracker.ceph.com/issues/17730
Signed-off-by: liuchang0812 <liuchang0812@gmail.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 agobuild/ops: rpm: move ceph-*-tool binaries out of ceph-test subpackage
Nathan Cutler [Fri, 13 Oct 2017 08:34:52 +0000 (10:34 +0200)]
build/ops: rpm: move ceph-*-tool binaries out of ceph-test subpackage

ceph-osdomap-tool into ceph-osd subpackage
ceph-monstore-tool into ceph-mon subpackage
ceph-kvstore-tool into the ceph-base subpackage

Fixes: http://tracker.ceph.com/issues/21762
Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoinclude/unordered_map/_set | cleanup: Remove unused header, ciso646 18320/head
Shinobu Kinjo [Mon, 16 Oct 2017 05:30:56 +0000 (14:30 +0900)]
include/unordered_map/_set | cleanup: Remove unused header, ciso646

Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
7 years agoosd | cleanup: Don't include same header twice 18319/head
Shinobu Kinjo [Mon, 16 Oct 2017 03:06:02 +0000 (12:06 +0900)]
osd | cleanup: Don't include same header twice

Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
7 years agobluestore: using bluestore_compression_min_blob_size instead of bluestore_compression... 18318/head
linbing [Mon, 16 Oct 2017 01:57:23 +0000 (09:57 +0800)]
bluestore: using bluestore_compression_min_blob_size instead of bluestore_compression_max_blob_size to config comp_min_blob_size

Signed-off-by: linbing <linbing@t2cloud.net>
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 agolibrbd: batch large object map updates into multiple chunks 18315/head
Jason Dillaman [Sun, 15 Oct 2017 21:26:25 +0000 (17:26 -0400)]
librbd: batch large object map updates into multiple chunks

Fixes: http://tracker.ceph.com/issues/21797
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: initial test cases for trim state machine
Jason Dillaman [Fri, 13 Oct 2017 22:55:47 +0000 (18:55 -0400)]
test/librbd: initial test cases for trim state machine

Signed-off-by: Jason Dillaman <dillaman@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 agolibrbd: tweaks to support testing of trim state machine
Jason Dillaman [Fri, 13 Oct 2017 19:49:00 +0000 (15:49 -0400)]
librbd: tweaks to support testing of trim state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: combine trim state machine object map batch update states
Jason Dillaman [Fri, 13 Oct 2017 18:44:40 +0000 (14:44 -0400)]
librbd: combine trim state machine object map batch update states

The PRE/POST states were previously divided into two halves for handling
the copy-up batch and the direct removal batch. This can be simplified by
just using a single PRE/POST for the entire deletion region.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: object map update now utilizes constant-time bit vector operations
Jason Dillaman [Fri, 13 Oct 2017 15:06:38 +0000 (11:06 -0400)]
cls/rbd: object map update now utilizes constant-time bit vector operations

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocommon/bit_vector: provide constant time iteration of underlying bufferlist
Jason Dillaman [Fri, 13 Oct 2017 15:05:48 +0000 (11:05 -0400)]
common/bit_vector: provide constant time iteration of underlying bufferlist

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agocommon/buffer: expose hidden const deference operator
Jason Dillaman [Fri, 13 Oct 2017 15:03:25 +0000 (11:03 -0400)]
common/buffer: expose hidden const deference operator

Signed-off-by: Jason Dillaman <dillaman@redhat.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>