]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agotest: assert check for negetive returns 17296/head
amitkuma [Mon, 28 Aug 2017 15:43:37 +0000 (21:13 +0530)]
test: assert check for negetive returns

Fixes the coverity issue:

** 1395371 Argument cannot be negative
1. negative_return_fn: Function open(file, 578, 448) returs a negative number.
2. var_assign: Assigning: signed variable fd = open

** 1395427 Argument cannot be negative
1. negative_return_fn: Function open(file, 578, 448) returns a negative number.
2. var_assign: Assigning: signed variable fd = open

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #17284 from liupan1111/wip-nvme-cleanup
Pan Liu [Mon, 28 Aug 2017 02:01:58 +0000 (10:01 +0800)]
Merge pull request #17284 from liupan1111/wip-nvme-cleanup

bluestore/NVMEDevice: code cleanup

7 years agoMerge pull request #17253 from hjwsm1989/fix-qa-bug
Xie Xingguo [Mon, 28 Aug 2017 00:35:01 +0000 (08:35 +0800)]
Merge pull request #17253 from hjwsm1989/fix-qa-bug

qa: fix the potential delay of pg state change

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agobluestore/NVMEDevice: remove useless IOSegment, and set 17284/head
Pan Liu [Sun, 27 Aug 2017 15:14:12 +0000 (23:14 +0800)]
bluestore/NVMEDevice: remove useless IOSegment, and set
dpdk_thread_adaptor as static.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@intel.com>
7 years agobluestore/NVMEDevice: remove useless aio_stop in class NVMEDevice
Pan Liu [Sun, 27 Aug 2017 15:06:55 +0000 (23:06 +0800)]
bluestore/NVMEDevice: remove useless aio_stop in class NVMEDevice

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agoos/bluestore/NVMEDevice: remove not used BufferedExtents.
Pan Liu [Sun, 27 Aug 2017 15:03:15 +0000 (23:03 +0800)]
os/bluestore/NVMEDevice: remove not used BufferedExtents.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agoMerge pull request #17055 from dillaman/wip-21017
Jason Dillaman [Sun, 27 Aug 2017 12:39:18 +0000 (08:39 -0400)]
Merge pull request #17055 from dillaman/wip-21017

mgr/dashboard: fix duplicate images listed on iSCSI status page

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17216 from Yan-waller/wip-walle-0824imagectx
Jason Dillaman [Sun, 27 Aug 2017 12:33:35 +0000 (08:33 -0400)]
Merge pull request #17216 from Yan-waller/wip-walle-0824imagectx

test/librbd: fix mock method macro of set_journal_policy

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17275 from ceph/revert-17268-wip-21089
Sage Weil [Sun, 27 Aug 2017 02:22:04 +0000 (21:22 -0500)]
Merge pull request #17275 from ceph/revert-17268-wip-21089

Revert "os/bluestore: compensate for bad freelistmanager size/blocks metadata"

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16494 from asomers/bin_bash
Kefu Chai [Sun, 27 Aug 2017 02:14:14 +0000 (10:14 +0800)]
Merge pull request #16494 from asomers/bin_bash

misc: Fix bash path in shebangs

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoRevert "os/bluestore: compensate for bad freelistmanager size/blocks metadata" 17275/head
Xie Xingguo [Sun, 27 Aug 2017 02:12:46 +0000 (10:12 +0800)]
Revert "os/bluestore: compensate for bad freelistmanager size/blocks metadata"

7 years agoMerge pull request #17268 from liewegas/wip-21089
Xie Xingguo [Sun, 27 Aug 2017 01:38:14 +0000 (09:38 +0800)]
Merge pull request #17268 from liewegas/wip-21089

os/bluestore: compensate for bad freelistmanager size/blocks metadata

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17271 from xiexingguo/wip-ls-by-class
Xie Xingguo [Sun, 27 Aug 2017 01:36:09 +0000 (09:36 +0800)]
Merge pull request #17271 from xiexingguo/wip-ls-by-class

