]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agodoc: mention ENXIO change in the 10.2.6 release notes 13878/head
Nathan Cutler [Wed, 8 Mar 2017 15:29:47 +0000 (16:29 +0100)]
doc: mention ENXIO change in the 10.2.6 release notes

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13880 from cbodley/wip-qa-submodule
Yehuda Sadeh [Wed, 8 Mar 2017 20:57:31 +0000 (12:57 -0800)]
Merge pull request #13880 from cbodley/wip-qa-submodule

build: remove ceph-qa-suite directory

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13217 from liewegas/wip-bluestore-prefer-wal-size
Sage Weil [Wed, 8 Mar 2017 19:38:54 +0000 (13:38 -0600)]
Merge pull request #13217 from liewegas/wip-bluestore-prefer-wal-size

os/bluestore: add bluestore_prefer_wal_size option

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agobuild: remove ceph-qa-suite directory 13880/head
Casey Bodley [Wed, 8 Mar 2017 17:30:05 +0000 (12:30 -0500)]
build: remove ceph-qa-suite directory

after commit 3afb889 "qa: add supported distros for ceph-ansible", git
submodule update commands are failing with:

No submodule mapping found in .gitmodules for path 'ceph-qa-suite'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13785 from liewegas/wip-cleanup-features
Sage Weil [Wed, 8 Mar 2017 17:14:08 +0000 (11:14 -0600)]
Merge pull request #13785 from liewegas/wip-cleanup-features

msg: no need to pass supported features to Messenger::Policy ctor

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #13078 from zhangsw/fix-rgw-setacl-bug
Casey Bodley [Wed, 8 Mar 2017 16:55:44 +0000 (11:55 -0500)]
Merge pull request #13078 from zhangsw/fix-rgw-setacl-bug

rgw: put object's acl can't work well on the latest object

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13852 from liewegas/wip-19133
Josh Durgin [Wed, 8 Mar 2017 15:47:49 +0000 (07:47 -0800)]
Merge pull request #13852 from liewegas/wip-19133

qa/suites: fix upgrade tests vs cluster full thrashing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #13711 from tmuthamizhan/wip-add-supported-distros
Sage Weil [Wed, 8 Mar 2017 15:35:50 +0000 (09:35 -0600)]
Merge pull request #13711 from tmuthamizhan/wip-add-supported-distros

qa: add supported distros for ceph-ansible

Reviewed-by: Yuri Weinstein <yweinstei@redhat.com>
8 years agoMerge pull request #13776 from Liuchang0812/wip-add-override-in-tool-headers
Sage Weil [Wed, 8 Mar 2017 15:08:16 +0000 (09:08 -0600)]
Merge pull request #13776 from Liuchang0812/wip-add-override-in-tool-headers

tools: add override in tool submodule

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13791 from runsisi/wip-rbd-ack-cleanup
Jason Dillaman [Wed, 8 Mar 2017 15:07:29 +0000 (10:07 -0500)]
Merge pull request #13791 from runsisi/wip-rbd-ack-cleanup

librbd: rbd ack cleanup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13775 from Liuchang0812/wip-add-override-librados-headers
Sage Weil [Wed, 8 Mar 2017 15:06:47 +0000 (09:06 -0600)]
Merge pull request #13775 from Liuchang0812/wip-add-override-librados-headers

librados: add override in headers

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13774 from Liuchang0812/wip-add-override-in-common-headers
Sage Weil [Wed, 8 Mar 2017 15:06:16 +0000 (09:06 -0600)]
Merge pull request #13774 from Liuchang0812/wip-add-override-in-common-headers

common: add override in header file

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13773 from Liuchang0812/wip-add-override-in-test-headers
Sage Weil [Wed, 8 Mar 2017 15:03:20 +0000 (09:03 -0600)]
Merge pull request #13773 from Liuchang0812/wip-add-override-in-test-headers

test: add override in test submodule

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13771 from Liuchang0812/wip-add-override-in-msg-headers
Sage Weil [Wed, 8 Mar 2017 15:02:33 +0000 (09:02 -0600)]
Merge pull request #13771 from Liuchang0812/wip-add-override-in-msg-headers

common: add override in msg subsystem

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13782 from vshankar/wip-19034
Jason Dillaman [Wed, 8 Mar 2017 13:42:33 +0000 (08:42 -0500)]
Merge pull request #13782 from vshankar/wip-19034

