]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agorgw: fix error mapping after auth strategy refactoring 15711/head
Casey Bodley [Thu, 15 Jun 2017 18:55:12 +0000 (14:55 -0400)]
rgw: fix error mapping after auth strategy refactoring

the changes in bd81c216d0ef36a66c27180f13430c9702393fb6 inadvertently
changed swift's default auth error from EPERM to ACCESS. hacky fix to
change it back

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15672 from liewegas/wip-bluestore-cache-ratios
Sage Weil [Fri, 16 Jun 2017 15:03:43 +0000 (10:03 -0500)]
Merge pull request #15672 from liewegas/wip-bluestore-cache-ratios

os/bluestore: handle rounding error in cache ratios

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #15718 from ztczll/zl
Sage Weil [Fri, 16 Jun 2017 15:00:30 +0000 (10:00 -0500)]
Merge pull request #15718 from ztczll/zl

os/bluestore: remove unused variables

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #15730 from liewegas/wip-make-check
Sage Weil [Fri, 16 Jun 2017 14:59:21 +0000 (09:59 -0500)]
Merge pull request #15730 from liewegas/wip-make-check

ceph-object-corpus: mark MMDSSlaveRequest incompat change

8 years agoceph-object-corpus: mark MMDSSlaveRequest incompat change 15730/head
Sage Weil [Fri, 16 Jun 2017 14:57:59 +0000 (10:57 -0400)]
ceph-object-corpus: mark MMDSSlaveRequest incompat change

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15251 from joscollin/wip-cleanup-redundant-headers-4
Sage Weil [Fri, 16 Jun 2017 13:45:29 +0000 (08:45 -0500)]
Merge pull request #15251 from joscollin/wip-cleanup-redundant-headers-4

common: Remove redundant includes - 4

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #15310 from liewegas/wip-qa-scrubs
Sage Weil [Fri, 16 Jun 2017 13:45:07 +0000 (08:45 -0500)]
Merge pull request #15310 from liewegas/wip-qa-scrubs

qa/tasks/ceph: raise exceptions if scrubbing fails or cannot proceed

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15657 from xiexingguo/wip-reshard-allocation
Sage Weil [Fri, 16 Jun 2017 13:44:34 +0000 (08:44 -0500)]
Merge pull request #15657 from xiexingguo/wip-reshard-allocation

os/bluestore: fix potential access violation

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #15706 from tchaikov/wip-20115
Sage Weil [Fri, 16 Jun 2017 13:43:31 +0000 (08:43 -0500)]
Merge pull request #15706 from tchaikov/wip-20115

ceph-rest-api: be more tolerant on network failure

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15714 from liewegas/wip-20323
Sage Weil [Fri, 16 Jun 2017 13:42:57 +0000 (08:42 -0500)]
Merge pull request #15714 from liewegas/wip-20323

messages/MOSDPing: initialize MOSDPing padding

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15561 from zy751713126/add-create-rbd-default-info
Jason Dillaman [Fri, 16 Jun 2017 13:02:02 +0000 (09:02 -0400)]
Merge pull request #15561 from zy751713126/add-create-rbd-default-info

rbd: add default note info to size (create and resize)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15611 from tchaikov/wip-20175
Jason Dillaman [Fri, 16 Jun 2017 13:01:10 +0000 (09:01 -0400)]
Merge pull request #15611 from tchaikov/wip-20175

test/librbd: decouple ceph_test_librbd_api from libceph-common

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoos/bluestore:remove invalid statement 15718/head 16335/head
zhanglei [Fri, 16 Jun 2017 02:51:01 +0000 (22:51 -0400)]
os/bluestore:remove invalid statement

Signed-off-by: zhanglei <243290414@qq.com>
8 years agomessages/MOSDPing: initialize MOSDPing padding 15714/head
Sage Weil [Fri, 16 Jun 2017 02:18:08 +0000 (22:18 -0400)]
messages/MOSDPing: initialize MOSDPing padding

This memory must be initialized or else valgrind will be very unhappy.

Avoid the cost of zeroing (or even allocating) the buffer for normal
padding values by (re)using a static zero buffer.

Fixes: http://tracker.ceph.com/issues/20323
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15622 from joscollin/wip-CID1412576-divide-by-zero 15840/head
Kefu Chai [Fri, 16 Jun 2017 02:04:30 +0000 (10:04 +0800)]
Merge pull request #15622 from joscollin/wip-CID1412576-divide-by-zero