mon/MonCommands: fix copy-and-paste error

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17272 from scienceluo/wip-luo-silence-buiding-warning-branch
Xie Xingguo [Sun, 27 Aug 2017 01:34:58 +0000 (09:34 +0800)]
Merge pull request #17272 from scienceluo/wip-luo-silence-buiding-warning-branch

common: silence jenkins's buiding warning in obj_bencher.cc

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17200 from optimistyzy/823_queue_depth
Pan Liu [Sat, 26 Aug 2017 14:29:54 +0000 (22:29 +0800)]
Merge pull request #17200 from optimistyzy/823_queue_depth

os/bluestore/NVMEDevice: fix the nvme queue depth issue

7 years agocommon: silence jenkins's buiding warning in obj_bencher.cc 17272/head
Luo Kexue [Sat, 26 Aug 2017 02:58:39 +0000 (10:58 +0800)]
common: silence jenkins's buiding warning in obj_bencher.cc

Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
7 years agomon/MonCommands: fix copy-and-paste error 17271/head
xie xingguo [Sat, 26 Aug 2017 02:09:11 +0000 (10:09 +0800)]
mon/MonCommands: fix copy-and-paste error

Class is definitely required by default for the "crush rule ls-by-class"
command.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17270 from liewegas/wip-luminous-note
Xie Xingguo [Sat, 26 Aug 2017 01:11:13 +0000 (09:11 +0800)]
Merge pull request #17270 from liewegas/wip-luminous-note

doc/release-notes: clarify purpose of require-osd-release

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoNVMEDevice: fix the nvme queue depth issue 17200/head
Ziye Yang [Wed, 23 Aug 2017 14:04:01 +0000 (22:04 +0800)]
NVMEDevice: fix the nvme queue depth issue

We need to track the queue depth usage for each qpair to
prevent submit too many I/Os. If there are too many requests,
we need to poll the qpair, to make sure there is enough slots
for next I/O submit.

Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
7 years agodoc/release-notes: clarify purpose of require-osd-release 17270/head
Sage Weil [Fri, 25 Aug 2017 22:48:09 +0000 (18:48 -0400)]
doc/release-notes: clarify purpose of require-osd-release

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: compensate for bad freelistmanager size/blocks metadata 17268/head
Sage Weil [Fri, 25 Aug 2017 22:08:25 +0000 (18:08 -0400)]
os/bluestore: compensate for bad freelistmanager size/blocks metadata

This repairs bluestores created before http://tracker.ceph.com/issues/21089
was fixed in f6f1ae3724d593d3709d982c973ec18a25a47b6e.

In both cases, the freelistmanager's size is off by one block (4k).  In
one case, it is just a matter of fixing the size and twiddling the trailing
bit.  In the second case, the size delta causes freelistmanager to need
a new row, which means the blocks count also changes, and we have lots
of bits to zero (all but one in the new row).

Both are silently corrected by fsck in this patch.

Fixes: http://tracker.ceph.com/issues/21089
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17245 from jdurgin/wip-dup-perf
Josh Durgin [Fri, 25 Aug 2017 21:52:43 +0000 (14:52 -0700)]
Merge pull request #17245 from jdurgin/wip-dup-perf

osd/PGLog: write only changed dup entries

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17225 from liewegas/wip-bluestore-fsck-leaks
Kefu Chai [Fri, 25 Aug 2017 16:53:39 +0000 (00:53 +0800)]
Merge pull request #17225 from liewegas/wip-bluestore-fsck-leaks

os/bluestore: print leaked extents to debug output

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17242 from neha-ojha/wip-21023
Kefu Chai [Fri, 25 Aug 2017 16:52:39 +0000 (00:52 +0800)]
Merge pull request #17242 from neha-ojha/wip-21023

mon: warn about using osd new instead of osd create

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17248 from tchaikov/wip-20987
Kefu Chai [Fri, 25 Aug 2017 16:44:05 +0000 (00:44 +0800)]
Merge pull request #17248 from tchaikov/wip-20987

mon/OSDMonitor: check last_scan_epoch instead when sending creates

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17246 from tchaikov/wip-20913
Kefu Chai [Fri, 25 Aug 2017 16:37:16 +0000 (00:37 +0800)]
Merge pull request #17246 from tchaikov/wip-20913