rbd: use concurrent writes for imports

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13752 from trociny/wip-19130
Jason Dillaman [Wed, 8 Mar 2017 13:41:44 +0000 (08:41 -0500)]
Merge pull request #13752 from trociny/wip-19130

librbd: relax "is parent mirrored" check when enabling mirroring for pool

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13444 from dachary/wip-18943-device-class
Loic Dachary [Wed, 8 Mar 2017 12:16:49 +0000 (13:16 +0100)]
Merge pull request #13444 from dachary/wip-18943-device-class

crush: add devices class that rules can use as a filter

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13835 from theanalyst/doc/releases/10.2.6
Abhishek L [Wed, 8 Mar 2017 12:14:25 +0000 (13:14 +0100)]
Merge pull request #13835 from theanalyst/doc/releases/10.2.6

doc: Jewel 10.2.6 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13453 from xiaoxichen/drop_mallinfo
John Spray [Wed, 8 Mar 2017 11:56:01 +0000 (11:56 +0000)]
Merge pull request #13453 from xiaoxichen/drop_mallinfo

common/MemoryModel: Bump int to long and drop mallinfo

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13580 from ukernel/wip-18914
John Spray [Wed, 8 Mar 2017 11:48:53 +0000 (11:48 +0000)]
Merge pull request #13580 from ukernel/wip-18914

client: wait for lastest osdmap when handling set file/dir layout

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13691 from Liuchang0812/wip-add-override-in-mds-headers
John Spray [Wed, 8 Mar 2017 11:35:25 +0000 (11:35 +0000)]
Merge pull request #13691 from Liuchang0812/wip-add-override-in-mds-headers

mds: add override in headers

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #12786 from jcsp/wip-11950
John Spray [Wed, 8 Mar 2017 11:18:39 +0000 (11:18 +0000)]
Merge pull request #12786 from jcsp/wip-11950

#11950: Persistent purge queue

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agomds: handle Journaler::recover errors in PurgeQueue 12786/head
John Spray [Fri, 3 Mar 2017 12:25:05 +0000 (12:25 +0000)]
mds: handle Journaler::recover errors in PurgeQueue

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: update TestDamage for PurgeQueue
John Spray [Fri, 3 Mar 2017 12:24:41 +0000 (12:24 +0000)]
qa: update TestDamage for PurgeQueue

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: update TestFlush for changed stray perf counters
John Spray [Fri, 3 Mar 2017 10:00:15 +0000 (10:00 +0000)]
qa: update TestFlush for changed stray perf counters

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: flush PQ even when not consuming
John Spray [Wed, 1 Mar 2017 12:33:05 +0000 (12:33 +0000)]
mds: flush PQ even when not consuming

In normal operation we generate flushes from
_consume when we read from the journaler.  However,
we should also have a fallback flush mechanism for
situations where can_consume() is false fo a long time.

This comes up in testing when we set throttle to zero to
prevent progress, but would also come up in real life if
we were busy purging a few very large files, or if purging
was stuck due to bad PGs in the data pool -- we don't want
that to stop us completing appends to the PQ.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: add TestStrays.test_purge_queue_op_rate
John Spray [Mon, 13 Feb 2017 17:17:29 +0000 (17:17 +0000)]
qa: add TestStrays.test_purge_queue_op_rate

For ensuring that the PurgeQueue code is not generating
too many extra IOs.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: write_head when reading in PurgeQueue
John Spray [Mon, 13 Feb 2017 12:01:40 +0000 (12:01 +0000)]
mds: write_head when reading in PurgeQueue

Previously write_head calls were only generated
on the write side, so if you had a big queue
and were just working through consuming it, you
wouldn't record your progress, and on a daemon
restart would end up repeating a load of work.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: expose Journaler::write_head_needed
John Spray [Mon, 13 Feb 2017 12:00:42 +0000 (12:00 +0000)]
osdc: expose Journaler::write_head_needed

So that callers on the read side can optionally
do their own write_head calls according to
the same condition that Journaler uses
internally for its write_head during _flush() condition.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: remove unnecessary flush() from PurgeQueue
John Spray [Mon, 13 Feb 2017 00:50:11 +0000 (00:50 +0000)]
mds: remove unnecessary flush() from PurgeQueue