mon: DIVIDE_BY_ZERO in PGMapDigest::dump_pool_stats_full()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15596 from smithfarm/wip-copying
Kefu Chai [Fri, 16 Jun 2017 02:03:16 +0000 (10:03 +0800)]
Merge pull request #15596 from smithfarm/wip-copying

build/ops: rpm: package COPYING, move sample ceph.conf to ceph-common

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15668 from Liuchang0812/wip-fix-mgr-dashboard
Kefu Chai [Fri, 16 Jun 2017 02:01:34 +0000 (10:01 +0800)]
Merge pull request #15668 from Liuchang0812/wip-fix-mgr-dashboard

mgr/dashboard: fix type error in get_rate function

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15650 from gmayyyha/filestore-zfs
Kefu Chai [Fri, 16 Jun 2017 02:00:02 +0000 (10:00 +0800)]
Merge pull request #15650 from gmayyyha/filestore-zfs

os/filestore: zfs add get_name()

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15680 from xiexingguo/wip-bluestore-20170614
Kefu Chai [Fri, 16 Jun 2017 01:59:25 +0000 (09:59 +0800)]
Merge pull request #15680 from xiexingguo/wip-bluestore-20170614

os/bluestore: cleanup bluestore_types

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15704 from tchaikov/wip-mgr-raise-in-send-command
Kefu Chai [Fri, 16 Jun 2017 01:57:51 +0000 (09:57 +0800)]
Merge pull request #15704 from tchaikov/wip-mgr-raise-in-send-command

mgr: raise python exception on failure in send_command()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15654 from lixiaoy1/lisa_bid
Sage Weil [Thu, 15 Jun 2017 21:35:26 +0000 (16:35 -0500)]
Merge pull request #15654 from lixiaoy1/lisa_bid

bluestore: wrap blob id when it reaches maximum value of int16_t

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15666 from xiexingguo/wip-fix-shard-finishers
Sage Weil [Thu, 15 Jun 2017 21:34:35 +0000 (16:34 -0500)]
Merge pull request #15666 from xiexingguo/wip-fix-shard-finishers

os/bluestore: initialize finishers properly

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15675 from gregsfortytwo/wip-bad-command
Sage Weil [Thu, 15 Jun 2017 21:34:10 +0000 (16:34 -0500)]
Merge pull request #15675 from gregsfortytwo/wip-bad-command

mon,mgr: fix "ceph osd df", add some tools to find untested commands

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15687 from xiexingguo/wip-fix-decode-oi
Sage Weil [Thu, 15 Jun 2017 21:33:52 +0000 (16:33 -0500)]
Merge pull request #15687 from xiexingguo/wip-fix-decode-oi

osd/OSD: bump up current version; conditionally encoding manifest into oi

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15696 from liewegas/wip-19947
Sage Weil [Thu, 15 Jun 2017 21:33:09 +0000 (16:33 -0500)]
Merge pull request #15696 from liewegas/wip-19947

osd/PrimaryLogPG: fix oi reset during trim_object

8 years agoMerge pull request #15407 from david-z/wip-fix-mds-balancer
John Spray [Thu, 15 Jun 2017 18:23:25 +0000 (14:23 -0400)]
Merge pull request #15407 from david-z/wip-fix-mds-balancer

mds/MDBalancer: remove useless check_targets and hit_targets logic from MDS balancer

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15095 from gregsfortytwo/wip-doc-mark-event
Josh Durgin [Thu, 15 Jun 2017 18:01:09 +0000 (14:01 -0400)]
Merge pull request #15095 from gregsfortytwo/wip-doc-mark-event

doc: describe mark_events logging available via the OSD's OpTracker

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15698 from Wilhelmshaven/remove_unused_func
Matt Benjamin [Thu, 15 Jun 2017 17:24:07 +0000 (13:24 -0400)]
Merge pull request #15698 from Wilhelmshaven/remove_unused_func

rgw: remove unused func in rgw_file.h

8 years agoMerge pull request #15707 from tchaikov/wip-20239
Sage Weil [Thu, 15 Jun 2017 16:43:19 +0000 (11:43 -0500)]
Merge pull request #15707 from tchaikov/wip-20239