osd/PGBackend: release a msg using msg->put() not delete

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17029 from xiexingguo/wip-crush-rule-rename
Sage Weil [Fri, 25 Aug 2017 15:21:38 +0000 (10:21 -0500)]
Merge pull request #17029 from xiexingguo/wip-crush-rule-rename

mon: "ceph osd crush rule rename" support

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17103 from C2python/clear_attr
Sage Weil [Fri, 25 Aug 2017 15:12:29 +0000 (10:12 -0500)]
Merge pull request #17103 from C2python/clear_attr

common: Destroy attr of RWLock after initialized

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17126 from xiexingguo/wip-nicenum
Sage Weil [Fri, 25 Aug 2017 15:11:06 +0000 (10:11 -0500)]
Merge pull request #17126 from xiexingguo/wip-nicenum

common/types: make numbers a bit nicer when displaying space usage

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17182 from tchaikov/wip-obj-bencher
Sage Weil [Fri, 25 Aug 2017 15:10:31 +0000 (10:10 -0500)]
Merge pull request #17182 from tchaikov/wip-obj-bencher

common/obj_bencher: set {min,max}_iops if runtime < 1 sec

Reviewed-by: PCzhangPC <pengcheng.zhang@easystack.cn>
7 years agoMerge pull request #17221 from xiexingguo/wip-pg-sparse-read
Sage Weil [Fri, 25 Aug 2017 15:09:42 +0000 (10:09 -0500)]
Merge pull request #17221 from xiexingguo/wip-pg-sparse-read

osd/PrimaryLogPG: fix sparse read won't trigger repair correctly

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17222 from xiexingguo/wip-propagate-eagain
Sage Weil [Fri, 25 Aug 2017 15:09:11 +0000 (10:09 -0500)]
Merge pull request #17222 from xiexingguo/wip-propagate-eagain

osd/PrimaryLogPG: do_osd_ops - propagate EAGAIN/EINPROGRESS on failok

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17258 from liewegas/wip-21127
Sage Weil [Fri, 25 Aug 2017 15:04:18 +0000 (10:04 -0500)]
Merge pull request #17258 from liewegas/wip-21127

qa/standalone/scrub/osd-scrub-repair: fix grep pattern

Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoqa/standalone/scrub/osd-scrub-repair: fix grep pattern 17258/head
Sage Weil [Fri, 25 Aug 2017 13:45:51 +0000 (09:45 -0400)]
qa/standalone/scrub/osd-scrub-repair: fix grep pattern

PGMap shows

    ss << pg_sum.stats.sum.num_objects_unfound
       << "/" << pg_sum.stats.sum.num_objects << " objects unfound (" << b << "%)";

but we were grepping for "1/1 unfound" instead of "1/1 objects
unfound".

Introduced by fe81b7e3a5034ce855303f93f3e413f3f2dc74a8.

Fixes: http://tracker.ceph.com/issues/21127
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa: fix the potential delay of pg state change 17253/head
huangjun [Fri, 25 Aug 2017 09:07:37 +0000 (17:07 +0800)]
qa: fix the potential delay of pg state change

If start osd process first and then mark it in, the
pg state may remain all active+clean when doing
wait_for_clean() check, which may fail the next
osd_scrub_pgs() process.
So faster pg state change by marking osd in first.

Signed-off-by: huangjun <huangjun@xsky.com>
7 years agomon/OSDMonitor: check creating_pgs.last_scan_epoch instead when sending creates 17248/head
Kefu Chai [Fri, 25 Aug 2017 06:13:14 +0000 (14:13 +0800)]
mon/OSDMonitor: check creating_pgs.last_scan_epoch instead when sending creates

we cannot be sure that the creating_pgs_by_osd_epoch is in sync with
creating_pgs.pgs even if mapping.get_epoch() is less or equal to
creating_pgs_epoch. because, 1) the access to mapping.epoch is not
protected by lock, 2) even worse, the mapping might be not finished yet
when we are trying to send pg-creates to subscribers.