We can drive all flushing from the read side.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: update for removing Timer from Journaler
John Spray [Mon, 13 Feb 2017 00:48:51 +0000 (00:48 +0000)]
mds: update for removing Timer from Journaler

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: less aggressive prefetch in read/write Journaler
John Spray [Mon, 13 Feb 2017 00:16:29 +0000 (00:16 +0000)]
osdc: less aggressive prefetch in read/write Journaler

Previously, if doing a write/is_readable/write/is_readable sequence,
you'd end up doing a flush after every write, even though there
was already a flush in flight that would advance the readable-ness
of the journal.

Because this flush-during-read path is only active when using
a read/write journal such as in PurgeQueue, tweak the behaviour
to suit this case.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc: remove Journaler "journaler_batch_*" settings
John Spray [Sun, 12 Feb 2017 23:24:41 +0000 (23:24 +0000)]
osdc: remove Journaler "journaler_batch_*" settings

This was an unused code path.  If anyone set a nonzero
value here the MDS would crash because the Timer implementation
has changed since this code was written, and now requires
add_event_after callers to hold the right lock.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: add error handling in PurgeQueue
John Spray [Sat, 11 Feb 2017 14:55:52 +0000 (14:55 +0000)]
mds: add error handling in PurgeQueue

For decode errors, and for Journaler errors.
Both are considered damage to the MDS rank, as
with other per-rank data structures.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: expose progress during PurgeQueue drain
John Spray [Wed, 8 Feb 2017 16:24:24 +0000 (16:24 +0000)]
mds: expose progress during PurgeQueue drain

We don't track an item count, but we do have
a number of bytes left in the Journaler, so
can use that to give an indication of progress
while the MDS rank shutdown is waiting for
the PurgeQueue to do its thing.

Also lift the ops limit on the PurgeQueue
when it goes into the drain phase.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: update PurgeQueue for single-ack OSD change
John Spray [Thu, 2 Feb 2017 14:41:49 +0000 (14:41 +0000)]
mds: update PurgeQueue for single-ack OSD change

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: create purge queue if it's not found
John Spray [Sun, 25 Dec 2016 16:45:09 +0000 (16:45 +0000)]
mds: create purge queue if it's not found

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa/cephfs: add TestStrays.test_purge_on_shutdown
John Spray [Sat, 24 Dec 2016 20:11:40 +0000 (20:11 +0000)]
qa/cephfs: add TestStrays.test_purge_on_shutdown

...and change test_migration_on_shutdown to
specifically target non-purgeable strays (i.e.
hardlink-ish things).

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: wait for purgequeue on rank shutdown
John Spray [Fri, 23 Dec 2016 19:23:20 +0000 (19:23 +0000)]
mds: wait for purgequeue on rank shutdown

Also, move shutdown_pass call from dispatch
to tick, so that it doesn't rely on incoming
messages to make progress.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoqa: update test_strays for purgequeue
John Spray [Fri, 23 Dec 2016 18:59:39 +0000 (18:59 +0000)]
qa: update test_strays for purgequeue

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: implement PurgeQueue throttling
John Spray [Fri, 23 Dec 2016 18:00:17 +0000 (18:00 +0000)]
mds: implement PurgeQueue throttling

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: add stats to PurgeQueue
John Spray [Wed, 21 Dec 2016 11:22:30 +0000 (11:22 +0000)]
mds: add stats to PurgeQueue

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: move dir purge and truncate into purgequeue
John Spray [Mon, 19 Dec 2016 14:03:04 +0000 (14:03 +0000)]
mds: move dir purge and truncate into purgequeue

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: move throttling code out of StrayManager
John Spray [Mon, 5 Dec 2016 15:40:00 +0000 (15:40 +0000)]
mds: move throttling code out of StrayManager

This will belong in PurgeQueue from now on.  We assume
that there is no need to throttle the rate of insertions
into purge queue as it is an efficient sequentially-written
journal.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: move PurgeQueue up to MDSRank
John Spray [Thu, 1 Dec 2016 23:58:51 +0000 (23:58 +0000)]
mds: move PurgeQueue up to MDSRank

