]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoinclude/ceph_features: enable SERVER_MIMIC feature bit 17247/head
Sage Weil [Tue, 29 Aug 2017 20:27:23 +0000 (16:27 -0400)]
include/ceph_features: enable SERVER_MIMIC feature bit

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/OSDMonitor: allow require-osd-release mimic
Sage Weil [Tue, 29 Aug 2017 13:38:15 +0000 (09:38 -0400)]
mon/OSDMonitor: allow require-osd-release mimic

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon: allow 'osd require-osd-release mimic'
Sage Weil [Sun, 27 Aug 2017 01:55:03 +0000 (21:55 -0400)]
mon: allow 'osd require-osd-release mimic'

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/rados/upgrade: jewel-x -> luminous-x
Sage Weil [Sat, 26 Aug 2017 18:23:47 +0000 (14:23 -0400)]
qa/suites/rados/upgrade: jewel-x -> luminous-x

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/rados: remove luminous tests
Sage Weil [Sat, 26 Aug 2017 18:19:03 +0000 (14:19 -0400)]
qa/suites/rados: remove luminous tests

- snapdir conversion (at-end) stuff
- merge luminous-specific collections that avoided the above back
into their normal locations

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/mgr/mgr-dashboard-smoke: fix syntax error
Sage Weil [Thu, 24 Aug 2017 19:27:59 +0000 (15:27 -0400)]
test/mgr/mgr-dashboard-smoke: fix syntax error

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-object-corpus: update for dropping compat with pre-luminous messages
Sage Weil [Thu, 24 Aug 2017 19:15:13 +0000 (15:15 -0400)]
ceph-object-corpus: update for dropping compat with pre-luminous messages

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: remove mon pg stat reports and queueing machinery
Sage Weil [Thu, 24 Aug 2017 18:46:27 +0000 (14:46 -0400)]
osd: remove mon pg stat reports and queueing machinery

We now unconditionally send all pg stats to the mgr at regular
intervals.  Drop all of the monitor machinery!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: remove support for pre-luminous past_intervals
Sage Weil [Thu, 24 Aug 2017 18:30:50 +0000 (14:30 -0400)]
osd: remove support for pre-luminous past_intervals

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG[Log]: drop compat for pre-luminous PG info encoding
Sage Weil [Thu, 24 Aug 2017 17:52:44 +0000 (13:52 -0400)]
osd/PG[Log]: drop compat for pre-luminous PG info encoding

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDPing: strip out some pre-luminous compat cruft
Sage Weil [Thu, 24 Aug 2017 18:54:20 +0000 (14:54 -0400)]
messages/MOSDPing: strip out some pre-luminous compat cruft

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDPGQuery: drop pre-luminous compat
Sage Weil [Thu, 24 Aug 2017 16:44:09 +0000 (12:44 -0400)]
messages/MOSDPGQuery: drop pre-luminous compat

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDPGRemove: drop pre-luminous compat
Sage Weil [Thu, 24 Aug 2017 16:43:36 +0000 (12:43 -0400)]
messages/MOSDPGRemove: drop pre-luminous compat

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDPGNotify: drop pre-luminous compat
Sage Weil [Thu, 24 Aug 2017 16:43:04 +0000 (12:43 -0400)]
messages/MOSDPGNotify: drop pre-luminous compat

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDPGLog: drop pre-luminous compat
Sage Weil [Thu, 24 Aug 2017 16:42:51 +0000 (12:42 -0400)]
messages/MOSDPGLog: drop pre-luminous compat

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDPGInfo: drop pre-luminous compat
Sage Weil [Thu, 24 Aug 2017 16:42:40 +0000 (12:42 -0400)]
messages/MOSDPGInfo: drop pre-luminous compat

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: drop kraken wal replay compat
Sage Weil [Thu, 24 Aug 2017 16:38:45 +0000 (12:38 -0400)]
os/bluestore: drop kraken wal replay compat

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: remove MOSDSubOp[Reply] jewel compat code
Sage Weil [Thu, 24 Aug 2017 16:34:18 +0000 (12:34 -0400)]
osd: remove MOSDSubOp[Reply] jewel compat code

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: require_osd_release >= luminous
Sage Weil [Thu, 24 Aug 2017 18:50:11 +0000 (14:50 -0400)]
osd: require_osd_release >= luminous

We can drop the luminous mon check now because the
require_osd_release cannot be set to luminous with pre-l mons
anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17146 from shangzhong/wip-add-line-break
Sage Weil [Tue, 29 Aug 2017 02:58:28 +0000 (21:58 -0500)]
Merge pull request #17146 from shangzhong/wip-add-line-break

common: add line break for "ceph daemon TYPE.ID version"

Reviewed-by: huanwen ren <ren.huanwen@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17091 from liupan1111/wip-txc-add
Sage Weil [Tue, 29 Aug 2017 02:56:32 +0000 (21:56 -0500)]
Merge pull request #17091 from liupan1111/wip-txc-add

os/bluestore: support calculate cost when using spdk.

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #17251 from Songweibin/wip-unused-variable
Sage Weil [Tue, 29 Aug 2017 02:55:52 +0000 (21:55 -0500)]
Merge pull request #17251 from Songweibin/wip-unused-variable

os/bluestore: drop unused param "what" in apply()

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17326 from neha-ojha/wip-21023-contd
Kefu Chai [Tue, 29 Aug 2017 02:02:55 +0000 (10:02 +0800)]
Merge pull request #17326 from neha-ojha/wip-21023-contd