so instead of comparing creating_pgs_epoch with mapping's epoch, we
should compare it with creating_pgs.last_scan_epoch. the former is
updated once the creating_pgs_by_osd_epoch is updated with the latest
mapping's epoch and creating_pgs.pgs; the latter is updated with current
osdmap's epoch when creating_pgs is being updated with the inc osd map.
if we are using a creating_pgs_epoch in sync, creating_pgs_epoch should
be creating_pgs.last_scan_epoch + 1.

Fixes: http://tracker.ceph.com/issues/20785
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoRevert "osd: adjust osd_min_pg_log_entries" 17245/head
Josh Durgin [Thu, 24 Aug 2017 22:34:48 +0000 (18:34 -0400)]
Revert "osd: adjust osd_min_pg_log_entries"

This reverts commit 1c4df03394312fe67f36448613d8b54cb1a0e2c9.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
7 years agoosd/PGLog: write only changed dup entries
Josh Durgin [Thu, 24 Aug 2017 22:03:36 +0000 (18:03 -0400)]
osd/PGLog: write only changed dup entries

Writing all of the dup entries whenever one is changed causes a large
regression in performance.

Instead, keep track of ranges that need to be cleared and written
after log merging (dirty_{to,from}_dups) and the earliest dup entry we
haven't written yet during normal operation (write_from_dups). This
parallels the way we track unpersisted log entries.

Check that the correct set of dups is persisted by adding a roundtrip
through memstore to each merge_log unit test.

Fixes: http://tracker.ceph.com/issues/21026
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16960 from jcsp/wip-20692
Kefu Chai [Fri, 25 Aug 2017 05:02:46 +0000 (13:02 +0800)]
Merge pull request #16960 from jcsp/wip-20692

mgr/dashboard: fix FS status on old MDS daemons

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosd/PGBackend: release a msg using msg->put() not delete 17246/head
Kefu Chai [Fri, 25 Aug 2017 02:36:56 +0000 (10:36 +0800)]
osd/PGBackend: release a msg using msg->put() not delete

fix the regression introduced by 1c18b5cb

Fixes: http://tracker.ceph.com/issues/20913
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: print leaked extents to debug output 17225/head
Sage Weil [Wed, 23 Aug 2017 19:12:32 +0000 (15:12 -0400)]
os/bluestore: print leaked extents to debug output

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17142 from Songweibin/wip-unused-variable
Yuri Weinstein [Thu, 24 Aug 2017 20:13:42 +0000 (13:13 -0700)]
Merge pull request #17142 from Songweibin/wip-unused-variable

osd/PG: drop unused variable "oldest_update" in PG.h

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17171 from xiexingguo/wip-dedup-ec-want-acting
Yuri Weinstein [Thu, 24 Aug 2017 20:13:15 +0000 (13:13 -0700)]
Merge pull request #17171 from xiexingguo/wip-dedup-ec-want-acting

osd/PG: two cleanups

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17243 from liewegas/wip-min-size-stuck
Sage Weil [Thu, 24 Aug 2017 19:51:21 +0000 (14:51 -0500)]
Merge pull request #17243 from liewegas/wip-min-size-stuck

qa/overrides/2-size-2-min-size: whitelist REQUEST_STUCK

7 years agoqa/overrides/2-size-2-min-size: whitelist REQUEST_STUCK 17243/head
Sage Weil [Thu, 24 Aug 2017 19:50:45 +0000 (15:50 -0400)]
qa/overrides/2-size-2-min-size: whitelist REQUEST_STUCK

With min_size == size things can get stuck a very long time.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon: warn about using osd new instead of osd create 17242/head
Neha Ojha [Thu, 24 Aug 2017 19:05:58 +0000 (12:05 -0700)]
mon: warn about using osd new instead of osd create

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoMerge pull request #17224 from liewegas/wip-ceph-deploy-mgr
Sage Weil [Thu, 24 Aug 2017 17:41:31 +0000 (12:41 -0500)]
Merge pull request #17224 from liewegas/wip-ceph-deploy-mgr