To better reflect its lifecycle: it has a part to play
in create/open and has an init/shutdown, unlike StrayManager.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: use a persistent queue for purging deleted files
John Spray [Thu, 1 Dec 2016 20:22:43 +0000 (20:22 +0000)]
mds: use a persistent queue for purging deleted files

To avoid creating stray directories of unbounded size
and all the associated pain, use a more appropriate
datastructure to store a FIFO of inodes that need
purging.

Fixes: http://tracker.ceph.com/issues/11950
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc/Journaler: wrap recover() completion in finisher
John Spray [Thu, 1 Dec 2016 19:10:35 +0000 (19:10 +0000)]
osdc/Journaler: wrap recover() completion in finisher

Otherwise, the callback will deadlock if it in turn
calls into any Journaler functions.  Don't care
about performance because we do this once at startup.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: const snaprealm getters on CInode
John Spray [Mon, 19 Dec 2016 12:41:08 +0000 (12:41 +0000)]
mds: const snaprealm getters on CInode

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: const methods on SnapRealm
John Spray [Mon, 19 Dec 2016 12:38:20 +0000 (12:38 +0000)]
mds: const methods on SnapRealm

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc/Filer: const fix for passed layouts
John Spray [Thu, 1 Dec 2016 15:25:52 +0000 (15:25 +0000)]
osdc/Filer: const fix for passed layouts

...so that const references can be passed into
purge calls.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon/lockdep: clearer log messages
John Spray [Thu, 8 Dec 2016 15:52:29 +0000 (15:52 +0000)]
common/lockdep: clearer log messages

Previously these were contextless "using id..." messages with
no indication of what subsystem the message came from.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc/Journaler: add have_waiter()
John Spray [Thu, 1 Dec 2016 18:59:26 +0000 (18:59 +0000)]
osdc/Journaler: add have_waiter()

Allows users of wait_for_readable to conveniently
see if there is already a waiter.  Yes, they could
do this themselves, but I'd rather peek at an existing
variable than add a new one caller-side.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc/Journaler: remove incorrect assertion
John Spray [Thu, 1 Dec 2016 15:27:39 +0000 (15:27 +0000)]
osdc/Journaler: remove incorrect assertion

This asserted that flush_pos would be ahead of
safe_pos after calling _flush.  However, this
is not guaranteed to be the case because
prezeroing might prevent us from flushing
right now.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosdc/Journaler: assign a name for logging
John Spray [Thu, 1 Dec 2016 15:25:07 +0000 (15:25 +0000)]
osdc/Journaler: assign a name for logging

Now that we have an MDLog journaler and a PurgeQueue journaler,
this is needed to avoid confusion.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocompact_set: add #includes for dependencies
John Spray [Thu, 1 Dec 2016 19:14:50 +0000 (19:14 +0000)]
compact_set: add #includes for dependencies

This was previously working by side effects, I happened
to include it somewhere that its dependencies weren't
already included.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13397 from SUSE/doc-fix-qa-links
Kefu Chai [Wed, 8 Mar 2017 10:19:40 +0000 (18:19 +0800)]
Merge pull request #13397 from SUSE/doc-fix-qa-links

doc: update links to point to ceph/qa instead of ceph-qa-suite

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13816 from batrick/i19201
John Spray [Wed, 8 Mar 2017 10:14:19 +0000 (10:14 +0000)]
Merge pull request #13816 from batrick/i19201

mds: print rank as int

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #13830 from jcsp/wip-doc-multimds
John Spray [Wed, 8 Mar 2017 10:13:49 +0000 (10:13 +0000)]
Merge pull request #13830 from jcsp/wip-doc-multimds

doc: instructions and guidance for multimds

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agodoc: Jewel 10.2.6 release notes 13835/head
Abhishek Lekshmanan [Tue, 7 Mar 2017 16:50:56 +0000 (17:50 +0100)]
doc: Jewel 10.2.6 release notes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: mention interactive task in developer guide 13397/head
Nathan Cutler [Wed, 8 Mar 2017 09:12:10 +0000 (10:12 +0100)]
doc: mention interactive task in developer guide

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agodoc: rewrite Deploy a cluster for manual testing section
Nathan Cutler [Mon, 13 Feb 2017 22:09:31 +0000 (23:09 +0100)]
doc: rewrite Deploy a cluster for manual testing section

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agodoc: update links to point to ceph/qa instead of ceph-qa-suite
Jan Fajerski [Mon, 13 Feb 2017 15:52:07 +0000 (16:52 +0100)]
doc: update links to point to ceph/qa instead of ceph-qa-suite