doc: document the setup of restful and dashboard plugins

8 years agoqa/tasks/thrashosds: wait before wait_for_recovery 15310/head
Sage Weil [Wed, 31 May 2017 18:19:33 +0000 (14:19 -0400)]
qa/tasks/thrashosds: wait before wait_for_recovery

Make sure OSDs are up *and* they have flushed their PG stats before
waiting for recovery to ensure that we do not see a stale 'clean' state.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados/thrash/worklaods/radosbench: use less disk
Sage Weil [Fri, 9 Jun 2017 01:29:00 +0000 (21:29 -0400)]
qa/suites/rados/thrash/worklaods/radosbench: use less disk

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados/basic-luminous/scrub_test: skip final scrub
Sage Weil [Thu, 8 Jun 2017 22:17:41 +0000 (18:17 -0400)]
qa/suites/rados/basic-luminous/scrub_test: skip final scrub

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15125 from ukernel/wip-multimds-misc2
John Spray [Thu, 15 Jun 2017 16:07:59 +0000 (12:07 -0400)]
Merge pull request #15125 from ukernel/wip-multimds-misc2

mds: miscellaneous multimds fixes part2

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15440 from ukernel/wip-20170
John Spray [Thu, 15 Jun 2017 16:06:35 +0000 (12:06 -0400)]
Merge pull request #15440 from ukernel/wip-20170

mds: multimds flock fixes

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoqa/suites/rados/basic/repair_test: skip final scrub
Sage Weil [Wed, 31 May 2017 18:10:11 +0000 (14:10 -0400)]
qa/suites/rados/basic/repair_test: skip final scrub

OSD is deliberately damaged; scrub will fail.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/ceph: raise exception if scrubs time out
Sage Weil [Fri, 26 May 2017 13:24:03 +0000 (09:24 -0400)]
qa/tasks/ceph: raise exception if scrubs time out

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/ceph: raise an exception if pgs are not clean
Sage Weil [Fri, 26 May 2017 13:23:13 +0000 (09:23 -0400)]
qa/tasks/ceph: raise an exception if pgs are not clean

If this happens the preceding test should have cleaned
up (e.g., ceph.healthy:).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/ceph: osd_scrub_pgs: try a bit longer
Sage Weil [Fri, 26 May 2017 13:22:37 +0000 (09:22 -0400)]
qa/tasks/ceph: osd_scrub_pgs: try a bit longer

I just saw a test fail that was still waiting for
scrubs to complete.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15308 from jcsp/wip-19706
John Spray [Thu, 15 Jun 2017 14:50:44 +0000 (10:50 -0400)]
Merge pull request #15308 from jcsp/wip-19706

mon: don't kill MDSs unless some beacons are getting through

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15411 from jcsp/wip-fs-suite
John Spray [Thu, 15 Jun 2017 14:50:07 +0000 (10:50 -0400)]
Merge pull request #15411 from jcsp/wip-fs-suite

qa: misc cephfs test improvements

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15708 from markhpc/wip-bluestore-shard_target
Sage Weil [Thu, 15 Jun 2017 14:46:08 +0000 (09:46 -0500)]
Merge pull request #15708 from markhpc/wip-bluestore-shard_target

os/bluestore: target_bytes should scale with meta/data ratios.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15082 from joke-lee/fix-website-redirect-request-to-master
Casey Bodley [Thu, 15 Jun 2017 14:15:06 +0000 (10:15 -0400)]
Merge pull request #15082 from joke-lee/fix-website-redirect-request-to-master

rgw-multisite: fix the problem of rgw website configure request not redirect to metadata master

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15617 from joke-lee/fix_put_bucket_policy_when_set_again
Casey Bodley [Thu, 15 Jun 2017 14:13:48 +0000 (10:13 -0400)]
Merge pull request #15617 from joke-lee/fix_put_bucket_policy_when_set_again

rgw: fix RGWPutBucketPolicy error when set BucketPolicy again without delete pre set Policy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoosd/PrimaryLogPG: fix oi reset during trim_object 15696/head
Sage Weil [Thu, 15 Jun 2017 14:01:50 +0000 (10:01 -0400)]
osd/PrimaryLogPG: fix oi reset during trim_object