qa/tasks/ceph_deploy: gatherkeys before mgr deploy

Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoMerge pull request #17083 from xiexingguo/wip-swap-bucket v13.0.0
Kefu Chai [Thu, 24 Aug 2017 15:15:38 +0000 (23:15 +0800)]
Merge pull request #17083 from xiexingguo/wip-swap-bucket

crush: force rebuilding shadow hierarchy after swapping buckets

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17033 from mychoxin/yuanxin_put_assert_to_base
Kefu Chai [Thu, 24 Aug 2017 15:09:03 +0000 (23:09 +0800)]
Merge pull request #17033 from mychoxin/yuanxin_put_assert_to_base

os/bluestore: move assert of read/write to base class

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17058 from xiexingguo/wip-crush-compiler
Kefu Chai [Thu, 24 Aug 2017 15:05:58 +0000 (23:05 +0800)]
Merge pull request #17058 from xiexingguo/wip-crush-compiler

crush: fix CrushCompiler won't compile maps with empty shadow tree

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17034 from xiexingguo/wip-class-ls-osd
Kefu Chai [Thu, 24 Aug 2017 15:05:12 +0000 (23:05 +0800)]
Merge pull request #17034 from xiexingguo/wip-class-ls-osd

mon/OSDMonitor: add plain output for "crush class ls-osd" command

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17179 from xiexingguo/wip-crush-smoke-test
Kefu Chai [Thu, 24 Aug 2017 15:04:21 +0000 (23:04 +0800)]
Merge pull request #17179 from xiexingguo/wip-crush-smoke-test

mon/OSDMonitor: fix improper input/testing range of crush somke testing

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17183 from tchaikov/wip-20913
Kefu Chai [Thu, 24 Aug 2017 14:33:31 +0000 (22:33 +0800)]
Merge pull request #17183 from tchaikov/wip-20913

osd/PGBackend: delete reply if fails to complete delete request

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17227 from liewegas/wip-jewel-x
Sage Weil [Thu, 24 Aug 2017 14:30:31 +0000 (09:30 -0500)]
Merge pull request #17227 from liewegas/wip-jewel-x

qa/suites/upgrade/jewel-x/parallel: tolerate laggy mgr

7 years agoqa/suites/upgrade/jewel-x/parallel: tolerate laggy mgr 17227/head
Sage Weil [Thu, 24 Aug 2017 14:30:01 +0000 (10:30 -0400)]
qa/suites/upgrade/jewel-x/parallel: tolerate laggy mgr

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17226 from liewegas/wip-jewel-x
Sage Weil [Thu, 24 Aug 2017 14:27:44 +0000 (09:27 -0500)]
Merge pull request #17226 from liewegas/wip-jewel-x

qa/suites/upgrade/jewel-x/stress-split: tolerate sloppy past_intervals

7 years agoqa/suites/upgrade/jewel-x/stress-split: tolerate sloppy past_intervals 17226/head
Sage Weil [Thu, 24 Aug 2017 14:23:22 +0000 (10:23 -0400)]
qa/suites/upgrade/jewel-x/stress-split: tolerate sloppy past_intervals

This is harmless in general, esp during upgrade.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/tasks/ceph_deploy: gatherkeys before mgr deploy 17224/head
Sage Weil [Thu, 24 Aug 2017 13:52:17 +0000 (09:52 -0400)]
qa/tasks/ceph_deploy: gatherkeys before mgr deploy

Otherwise we may be missing the bootstrap-mgr key.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17190 from amitkumar50/cov-test-1
Sage Weil [Thu, 24 Aug 2017 13:41:07 +0000 (08:41 -0500)]
Merge pull request #17190 from amitkumar50/cov-test-1

test: Checking fd for negative before closing

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agotest: Checking fd for negative before closing 17190/head
amitkuma [Wed, 23 Aug 2017 17:14:34 +0000 (22:44 +0530)]
test: Checking fd for negative before closing

Fixes the coverity issue:

** 1395317 Argument cannot be negative
161. negative_return_fn: Function open("bufferlist", 0) returns a
negative number.
162. var_assign: Assigning: signed variable fd = open.