Also fix two broken links to install task and two typos.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
8 years agoMerge pull request #12506 from SUSE/wip-18259
Nathan Cutler [Wed, 8 Mar 2017 08:33:46 +0000 (09:33 +0100)]
Merge pull request #12506 from SUSE/wip-18259

Revert "dummy: reduce run time, run user.yaml playbook"

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoqa/suites/upgrade/jewel-x: do not thrash cluster full during upgrade 13852/head
Sage Weil [Wed, 8 Mar 2017 03:35:02 +0000 (22:35 -0500)]
qa/suites/upgrade/jewel-x: do not thrash cluster full during upgrade

The mon command varies.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suite/rados/upgrade: do not thrash full cluster during upgrade
Sage Weil [Wed, 8 Mar 2017 03:34:37 +0000 (22:34 -0500)]
qa/suite/rados/upgrade: do not thrash full cluster during upgrade

The mon command varies!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13615 from liewegas/wip-osd-full
Sage Weil [Wed, 8 Mar 2017 03:33:14 +0000 (21:33 -0600)]
Merge pull request #13615 from liewegas/wip-osd-full

mon,osd: new mechanism for managing full and nearfull OSDs for luminous

Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #13759 from liewegas/wip-19133
Sage Weil [Wed, 8 Mar 2017 03:31:50 +0000 (21:31 -0600)]
Merge pull request #13759 from liewegas/wip-19133

osdc/Objecter: resend RWORDERED ops on full

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #13734 from liewegas/wip-jewel-x
Sage Weil [Wed, 8 Mar 2017 03:25:13 +0000 (21:25 -0600)]
Merge pull request #13734 from liewegas/wip-jewel-x

qa/suite/upgrade/jewel-x: various fixes

Reviewed-by: Yuri Weinstein <yweinstei@redhat.com>
8 years agorbd: refactor header import 13782/head
Venky Shankar [Fri, 3 Mar 2017 10:24:49 +0000 (15:54 +0530)]
rbd: refactor header import

and resuse validate_banner() helper routine where
ever necessary.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
8 years agorbd: concurrent v2 image IO during import/import-diff
Venky Shankar [Thu, 2 Mar 2017 05:11:56 +0000 (10:41 +0530)]
rbd: concurrent v2 image IO during import/import-diff

Fixes: http://tracker.ceph.com/issues/19034
Signed-off-by: Venky Shankar <vshankar@redhat.com>
8 years agorbd: cleanup unused throttle in v2 import
Venky Shankar [Wed, 1 Mar 2017 06:51:49 +0000 (12:21 +0530)]
rbd: cleanup unused throttle in v2 import

v2 import does not use throttle as of now although v1
import does use it - initialize throttle wherever its
necessary and avoid passing it functions that do not
require it.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
8 years agoMerge pull request #13846 from rzarzynski/wip-qa-rgw-start-apache-first
Yehuda Sadeh [Tue, 7 Mar 2017 23:13:35 +0000 (15:13 -0800)]
Merge pull request #13846 from rzarzynski/wip-qa-rgw-start-apache-first

qa/tasks/rgw.py: start Apache before RadosGW.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: drop unused OpSequencer::wait_for_wal_on_seq() 13217/head
Sage Weil [Mon, 6 Mar 2017 20:43:47 +0000 (15:43 -0500)]
os/bluestore: drop unused OpSequencer::wait_for_wal_on_seq()

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add bluestore_prefer_wal_size[_hdd,_ssd] options
Sage Weil [Thu, 2 Feb 2017 19:06:05 +0000 (14:06 -0500)]
os/bluestore: add bluestore_prefer_wal_size[_hdd,_ssd] options

Add option to prefer a WAL write if the write is below a size threshold,
even if we could avoid it.  This lets you trade some write-amp (by
journaling data to rocksdb) for latency in cases where the WAL device is
much faster than the main device.

This affects:

 - writes to new extents locations below min_alloc_size
 - writes to unallocated space below min_alloc_size
 - "big" writes above min_alloc_size that are below the prefer_wal_size
   threshold.