We partially fixed this in cd1271b4324431d16d3868a9f3b93cbefeeee057
but cleared the wrong oi (the clone's and not the
snap/head object's).

While we're here, drop the various bits where we clear
state bits; these are about to get clobbered when we reset
oi anyway.

Fixes: http://tracker.ceph.com/issues/19947
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15631 from xiexingguo/wip-bluestore-20170612
Sage Weil [Thu, 15 Jun 2017 14:00:03 +0000 (09:00 -0500)]
Merge pull request #15631 from xiexingguo/wip-bluestore-20170612

os/bluestore: stop calculating bound if we must reshard; narrow shard combination condition

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15636 from tsg-/isal-ec-avx512
Sage Weil [Thu, 15 Jun 2017 13:59:43 +0000 (08:59 -0500)]
Merge pull request #15636 from tsg-/isal-ec-avx512

erasure-code: update ec_isa version + add missing AVX512 ISA-L sources

8 years agoMerge pull request #15639 from liewegas/wip-20167
Sage Weil [Thu, 15 Jun 2017 13:59:14 +0000 (08:59 -0500)]
Merge pull request #15639 from liewegas/wip-20167

osd/PG: make non-empty PastIntervals non-fatal

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15641 from jecluis/wip-mon-deprecate-osd-create
Sage Weil [Thu, 15 Jun 2017 13:58:50 +0000 (08:58 -0500)]
Merge pull request #15641 from jecluis/wip-mon-deprecate-osd-create

mon: mark `osd create` as deprecated

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/Bluestore: target_bytes should scale with meta/data ratios. 15708/head
Mark Nelson [Thu, 15 Jun 2017 13:23:23 +0000 (08:23 -0500)]
os/Bluestore: target_bytes should scale with meta/data ratios.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
8 years agobuild/ops: rpm: package COPYING, move conf example to ceph-common 15596/head
Nathan Cutler [Fri, 9 Jun 2017 09:52:59 +0000 (11:52 +0200)]
build/ops: rpm: package COPYING, move conf example to ceph-common

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agobuild/ops: drop sample.fetch_config
Nathan Cutler [Thu, 15 Jun 2017 11:16:42 +0000 (13:16 +0200)]
build/ops: drop sample.fetch_config

smithfarm: @liewegas Is src/fetch_config still needed?
liewegas: i don't think so

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agodoc: document the setup of restful and dashboard plugins 15707/head
Kefu Chai [Thu, 15 Jun 2017 11:10:13 +0000 (19:10 +0800)]
doc: document the setup of restful and dashboard plugins

Fixes: http://tracker.ceph.com/issues/20239
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoceph-rest-api: be more tolerant on network failure 15706/head
Kefu Chai [Thu, 15 Jun 2017 09:05:25 +0000 (17:05 +0800)]
ceph-rest-api: be more tolerant on network failure

* set timeout for json_command()
* retry on timeout

Fixes: http://tracker.ceph.com/issues/20115
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: add sanity check when appending pextents of blob 15680/head
xie xingguo [Wed, 14 Jun 2017 07:28:30 +0000 (15:28 +0800)]
os/bluestore: add sanity check when appending pextents of blob

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: dedup is_allocated() and is_unallocated() of bluestore_blob_t
xie xingguo [Wed, 14 Jun 2017 06:05:06 +0000 (14:05 +0800)]
os/bluestore: dedup is_allocated() and is_unallocated() of bluestore_blob_t

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #15646 from tchaikov/wip-20258
Kefu Chai [Thu, 15 Jun 2017 08:12:04 +0000 (16:12 +0800)]
Merge pull request #15646 from tchaikov/wip-20258

pybind/mgr/restful: use list to pass hooks to create a `Pecan` instance

Reviewed-by: Boris Ranto <branto@redhat.com>
8 years agomon/OSDMonitor: more assert() 15704/head
Kefu Chai [Thu, 15 Jun 2017 08:10:47 +0000 (16:10 +0800)]
mon/OSDMonitor: more assert()

this helps with silencing the clang analyzer also.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomgr: raise python exception on failure in send_command()
Kefu Chai [Thu, 15 Jun 2017 07:48:39 +0000 (15:48 +0800)]
mgr: raise python exception on failure in send_command()

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agopybind/mgr/restful: return 400 on bad request 15646/head
Kefu Chai [Thu, 15 Jun 2017 02:14:59 +0000 (10:14 +0800)]
pybind/mgr/restful: return 400 on bad request

we should return 500 on that case. it's the client's fault not feeding us
with expected requests.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15694 from cbodley/wip-qa-rgw-thrash-encryption
Orit Wasserman [Thu, 15 Jun 2017 06:32:45 +0000 (09:32 +0300)]
Merge pull request #15694 from cbodley/wip-qa-rgw-thrash-encryption

qa/rgw: add encryption config for s3tests under thrash

8 years agoMerge pull request #15684 from badone/wip-refactor-of-osdmap-methods
Brad Hubbard [Thu, 15 Jun 2017 02:58:17 +0000 (12:58 +1000)]
Merge pull request #15684 from badone/wip-refactor-of-osdmap-methods

osd/OSDMap: Change *pg_to_* to return void

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15692 from joscollin/wip-test-mon-Wreorder-warning
Kefu Chai [Thu, 15 Jun 2017 02:52:11 +0000 (10:52 +0800)]
Merge pull request #15692 from joscollin/wip-test-mon-Wreorder-warning

test/mon: silence warnings from -Wreorder

Reviewed By: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: remove unused func in rgw_file.h 15698/head
lihongjie [Thu, 15 Jun 2017 02:50:32 +0000 (10:50 +0800)]
rgw: remove unused func in rgw_file.h

Signed-off-by: lihongjie <lihongjie@cmss.chinamobile.com>
8 years agoRevert "qa/suites/rados/rest/mgr-restful: test on centos"
Kefu Chai [Thu, 15 Jun 2017 02:23:29 +0000 (10:23 +0800)]
Revert "qa/suites/rados/rest/mgr-restful: test on centos"

This reverts commit be88220965c37f2f36c61368f465a197ac76bed3.
we can workaround the limit of old requests by using the backward
compatible way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/workunits/rest/test_mgr_rest_api.py: set headers for requests
Kefu Chai [Thu, 15 Jun 2017 02:13:12 +0000 (10:13 +0800)]
qa/workunits/rest/test_mgr_rest_api.py: set headers for requests

i think it's a bug in httplib shipped in old distro.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agopybind/mgr/restful: use list to pass hooks to create a `Pecan` instance
Kefu Chai [Tue, 13 Jun 2017 02:37:49 +0000 (10:37 +0800)]
pybind/mgr/restful: use list to pass hooks to create a `Pecan` instance

pecan 0.3.2 introduced the new way to pass the hooks to construct a
Pecan instance, but the "callable" builder for hooks is not compatible
with pecan < 0.3.2. and ubuntu trusty ships pecan 0.3.0, so we need to
do this the old way: pass a list of hooks instead of a callable.

see https://github.com/pecan/pecan/blame/0.3.2/pecan/core.py and
https://github.com/pecan/pecan/commit/fb2cf166aaf5b5af461879ec5b7a46806e8aee45

Fixes: http://tracker.ceph.com/issues/20258
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotest/mon: silence warnings from -Wreorder 15692/head
Jos Collin [Wed, 14 Jun 2017 15:04:44 +0000 (20:34 +0530)]
test/mon: silence warnings from -Wreorder

The following warning appears during make:

ceph/src/test/mon/test-mon-msg.cc: In constructor ‘MonMsgTest::MonMsgTest()’:
ceph/src/test/mon/test-mon-msg.cc:222:12: warning: ‘MonMsgTest::reply_msg’ will be initialized after [-Wreorder]
   Message *reply_msg;
            ^~~~~~~~~
ceph/src/test/mon/test-mon-msg.cc:229:16: warning:   base ‘MonClientHelper’ [-Wreorder]
     lock("lock") { }
                ^
ceph/src/test/mon/test-mon-msg.cc:226:3: warning:   when initialized here [-Wreorder]
   MonMsgTest() :

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoos/bluestore: kill dead fall_back_to_per_au() method
xie xingguo [Wed, 14 Jun 2017 03:17:03 +0000 (11:17 +0800)]
os/bluestore: kill dead fall_back_to_per_au() method

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoosd/OSD: bump up current version of encoding; conditionally encoding manifest into oi 15687/head
xie xingguo [Wed, 14 Jun 2017 09:44:14 +0000 (17:44 +0800)]
osd/OSD: bump up current version of encoding; conditionally encoding manifest into oi

These versions shall match the corresponding encoding versions.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoqa: test 'osd df' in cephtool/test.sh 15675/head
Greg Farnum [Tue, 13 Jun 2017 23:40:35 +0000 (16:40 -0700)]
qa: test 'osd df' in cephtool/test.sh

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agoqa: add a check_commands.sh script which looks for commands with no tests
Greg Farnum [Tue, 13 Jun 2017 22:55:48 +0000 (15:55 -0700)]
qa: add a check_commands.sh script which looks for commands with no tests

This isn't run automatically by anything yet. Note that it's also a best-effort
thing; passing doesn't guarantee there are tests. It can be pretty easily fooled
if the command is a common word which shows up in specifying other things,
for instance.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agomon: mgr: enable "osd df" on the manager
Greg Farnum [Tue, 13 Jun 2017 21:37:54 +0000 (14:37 -0700)]
mon: mgr: enable "osd df" on the manager

Fixes: http://tracker.ceph.com/issues/20256
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agomove the OSDUtilizationDumper code into OSDMap
Greg Farnum [Sun, 11 Jun 2017 18:09:10 +0000 (11:09 -0700)]
move the OSDUtilizationDumper code into OSDMap

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agomon: inherit PGMonStatService from the PGMapStatService
Greg Farnum [Sat, 10 Jun 2017 00:42:46 +0000 (17:42 -0700)]
mon: inherit PGMonStatService from the PGMapStatService

Adventures in multiple inheritance!

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agomon: mgr: move 'osd df' handling to manager
Greg Farnum [Fri, 9 Jun 2017 22:08:19 +0000 (15:08 -0700)]
mon: mgr: move 'osd df' handling to manager

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agomon: move most PGMapStatService into PGMap; rename PGMon's to PGMonStatService
Greg Farnum [Fri, 9 Jun 2017 22:31:02 +0000 (15:31 -0700)]
mon: move most PGMapStatService into PGMap; rename PGMon's to PGMonStatService

Most of this is independent of the PGMonitor, so move it into
PGMap and strip out those few bits. It'll come in handy shortly
when I move "ceph osd df" into the mgr.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agomon: move creating_pgs and reweight_by_utilization into new MonPGStatService
Greg Farnum [Fri, 9 Jun 2017 22:42:47 +0000 (15:42 -0700)]
mon: move creating_pgs and reweight_by_utilization into new MonPGStatService

Use that throughout the monitor code, so that we can use the
PGStatService elsewhere.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agorgw-multisite: fix the problem of rgw website configure request not redirect to metad... 15082/head
yuliyang [Mon, 15 May 2017 08:49:13 +0000 (16:49 +0800)]
rgw-multisite: fix the problem of rgw website configure request not redirect to metadata master

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
8 years agodoc: describe mark_events logging available via the OSD's OpTracker 15095/head
Greg Farnum [Wed, 14 Jun 2017 20:27:24 +0000 (13:27 -0700)]
doc: describe mark_events logging available via the OSD's OpTracker

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
8 years agoqa/rgw: add encryption config for s3tests under thrash 15694/head
Casey Bodley [Wed, 14 Jun 2017 20:23:35 +0000 (16:23 -0400)]
qa/rgw: add encryption config for s3tests under thrash

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15381 from xiexingguo/wip-noout-osdlist
Yuri Weinstein [Wed, 14 Jun 2017 20:11:58 +0000 (13:11 -0700)]
Merge pull request #15381 from xiexingguo/wip-noout-osdlist

mon/OSDMonitor: batch OSDs nodown/noout support

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
8 years agobluestore: wrap blob id when it reaches maximum value of int16_t 15654/head
lisali [Tue, 13 Jun 2017 13:44:25 +0000 (09:44 -0400)]
bluestore: wrap blob id when it reaches maximum value of int16_t

Blob id exceeds maximum value, this patch is to prevent it.
Fixes: http://tracker.ceph.com/issues/19555
Signed-off-by: Xiaoyan Li <xiaoyan.li@intel.com>
8 years agoMerge pull request #15535 from gregsfortytwo/wip-jumbo-ping
Yuri Weinstein [Wed, 14 Jun 2017 20:10:05 +0000 (13:10 -0700)]
Merge pull request #15535 from gregsfortytwo/wip-jumbo-ping

osd: heartbeat with packets large enough to require working jumbo frames

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15645 from yuyuyu101/wip-20230
Yuri Weinstein [Wed, 14 Jun 2017 20:07:43 +0000 (13:07 -0700)]
Merge pull request #15645 from yuyuyu101/wip-20230

msg/async: fix deleted_conn is out of sync with conns

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
8 years agoMerge pull request #15376 from tchaikov/wip-remove-boost-submodule
Kefu Chai [Wed, 14 Jun 2017 16:40:28 +0000 (00:40 +0800)]
Merge pull request #15376 from tchaikov/wip-remove-boost-submodule

cmake: build boost as an external project

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15269 from theanalyst/rgw/env-fix
Radoslaw Zarzynski [Wed, 14 Jun 2017 16:11:18 +0000 (18:11 +0200)]
Merge pull request #15269 from theanalyst/rgw/env-fix

rgw: make RGWEnv return a const ref. to its map

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #15690 from jcsp/wip-mgr-doc
Kefu Chai [Wed, 14 Jun 2017 15:57:32 +0000 (23:57 +0800)]
Merge pull request #15690 from jcsp/wip-mgr-doc

doc: freshen mgr docs

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: do not link libmon with mon_common_objs 15376/head
Kefu Chai [Wed, 14 Jun 2017 03:38:53 +0000 (11:38 +0800)]
cmake: do not link libmon with mon_common_objs

ceph-common includes them already.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: move common/util.cc into ceph-common
Kefu Chai [Thu, 1 Jun 2017 02:26:50 +0000 (10:26 +0800)]
cmake: move common/util.cc into ceph-common

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: do not include Monitor.cc in osd
Kefu Chai [Wed, 31 May 2017 04:06:26 +0000 (12:06 +0800)]
cmake: do not include Monitor.cc in osd

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocommon: #include <atomic> in headers where atomic<> is used
Kefu Chai [Tue, 30 May 2017 16:25:59 +0000 (00:25 +0800)]
common: #include <atomic> in headers where atomic<> is used

so these headers are self-contained.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: include boost before default system directory
Kefu Chai [Sun, 16 Apr 2017 05:04:16 +0000 (13:04 +0800)]
cmake: include boost before default system directory

so ceph will prefer the local boost installation to the one in system if
any.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: build boost as an external project
Kefu Chai [Sun, 16 Apr 2017 05:03:52 +0000 (13:03 +0800)]
cmake: build boost as an external project

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15607 from joke-lee/fix_bucket_policy_IfExists
Adam C. Emerson [Wed, 14 Jun 2017 15:25:52 +0000 (11:25 -0400)]
Merge pull request #15607 from joke-lee/fix_bucket_policy_IfExists

rgw: fix rgw bucket policy IfExists position

Reviewed By: Adam C. Emerson <aemerson@redhat.com>

8 years agoMerge pull request #15686 from mikulely/drop-header-ended
Casey Bodley [Wed, 14 Jun 2017 15:14:28 +0000 (11:14 -0400)]
Merge pull request #15686 from mikulely/drop-header-ended

rgw: drop unused var header_ended

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agodoc/mgr: update for mgr_beacon_period change 15690/head
John Spray [Wed, 14 Jun 2017 14:04:22 +0000 (10:04 -0400)]
doc/mgr: update for mgr_beacon_period change

This setting got renamed.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agodoc/mgr: flesh out introductory text
John Spray [Wed, 14 Jun 2017 13:53:49 +0000 (09:53 -0400)]
doc/mgr: flesh out introductory text

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agodoc/mgr: fix auth keys instruction
John Spray [Wed, 14 Jun 2017 13:53:26 +0000 (09:53 -0400)]
doc/mgr: fix auth keys instruction

This was out of date.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agodoc/install: reference mgr manual setup
John Spray [Wed, 14 Jun 2017 13:52:58 +0000 (09:52 -0400)]
doc/install: reference mgr manual setup

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15688 from rzarzynski/wip-rgw-fix-auth-for-clang
Orit Wasserman [Wed, 14 Jun 2017 13:04:32 +0000 (16:04 +0300)]
Merge pull request #15688 from rzarzynski/wip-rgw-fix-auth-for-clang

rgw: don't use strlen in constexprs to not brake Clang builds.
Reviewed-by : Orit Wasserman <owasserm@redhat.com>