Signed-off-by: Amit Kumar amitkuma@redhat.com
7 years agoosd/PrimaryLogPG: do_osd_ops - propagate EAGAIN/EINPROGRESS on failok 17222/head
xie xingguo [Thu, 24 Aug 2017 08:41:00 +0000 (16:41 +0800)]
osd/PrimaryLogPG: do_osd_ops - propagate EAGAIN/EINPROGRESS on failok

These are not really errors and ignoring these error codes can
cause potential problems.

Propagating these errors to high-level callers such as execute_ctx()
where they can be taken good care of should instead be the preferred
option.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoosd/PrimaryLogPG: fix sparse read won't trigger repair correctly 17221/head
xie xingguo [Thu, 24 Aug 2017 07:53:23 +0000 (15:53 +0800)]
osd/PrimaryLogPG: fix sparse read won't trigger repair correctly

Normal reads instead of hole-reads should trigger auto-repair.
Also we shall quit on successfully triggering a repair, or else
we are at risk of doing the op multiple times.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/librbd: fix mock method macro of set_journal_policy 17216/head
Yan Jun [Thu, 24 Aug 2017 07:01:45 +0000 (15:01 +0800)]
test/librbd: fix mock method macro of set_journal_policy

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
7 years agoMerge PR #17205 into master
Patrick Donnelly [Thu, 24 Aug 2017 03:48:22 +0000 (20:48 -0700)]
Merge PR #17205 into master

* refs/remotes/upstream/pull/17205/head:
client: fix locking in Client::getcwd

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17204 into master
Patrick Donnelly [Thu, 24 Aug 2017 03:48:20 +0000 (20:48 -0700)]
Merge PR #17204 into master

* refs/remotes/upstream/pull/17204/head:
fuse: use c++ allocations for group list

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17199 into master
Patrick Donnelly [Thu, 24 Aug 2017 03:48:13 +0000 (20:48 -0700)]
Merge PR #17199 into master

* refs/remotes/upstream/pull/17199/head:
client: fix compat version on MStatfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
7 years agoMerge pull request #17121 from zmedico/PGPool-update-optimize-with-interval_set-swap
Kefu Chai [Thu, 24 Aug 2017 01:22:53 +0000 (09:22 +0800)]
Merge pull request #17121 from zmedico/PGPool-update-optimize-with-interval_set-swap

PGPool::update: optimize with interval_set.swap

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17014 from xiexingguo/wip-various-weight-set-fix
Xie Xingguo [Thu, 24 Aug 2017 00:29:50 +0000 (08:29 +0800)]
Merge pull request #17014 from xiexingguo/wip-various-weight-set-fix

crush: various weight-set fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17099 from xiexingguo/wip-stuck-op-count
Xie Xingguo [Thu, 24 Aug 2017 00:21:36 +0000 (08:21 +0800)]
Merge pull request #17099 from xiexingguo/wip-stuck-op-count

mon/PGMap: fix "0 stuck requests are blocked > 4096 sec" warn

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17203 from liewegas/wip-jewel-x
Sage Weil [Wed, 23 Aug 2017 22:21:37 +0000 (17:21 -0500)]
Merge pull request #17203 from liewegas/wip-jewel-x

qa/suites/upgarde/jewel-x/parallel: tolerate mgr warning

7 years agoMerge pull request #17207 from ceph/wip-bz1484002
Alfredo Deza [Wed, 23 Aug 2017 21:43:19 +0000 (17:43 -0400)]
Merge pull request #17207 from ceph/wip-bz1484002

ceph-volume: use unique logical volumes

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #12429 from yehudasa/wip-meta-stream
Yehuda Sadeh [Wed, 23 Aug 2017 19:59:19 +0000 (12:59 -0700)]
Merge pull request #12429 from yehudasa/wip-meta-stream

rgw: stream metadata full sync init

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16926 from fangyuxiangGL/infinitely-send-data-log-list
Matt Benjamin [Wed, 23 Aug 2017 19:57:41 +0000 (15:57 -0400)]
Merge pull request #16926 from fangyuxiangGL/infinitely-send-data-log-list