Note that it's applied to individual blobs, not the entirety of the write,
so if your have a larger write torn into two pieces/blobs that are below
the threshold then they will both go through the wal.

Set different defaults for HDD and SSD, since this makes more sense for HDD
where seeks are expensive.

Add some test cases to exercise the option.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/ceph_manager: use new luminous set-full-ratio etc 13759/head
Sage Weil [Tue, 7 Mar 2017 21:39:09 +0000 (16:39 -0500)]
qa/tasks/ceph_manager: use new luminous set-full-ratio etc

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13410 from yehudasa/wip-tracing-fix
Yehuda Sadeh [Tue, 7 Mar 2017 21:31:47 +0000 (13:31 -0800)]
Merge pull request #13410 from yehudasa/wip-tracing-fix

tracing: don't include oid when tracing at dequeue_op()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13839 from theanalyst/release/10.2.6/changelog
Sage Weil [Tue, 7 Mar 2017 21:30:04 +0000 (15:30 -0600)]
Merge pull request #13839 from theanalyst/release/10.2.6/changelog

doc: add changelog for v10.2.6 Jewel release

8 years agodoc: add changelog for v10.2.6 Jewel release 13839/head
Abhishek Lekshmanan [Tue, 7 Mar 2017 20:44:23 +0000 (21:44 +0100)]
doc: add changelog for v10.2.6 Jewel release

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #13704 from batrick/mds-counter-unify
John Spray [Tue, 7 Mar 2017 19:50:11 +0000 (19:50 +0000)]
Merge pull request #13704 from batrick/mds-counter-unify

mds: remove some redundant object counters

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoosdc/Objecter: resend RWORDERED ops on full
Sage Weil [Fri, 3 Mar 2017 03:20:08 +0000 (21:20 -0600)]
osdc/Objecter: resend RWORDERED ops on full

Our condition for respecting the FULL flag is complex, and involves
the WRITE | RWORDERED flags vs the FULL_FORCE | FULL_TRY flags.  Previously,
we could block a read bc of RWORDRED but not resend it later.

Fix by capturing the complex condition in a respects_full() bool and using
it both for the blocking-on-send and resending-on-possibly-notfull-later
checks.

Fixes: http://tracker.ceph.com/issues/19133
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/thrashosds: chance_thrash_cluster_full
Sage Weil [Fri, 3 Mar 2017 14:45:10 +0000 (08:45 -0600)]
qa/tasks/thrashosds: chance_thrash_cluster_full

Induce a momentarily full cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13832 from linuxbox2/wip-rgw-fs_inst
Daniel Gryniewicz [Tue, 7 Mar 2017 17:52:44 +0000 (12:52 -0500)]
Merge pull request #13832 from linuxbox2/wip-rgw-fs_inst

rgw_file:  fix fs_inst progression

8 years agoMerge pull request #10240 from songbaisen/b2
Yuri Weinstein [Tue, 7 Mar 2017 16:57:40 +0000 (08:57 -0800)]
Merge pull request #10240 from songbaisen/b2

mon: remove the redudant jugement in paxosservice is_writeable function

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorgw_file: fix fs_inst progression 13832/head
Matt Benjamin [Tue, 7 Mar 2017 14:48:57 +0000 (09:48 -0500)]
rgw_file:  fix fs_inst progression

Reported by Gui Hecheng<guimark@126.com>.  This change is a
variation on proposed fix by Dan Gryniewicz<dang@redhat.com>
to take root_fh.state.dev as fs_inst for new handles.

Fixes: http://tracker.ceph.com/issues/19214
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoqa/tasks/rgw.py: start Apache before RadosGW. 13846/head
Radoslaw Zarzynski [Tue, 7 Mar 2017 16:31:52 +0000 (17:31 +0100)]
qa/tasks/rgw.py: start Apache before RadosGW.

At the end of start_rgw() we wait till establishing HTTP connections
with RadosGW become possible. However, if RadosGW uses the FastCGI,
the condition can't be fulfilled without spawning HTTP server first.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agolibrbd: relax "is parent mirrored" check when enabling mirroring for pool 13752/head
Mykola Golub [Thu, 2 Mar 2017 16:18:18 +0000 (17:18 +0100)]
librbd: relax "is parent mirrored" check when enabling mirroring for pool