doc: fix order of options in osd new

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17180 from tchaikov/wip-literals-for-options
Kefu Chai [Tue, 29 Aug 2017 01:25:33 +0000 (09:25 +0800)]
Merge pull request #17180 from tchaikov/wip-literals-for-options

common/options: use user-defined literals for default values

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #16066 from tanghaodong25/bluefs-sync-write
Kefu Chai [Tue, 29 Aug 2017 01:12:47 +0000 (09:12 +0800)]
Merge pull request #16066 from tanghaodong25/bluefs-sync-write

os/bluestore/BlueFS: don't need wait for aio when using _sync_write

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #15479 from yonghengdexin735/wip-zzz-const
Kefu Chai [Tue, 29 Aug 2017 01:11:58 +0000 (09:11 +0800)]
Merge pull request #15479 from yonghengdexin735/wip-zzz-const

messages/MDentryLink: add const to member function

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17256 from scienceluo/wip-luo-add-log-branch
Kefu Chai [Tue, 29 Aug 2017 01:11:22 +0000 (09:11 +0800)]
Merge pull request #17256 from scienceluo/wip-luo-add-log-branch

auth: add err reason for log info in load function

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc: fix order of options in osd new 17326/head
Neha Ojha [Mon, 28 Aug 2017 22:59:19 +0000 (15:59 -0700)]
doc: fix order of options in osd new

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoMerge pull request #17307 from liewegas/wip-powercycle-slow-trim
Sage Weil [Mon, 28 Aug 2017 18:14:16 +0000 (13:14 -0500)]
Merge pull request #17307 from liewegas/wip-powercycle-slow-trim

qa/suites/powercycle/osd/whitelist_health: whitelist slow trimming

7 years agoqa/suites/powercycle/osd/whitelist_health: whitelist more 17307/head
Sage Weil [Mon, 28 Aug 2017 13:38:58 +0000 (09:38 -0400)]
qa/suites/powercycle/osd/whitelist_health: whitelist more

"2017-08-26 16:09:27.704418 mon.a mon.0 172.21.15.169:6789/0 876 : cluster [WRN] MDS health message (mds.0): Behind on trimming (66/30)" in cluster log

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16857 from yanyixing/chartfix
John Spray [Mon, 28 Aug 2017 17:28:34 +0000 (18:28 +0100)]
Merge pull request #16857 from yanyixing/chartfix

pybind: fix chart size become bigger when refresh

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17267 from linuxbox2/wip-lock-qlane
Matt Benjamin [Mon, 28 Aug 2017 15:01:03 +0000 (11:01 -0400)]
Merge pull request #17267 from linuxbox2/wip-lock-qlane

rgw_file:  fix LRU lane lock in evict_block()

7 years agoMerge pull request #17293 from tchaikov/wip-jewel-x-singleton
Sage Weil [Mon, 28 Aug 2017 13:55:18 +0000 (08:55 -0500)]
Merge pull request #17293 from tchaikov/wip-jewel-x-singleton

qa/suites/rados/upgrade/jewel-x-singleton: tolerate sloppy past_intervals

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17019 from dachary/wip-doc-ceph-disk
Kefu Chai [Mon, 28 Aug 2017 11:17:33 +0000 (19:17 +0800)]
Merge pull request #17019 from dachary/wip-doc-ceph-disk

doc: document ceph-disk prepare class hierarchy

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/suites/rados/upgrade/jewel-x-singleton: tolerate sloppy past_intervals 17293/head
Kefu Chai [Mon, 28 Aug 2017 07:19:10 +0000 (15:19 +0800)]
qa/suites/rados/upgrade/jewel-x-singleton: tolerate sloppy past_intervals

See-also: d5d5d7d1
Signed-off-by: Kefu Chai <kchai@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 agorgw_file: fix LRU lane lock in evict_block() 17267/head
Matt Benjamin [Fri, 25 Aug 2017 21:55:11 +0000 (17:55 -0400)]
rgw_file:  fix LRU lane lock in evict_block()

Found by "Supriti Singh" <Supriti.Singh@suse.com>.

Fixes http://tracker.ceph.com/issues/21141

Signed-off-by: Matt Benjamin <mbenjamin@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 agodoc: document ceph-disk prepare class hierarchy 17019/head
Loic Dachary [Mon, 14 Aug 2017 15:00:08 +0000 (17:00 +0200)]
doc: document ceph-disk prepare class hierarchy

Signed-off-by: Loic Dachary <loic@dachary.org>
7 years agoauth: add err log info for load function 17256/head
Luo Kexue [Fri, 25 Aug 2017 11:12:34 +0000 (19:12 +0800)]
auth: add err log info for load function

Signed-off-by: Luo Kexue <luo.kexue@zte.com.cn>
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 agoos/bluestore: drop useless variable of "what" in apply func 17251/head
songweibin [Fri, 25 Aug 2017 07:19:02 +0000 (15:19 +0800)]
os/bluestore: drop useless variable of "what" in apply func

Signed-off-by: songweibin <song.weibin@zte.com.cn>
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 agocommon/options: use user-defined literals for default intervals 17180/head
Kefu Chai [Wed, 23 Aug 2017 06:35:19 +0000 (14:35 +0800)]
common/options: use user-defined literals for default intervals

for better readablility

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/options: use user-defined literals for default sizes
Kefu Chai [Thu, 24 Aug 2017 09:08:00 +0000 (17:08 +0800)]
common/options: use user-defined literals for default sizes

for better readablity.

Signed-off-by: Kefu Chai <kchai@redhat.com>