rgw: break sending data-log list infinitely

7 years agoMerge pull request #16612 from cbodley/wip-20668
Matt Benjamin [Wed, 23 Aug 2017 19:57:02 +0000 (15:57 -0400)]
Merge pull request #16612 from cbodley/wip-20668

rgw: fixes for multisite replication of encrypted objects

7 years agoceph-volume tests centos7 use the new ansible syntax for lvm 17207/head
Alfredo Deza [Wed, 23 Aug 2017 19:26:27 +0000 (15:26 -0400)]
ceph-volume tests centos7 use the new ansible syntax for lvm

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests use the new ansible syntax for lvm
Alfredo Deza [Wed, 23 Aug 2017 19:24:08 +0000 (15:24 -0400)]
ceph-volume tests use the new ansible syntax for lvm

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests create tests for the get_lv helper method
Alfredo Deza [Wed, 23 Aug 2017 17:44:46 +0000 (13:44 -0400)]
ceph-volume tests create tests for the get_lv helper method

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests create tests for the new arg validator
Alfredo Deza [Wed, 23 Aug 2017 17:29:15 +0000 (13:29 -0400)]
ceph-volume tests create tests for the new arg validator

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util create a validator module for argparse
Alfredo Deza [Wed, 23 Aug 2017 17:28:56 +0000 (13:28 -0400)]
ceph-volume util create a validator module for argparse

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.prepare enforce usage of vg/lv when preparing lvm devices
Alfredo Deza [Wed, 23 Aug 2017 17:26:15 +0000 (13:26 -0400)]
ceph-volume lvm.prepare enforce usage of vg/lv when preparing lvm devices

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoqa/suites/upgrade/jewel-x/parallel: tolerate OBJECT_MISPLACED 17203/head
Sage Weil [Wed, 23 Aug 2017 18:24:00 +0000 (14:24 -0400)]
qa/suites/upgrade/jewel-x/parallel: tolerate OBJECT_MISPLACED

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/upgarde/jewel-x/parallel: tolerate mgr warning
Sage Weil [Wed, 23 Aug 2017 18:22:34 +0000 (14:22 -0400)]
qa/suites/upgarde/jewel-x/parallel: tolerate mgr warning

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #17175 into master
Patrick Donnelly [Wed, 23 Aug 2017 17:56:09 +0000 (10:56 -0700)]
Merge PR #17175 into master

* refs/remotes/upstream/pull/17175/head:
client: add blank space between function name and inode number for log

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17150 into master
Patrick Donnelly [Wed, 23 Aug 2017 17:54:30 +0000 (10:54 -0700)]
Merge PR #17150 into master

* refs/remotes/upstream/pull/17150/head:
doc/cephfs: s/rados_max_object_size/osd_max_object_size

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoclient: fix locking in Client::getcwd 17205/head
Jeff Layton [Wed, 23 Aug 2017 17:49:40 +0000 (13:49 -0400)]
client: fix locking in Client::getcwd

Currently, it doesn't take the client_lock at all, which is problematic
as make_request may very well end up unlocking it. Rename the current
function to _getcwd, and add a new getcwd wrapper that takes the mutex
before calling _getcwd.

This fixes: http://tracker.ceph.com/issues/21082

Signed-off-by: Jeff Layton <jlayton@redhat.com>
7 years agoceph-volume lvm.common update help values for vg/lv usage
Alfredo Deza [Wed, 23 Aug 2017 17:21:56 +0000 (13:21 -0400)]
ceph-volume lvm.common update help values for vg/lv usage

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.create update docstring for vg/lv usage
Alfredo Deza [Wed, 23 Aug 2017 17:20:07 +0000 (13:20 -0400)]
ceph-volume lvm.create update docstring for vg/lv usage

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.prepare update docstring for vg/lv usage
Alfredo Deza [Wed, 23 Aug 2017 15:55:45 +0000 (11:55 -0400)]
ceph-volume lvm.prepare update docstring for vg/lv usage

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #17162 from cbodley/wip-qa-rgw-pool-application
Casey Bodley [Wed, 23 Aug 2017 16:52:33 +0000 (12:52 -0400)]
Merge pull request #17162 from cbodley/wip-qa-rgw-pool-application