If the parent is in the same pool and has the journaling feature enabled
we can assume the mirroring will eventually be enabled for it.

Fixes: http://tracker.ceph.com/issues/19130
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #13323 from yehudasa/wip-18079-2
Sage Weil [Tue, 7 Mar 2017 14:41:08 +0000 (08:41 -0600)]
Merge pull request #13323 from yehudasa/wip-18079-2

librados: use cursor for nobjects listing

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13262 from batrick/multimds-thrasher
John Spray [Tue, 7 Mar 2017 14:29:18 +0000 (14:29 +0000)]
Merge pull request #13262 from batrick/multimds-thrasher

Add multimds:thrash sub-suite and fix bugs in thrasher for multimds

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agodoc: instructions and guidance for multimds 13830/head
John Spray [Tue, 7 Mar 2017 14:08:22 +0000 (14:08 +0000)]
doc: instructions and guidance for multimds

Inspired by http://tracker.ceph.com/issues/19135

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13560 from wjwithagen/wip-wjw-ceph-disk-tests
Kefu Chai [Tue, 7 Mar 2017 07:37:18 +0000 (15:37 +0800)]
Merge pull request #13560 from wjwithagen/wip-wjw-ceph-disk-tests

ceph-disk/tests: Certain partition types do not work on FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13810 from yuyuyu101/wip-rdma-inflight
Haomai Wang [Tue, 7 Mar 2017 07:25:55 +0000 (15:25 +0800)]
Merge pull request #13810 from yuyuyu101/wip-rdma-inflight

msg/async/rdma: destroy QueuePair if needed

Reviewed-by: Adir lev <adirl@mellanox.com>
8 years agoMerge pull request #13742 from liupan1111/wip-cleanup-journal
Kefu Chai [Tue, 7 Mar 2017 04:24:50 +0000 (12:24 +0800)]
Merge pull request #13742 from liupan1111/wip-cleanup-journal

os/filestore: use existing variable for same func.

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12177 from kylinstorage/wip-remove-unneeded-loop
Kefu Chai [Tue, 7 Mar 2017 04:21:32 +0000 (12:21 +0800)]
Merge pull request #12177 from kylinstorage/wip-remove-unneeded-loop

os/filestore/FileStore.cc: remove unneeded loop

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13741 from rzarzynski/wip-bs-fastcrc32-in-rocks
Kefu Chai [Tue, 7 Mar 2017 04:06:22 +0000 (12:06 +0800)]
Merge pull request #13741 from rzarzynski/wip-bs-fastcrc32-in-rocks

os/bluestore: enable SSE-assisted CRC32 calculations in RocksDB

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13768 from tchaikov/wip-clang-fixes
Kefu Chai [Tue, 7 Mar 2017 04:05:36 +0000 (12:05 +0800)]
Merge pull request #13768 from tchaikov/wip-clang-fixes

librados, osd: clang fixes

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #13794 from liewegas/wip-clog-newlines
Kefu Chai [Tue, 7 Mar 2017 04:04:52 +0000 (12:04 +0800)]
Merge pull request #13794 from liewegas/wip-clog-newlines

common: remove \n on clog messages

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #13796 from liewegas/wip-debian-base-dbg
Kefu Chai [Tue, 7 Mar 2017 04:04:25 +0000 (12:04 +0800)]
Merge pull request #13796 from liewegas/wip-debian-base-dbg

debian/control: add ceph-base-dbg

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/suites/upgrade/jewel-x/parallel: upgrade mons before osds 13734/head
Sage Weil [Tue, 7 Mar 2017 00:01:12 +0000 (19:01 -0500)]
qa/suites/upgrade/jewel-x/parallel: upgrade mons before osds

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/upgrade/jewel-x/parallel: expand workload matrix
Sage Weil [Mon, 6 Mar 2017 20:16:13 +0000 (15:16 -0500)]
qa/suites/upgrade/jewel-x/parallel: expand workload matrix

These should run independently against a racing upgrade.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13799 from optimistyzy/36_1
Haomai Wang [Tue, 7 Mar 2017 01:48:28 +0000 (09:48 +0800)]
Merge pull request #13799 from optimistyzy/36_1

bluestore, NVMEDEVICE: Specify the max io completion in conf

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Pan Liu <liupan1111@gmail.com>