qa/rgw: use 'ceph osd pool application enable' on created pools

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge PR #17163 into master
Patrick Donnelly [Wed, 23 Aug 2017 16:52:10 +0000 (09:52 -0700)]
Merge PR #17163 into master

* refs/remotes/upstream/pull/17163/head:
mon: get writeable osdmap for added data pool

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agofuse: use c++ allocations for group list 17204/head
Jeff Layton [Wed, 23 Aug 2017 16:13:14 +0000 (12:13 -0400)]
fuse: use c++ allocations for group list

Valgrind is unhappy about our turning on supplimentary group handling
with fuse by default. The problem is that we end up calling delete to
free the supplimentary gids list, but fuse uses malloc to allocate it.

Note that I was initially concerned that I needed to use malloc and
free there to handle the case of userland calling ceph_userperm_new,
but we leave freeing the pointer up to the caller in that case.

Convert fuse to use new/delete to allocate and free the group lists
instead.

Tracker: http://tracker.ceph.com/issues/21065
Signed-off-by: Jeff Layton <jlayton@redhat.com>
7 years agoMerge pull request #17075 from ivancich/wip-adjust-dup-ops-options
Josh Durgin [Wed, 23 Aug 2017 15:53:09 +0000 (08:53 -0700)]
Merge pull request #17075 from ivancich/wip-adjust-dup-ops-options

osd: adjust osd_min_pg_log_entries

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoclient: fix compat version on MStatfs 17199/head
John Spray [Wed, 23 Aug 2017 13:52:22 +0000 (14:52 +0100)]
client: fix compat version on MStatfs

Fixes: http://tracker.ceph.com/issues/21078
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge PR #16959 into master
Patrick Donnelly [Wed, 23 Aug 2017 14:07:10 +0000 (07:07 -0700)]
Merge PR #16959 into master

* refs/remotes/upstream/pull/16959/head:
client: skip lookupname if writing to unlinked file

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #17053 into master
Patrick Donnelly [Wed, 23 Aug 2017 14:03:43 +0000 (07:03 -0700)]
Merge PR #17053 into master

* refs/remotes/upstream/pull/17053/head:
qa: add chown test clearing S_ISGID and S_ISUID
ceph-fuse: load supplementary groups by default
client: clear suid/sgid bits on non-zero write
client: add missing space in debug msg
cephfs: clear suid/sgid if regular file is exe
client: refactor clear set uid/gid if -1

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #17122 into master
Patrick Donnelly [Wed, 23 Aug 2017 13:49:13 +0000 (06:49 -0700)]
Merge PR #17122 into master

* refs/remotes/upstream/pull/17122/head:
mds: check cap string only if !allow_all

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #17111 into master
Patrick Donnelly [Wed, 23 Aug 2017 13:49:11 +0000 (06:49 -0700)]
Merge PR #17111 into master

* refs/remotes/upstream/pull/17111/head:
qa: add health whitelist for kcephfs suite

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17054 into master
Patrick Donnelly [Wed, 23 Aug 2017 13:49:10 +0000 (06:49 -0700)]
Merge PR #17054 into master

* refs/remotes/upstream/pull/17054/head:
mds: Initializing uninitiazed members SnapServer

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #17184 from PCzhangPC/rmconv
Jason Dillaman [Wed, 23 Aug 2017 11:21:07 +0000 (07:21 -0400)]
Merge pull request #17184 from PCzhangPC/rmconv

rbd:rm unnecessary conversion from string to char* in image-meta function

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17186 from trociny/wip-librados_test_stub-zero-snap
Jason Dillaman [Wed, 23 Aug 2017 11:09:03 +0000 (07:09 -0400)]
Merge pull request #17186 from trociny/wip-librados_test_stub-zero-snap

test/librados_test_stub: pass snap context to zero op

Reviewed-by: Jason Dillaman <dillaman@redhat.com>