]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agolibrbd: remove unused local variable 12388/head
Yunchuan Wen [Thu, 8 Dec 2016 09:05:17 +0000 (17:05 +0800)]
librbd: remove unused local variable

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
8 years agoMerge pull request #11369 from theanalyst/kraken-release-notes
Sage Weil [Tue, 6 Dec 2016 23:39:46 +0000 (18:39 -0500)]
Merge pull request #11369 from theanalyst/kraken-release-notes

doc: release notes for 11.0.2

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agodoc: add salient features of kraken 11.1.0 rc 11369/head
Abhishek Lekshmanan [Tue, 6 Dec 2016 23:17:20 +0000 (00:17 +0100)]
doc: add salient features of kraken 11.1.0 rc

Reordering to add Sage's release note comments on top

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: add release notes for 11.1.0
Abhishek Lekshmanan [Tue, 6 Dec 2016 09:06:07 +0000 (10:06 +0100)]
doc: add release notes for 11.1.0

Release notes as of 7b1293e70db51f620210332bde1f83ade15bd9d3

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: bump release notes to 11.0.2
Abhishek Lekshmanan [Tue, 6 Dec 2016 12:10:15 +0000 (13:10 +0100)]
doc: bump release notes to 11.0.2

bumping release notes to 11.0.2 kraken and adding the single commit that
differs between the changes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: release notes for 11.0.1
Abhishek Lekshmanan [Fri, 7 Oct 2016 16:01:31 +0000 (18:01 +0200)]
doc: release notes for 11.0.1

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
8 years agoMerge pull request #12346 from theanalyst/doc/changelog/v10.2.4
Sage Weil [Tue, 6 Dec 2016 23:11:19 +0000 (18:11 -0500)]
Merge pull request #12346 from theanalyst/doc/changelog/v10.2.4

doc: adding changelog for v10.2.4

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: adding changelog for v10.2.4 12346/head
Abhishek Lekshmanan [Tue, 6 Dec 2016 23:06:52 +0000 (00:06 +0100)]
doc: adding changelog for v10.2.4

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #12328 from liewegas/wip-bluestore-flush
Sage Weil [Tue, 6 Dec 2016 22:27:24 +0000 (17:27 -0500)]
Merge pull request #12328 from liewegas/wip-bluestore-flush

os/bluestore: flush before enumerating omap values

8 years agoMerge pull request #12265 from liewegas/wip-bluestore-precondition
Sage Weil [Tue, 6 Dec 2016 22:27:10 +0000 (17:27 -0500)]
Merge pull request #12265 from liewegas/wip-bluestore-precondition

os/bluestore: drop old bluestore preconditioning; replace with wal preextension of file size

8 years agoMerge pull request #12281 from dachary/wip-17743-memstore
Sage Weil [Tue, 6 Dec 2016 22:21:57 +0000 (17:21 -0500)]
Merge pull request #12281 from dachary/wip-17743-memstore

tests: do not use memstore.test_temp_dir in two tests

Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #12298 from chhabaramesh/bit_alloc_mempool
Sage Weil [Tue, 6 Dec 2016 22:21:29 +0000 (17:21 -0500)]
Merge pull request #12298 from chhabaramesh/bit_alloc_mempool

os/bluestore: bitmap allocator dump functionality

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12338 from liewegas/wip-kraken-notes
Sage Weil [Tue, 6 Dec 2016 19:35:29 +0000 (14:35 -0500)]
Merge pull request #12338 from liewegas/wip-kraken-notes

doc/release-notes: kraken release notes (draft)

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
8 years agodoc/release-notes: kraken release notes (draft) 12338/head
Sage Weil [Tue, 6 Dec 2016 14:32:23 +0000 (09:32 -0500)]
doc/release-notes: kraken release notes (draft)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12340 from athanatos/wip-18127
Samuel Just [Tue, 6 Dec 2016 17:45:32 +0000 (09:45 -0800)]
Merge pull request #12340 from athanatos/wip-18127

osd/PGLog::proc_replica_log,merge_log: fix bound for last_update

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12339 from kylinstorage/wip-optimize-assert
Sage Weil [Tue, 6 Dec 2016 15:58:39 +0000 (10:58 -0500)]
Merge pull request #12339 from kylinstorage/wip-optimize-assert

msg/async: assert(0) -> ceph_abort()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12329 from ktdreyer/wip-doc-spelling
Casey Bodley [Tue, 6 Dec 2016 15:52:01 +0000 (10:52 -0500)]
Merge pull request #12329 from ktdreyer/wip-doc-spelling

doc: fix grammar/spelling in RGW sections

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agomsg/async/rdma/RDMAStack.cc: assert(0) -> ceph_abort() 12339/head
Li Wang [Tue, 6 Dec 2016 14:54:40 +0000 (14:54 +0000)]
msg/async/rdma/RDMAStack.cc: assert(0) -> ceph_abort()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agomsg/async/rdma/Infiniband.h: assert(0) -> ceph_abort()
Li Wang [Tue, 6 Dec 2016 14:52:22 +0000 (14:52 +0000)]
msg/async/rdma/Infiniband.h: assert(0) -> ceph_abort()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agomsg/async/rdma/Infiniband.cc: assert(0) -> ceph_abort()
Li Wang [Tue, 6 Dec 2016 14:50:07 +0000 (14:50 +0000)]
msg/async/rdma/Infiniband.cc: assert(0) -> ceph_abort()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agoMerge pull request #12125 from ukernel/wip-17990
John Spray [Tue, 6 Dec 2016 12:18:38 +0000 (12:18 +0000)]
Merge pull request #12125 from ukernel/wip-17990

mds: properly commit new dirfrag before splitting it

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #12334 from Adirl/fix_log_level
Haomai Wang [Tue, 6 Dec 2016 11:06:52 +0000 (19:06 +0800)]
Merge pull request #12334 from Adirl/fix_log_level

msg/async/rdma: change log level: 0 -> 1

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: change log level: 0 -> 1 12334/head
Avner BenHanoch [Tue, 6 Dec 2016 09:30:18 +0000 (09:30 +0000)]
msg/async/rdma: change log level: 0 -> 1

this will avoid irrelevant messages to console in case of "ceph -s"

issue: 914828

Change-Id: Ia220c62ff7a9f80fbe6068e1dd9d4a9a05ed01db
Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
8 years agomsg/async/dpdk/TCP.h: assert(0) -> ceph_abort()
Li Wang [Tue, 6 Dec 2016 08:35:33 +0000 (08:35 +0000)]
msg/async/dpdk/TCP.h: assert(0) -> ceph_abort()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agomsg/async/dpdk/DPDKStack.cc: assert(0) -> ceph_abort()
Li Wang [Tue, 6 Dec 2016 08:31:45 +0000 (08:31 +0000)]
msg/async/dpdk/DPDKStack.cc: assert(0) -> ceph_abort()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agomsg/async/dpdk/DPDK.cc: assert(0) -> ceph_abort()
Li Wang [Tue, 6 Dec 2016 08:29:34 +0000 (08:29 +0000)]
msg/async/dpdk/DPDK.cc: assert(0) -> ceph_abort()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agocommon/map_cacher.hpp: assert(0) -> ceph_abort()
Li Wang [Tue, 6 Dec 2016 08:28:18 +0000 (08:28 +0000)]
common/map_cacher.hpp: assert(0) -> ceph_abort()

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agotests: do not use memstore.test_temp_dir in two tests 12281/head
Loic Dachary [Fri, 2 Dec 2016 15:58:29 +0000 (16:58 +0100)]
tests: do not use memstore.test_temp_dir in two tests

unittest_memstore_clone and test_objectstore_memstore.sh both
use memstore.test_temp_dir and when running in parallel they
interfere with each other.

src/test/objectstore/store_test_fixture.h will create

   memstore.test_temp_dir

when running via src/test/test_objectstore_memstore.sh

src/test/objectstore/test_memstore_clone.cc will also create

   memstore.test_temp_dir

when running via unittest_memstore_clone.

Fixes: http://tracker.ceph.com/issues/17743
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #9837 from zhjwpku/typos
Kefu Chai [Tue, 6 Dec 2016 01:04:59 +0000 (09:04 +0800)]
Merge pull request #9837 from zhjwpku/typos

doc: network-protocol typos

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoPGLog::proc_replica_log,merge_log: fix bound for last_update 12340/head
Samuel Just [Mon, 5 Dec 2016 20:08:14 +0000 (12:08 -0800)]
PGLog::proc_replica_log,merge_log: fix bound for last_update

If olog.tail > log.tail, olog.tail is also a bound on last_update.
See the changed comment in the commit for details.

Also adds unit tests.

Fixes: http://tracker.ceph.com/issues/18127
Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12053 from theanalyst/v10.2.4/release-notes
Sage Weil [Mon, 5 Dec 2016 18:59:57 +0000 (13:59 -0500)]
Merge pull request #12053 from theanalyst/v10.2.4/release-notes

doc: release notes for 10.2.4

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agodoc: fix capitalization in RGW admin ops 12329/head
Ken Dreyer [Thu, 15 Sep 2016 18:07:49 +0000 (12:07 -0600)]
doc: fix capitalization in RGW admin ops

lower-case second word in this sentence.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
8 years agodoc: fix spelling in RGW s3 compliance
Ken Dreyer [Thu, 15 Sep 2016 18:04:18 +0000 (12:04 -0600)]
doc: fix spelling in RGW s3 compliance

mentionned -> mentioned

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
8 years agoos/bluestore: flush before enumerating omap values 12328/head
Sage Weil [Mon, 5 Dec 2016 18:44:32 +0000 (13:44 -0500)]
os/bluestore: flush before enumerating omap values

For a few update ops we enumerate omap keys (to remove them).
Make sure we flush the pipeline before doing so or else we may
lose keys inserted by a previous transaction that hasn't yet
committed.

Fixes: http://tracker.ceph.com/issues/18140
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/BlueFS: pre-extend file size for WAL (.log) files 12265/head
Sage Weil [Thu, 1 Dec 2016 19:36:37 +0000 (14:36 -0500)]
os/bluestore/BlueFS: pre-extend file size for WAL (.log) files

When rocksdb has log recycling on (this is required!), it will
do robust checksums on log records and change playback behavior
to tolerate trailing garbage in the log file.  This normally
allows it to overwrite previous log files, but it can also let
us overwrite arbitrary garbage on the device.

If we allocate some new space for a .log file (already indicated
by the WRITER_WAL hint), extend the size immediately so that each
subsequent append doesn't have to (unless/until we do another
allocation).

This is safe as long as rocksdb recycling is enabled (which it is
by default).

This is faster because we don't have to flush the bluefs log on
every log append during the period after startup before rocksdb
starts recycling log files.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: remove kludgey rocksdb preconditioning
Sage Weil [Thu, 1 Dec 2016 18:53:46 +0000 (13:53 -0500)]
os/bluestore: remove kludgey rocksdb preconditioning

This doesn't work, it's slow, and it's hacky.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12275 from xiexingguo/xxg-wip-bluestore-1202
Sage Weil [Mon, 5 Dec 2016 16:47:02 +0000 (11:47 -0500)]
Merge pull request #12275 from xiexingguo/xxg-wip-bluestore-1202

os/bluestore: dedup omap_head, reuse nid instead

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12305 from athanatos/wip-ec-rbd-fixes
Sage Weil [Mon, 5 Dec 2016 16:45:07 +0000 (11:45 -0500)]
Merge pull request #12305 from athanatos/wip-ec-rbd-fixes

osd: fixes to make rbd on ec work

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12306 from athanatos/wip-ec-scrub
Sage Weil [Mon, 5 Dec 2016 16:32:11 +0000 (11:32 -0500)]
Merge pull request #12306 from athanatos/wip-ec-scrub

osd: fix ec scrub errors

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12212 from trociny/wip-16991
Jason Dillaman [Mon, 5 Dec 2016 16:20:03 +0000 (11:20 -0500)]
Merge pull request #12212 from trociny/wip-16991

rbd-mirror: recovering after split-brain

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12307 from athanatos/wip-18042
Sage Weil [Mon, 5 Dec 2016 16:18:47 +0000 (11:18 -0500)]
Merge pull request #12307 from athanatos/wip-18042

msg/simple/Pipe::stop_and_wait: unlock pipe_lock for stop_fast_dispatching()

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agobitmap allocator dump functionality 12298/head
Ramesh Chander [Sun, 4 Dec 2016 06:24:31 +0000 (22:24 -0800)]
bitmap allocator dump functionality

Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
8 years agodoc: release notes: add the last 5 prs making it in 10.2.4 12053/head
Abhishek Lekshmanan [Mon, 5 Dec 2016 14:14:12 +0000 (15:14 +0100)]
doc: release notes: add the last 5 prs making it in 10.2.4

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #12310 from wjin/change_info
Loic Dachary [Mon, 5 Dec 2016 14:03:03 +0000 (15:03 +0100)]
Merge pull request #12310 from wjin/change_info

mailmap: change personal info

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12318 from tchaikov/wip-18128
Loic Dachary [Mon, 5 Dec 2016 13:47:59 +0000 (14:47 +0100)]
Merge pull request #12318 from tchaikov/wip-18128

test/ceph_crypto: do not read ceph.conf in global_init()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12317 from xiexingguo/xxg-wip-dedup-perfnotes
Kefu Chai [Mon, 5 Dec 2016 12:28:22 +0000 (20:28 +0800)]
Merge pull request #12317 from xiexingguo/xxg-wip-dedup-perfnotes

doc/dev/perf: fix dittography

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest/ceph_crypto: do not read ceph.conf in global_init() 12318/head
Kefu Chai [Mon, 5 Dec 2016 12:23:21 +0000 (20:23 +0800)]
test/ceph_crypto: do not read ceph.conf in global_init()

ForkDeathTest.MD5 expect an empty output while global_init() complains
if ceph.conf is missing if 0 is passed in as the `flags`. this test
passes if ceph.conf is in current working directory, but jenkins does
not prepare this file for this test.

Fixes: http://tracker.ceph.com/issues/18128
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: move empty-check of osr-queue out of loop 12275/head
xie xingguo [Mon, 5 Dec 2016 11:56:14 +0000 (19:56 +0800)]
os/bluestore: move empty-check of osr-queue out of loop

which is optimal.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agodoc/dev/perf: fix dittography 12317/head
xie xingguo [Mon, 5 Dec 2016 11:10:08 +0000 (19:10 +0800)]
doc/dev/perf: fix dittography

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #12311 from wjin/fix
Kefu Chai [Mon, 5 Dec 2016 05:33:23 +0000 (13:33 +0800)]
Merge pull request #12311 from wjin/fix

src/common: remove nonused config option

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: kill deprecated get_preferred_csum_order() method
xie xingguo [Mon, 5 Dec 2016 01:47:58 +0000 (09:47 +0800)]
os/bluestore: kill deprecated get_preferred_csum_order() method

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: dedup omap_head, reuse nid instead
xie xingguo [Fri, 2 Dec 2016 06:24:24 +0000 (14:24 +0800)]
os/bluestore: dedup omap_head, reuse nid instead

This is faster and save us some memory as well as space.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #12260 from tchaikov/wip-dh-python
Kefu Chai [Mon, 5 Dec 2016 03:45:16 +0000 (11:45 +0800)]
Merge pull request #12260 from tchaikov/wip-dh-python

debian: apply dh_python to python-rgw also

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agomailmap: change personal info 12310/head
Wei Jin [Mon, 5 Dec 2016 02:30:32 +0000 (10:30 +0800)]
mailmap: change personal info

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
8 years agosrc/common: remove nonused config option 12311/head
Wei Jin [Mon, 5 Dec 2016 02:05:09 +0000 (10:05 +0800)]
src/common: remove nonused config option

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
8 years agoMerge pull request #12163 from ovh/wip-throttle-get-started-perf-counter
Sage Weil [Sun, 4 Dec 2016 15:11:19 +0000 (10:11 -0500)]
Merge pull request #12163 from ovh/wip-throttle-get-started-perf-counter

common: Add throttle_get_started perf counter

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12285 from liewegas/wip-bluestore-allocator
Sage Weil [Sun, 4 Dec 2016 15:11:01 +0000 (10:11 -0500)]
Merge pull request #12285 from liewegas/wip-bluestore-allocator

os/bluestore: use bitmap allocator for bluefs

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
8 years agoMerge pull request #9714 from wido/mirror-docs-fix
Loic Dachary [Sun, 4 Dec 2016 14:58:24 +0000 (15:58 +0100)]
Merge pull request #9714 from wido/mirror-docs-fix

doc: Small styling fix to mirror documentation

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12299 from Adirl/fix_max_values
Haomai Wang [Sun, 4 Dec 2016 14:55:52 +0000 (22:55 +0800)]
Merge pull request #12299 from Adirl/fix_max_values

msg/async/rdma: set correct value to memory manager

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async/rdma: set correct value to memory manager 12299/head
Adir Lev [Sun, 4 Dec 2016 11:30:12 +0000 (11:30 +0000)]
msg/async/rdma: set correct value to memory manager

set the correct max_send_wr and max_recv_wr
print log messages accordingly

Change-Id: I97a562bc994f14b87724fcf84baca4cdbf0f8e0d
Signed-off-by: Adir Lev <adirl@mellanox.com>
8 years agoMerge pull request #12270 from yuyuyu101/wip-rdma-polling
Haomai Wang [Sun, 4 Dec 2016 12:24:35 +0000 (20:24 +0800)]
Merge pull request #12270 from yuyuyu101/wip-rdma-polling

msg/async/rdma: event polling thread can block on event

Reviewed-by: Adir lev <adirl@mellanox.com>
8 years agoMerge pull request #11987 from Liuchang0812/patch-2
Kefu Chai [Sun, 4 Dec 2016 12:21:56 +0000 (20:21 +0800)]
Merge pull request #11987 from Liuchang0812/patch-2

doc: Update layout.rst, move commands to CODE block

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agoReplicatedPG: add return value to RepGather 12305/head
Samuel Just [Sun, 4 Dec 2016 02:12:31 +0000 (18:12 -0800)]
ReplicatedPG: add return value to RepGather

Now that repops can represent an error, we need to remember
the error code so that we can reply to waiting_for_* messages
with the right value.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoReplicatedPG::record_write_error: send only the flags requested by the op
Samuel Just [Sun, 4 Dec 2016 02:08:36 +0000 (18:08 -0800)]
ReplicatedPG::record_write_error: send only the flags requested by the op

This isn't really important, but it's nice to be consistent with
OSD::reply_op_error.  Yet another reason to do away with the ack flag.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12297 from SUSE/wip-18134
Loic Dachary [Sun, 4 Dec 2016 00:34:58 +0000 (01:34 +0100)]
Merge pull request #12297 from SUSE/wip-18134

tests: check hostname --fqdn sanity before running make check

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoReplicatedPG: add debugging to EINVAL returns
Samuel Just [Sat, 3 Dec 2016 19:48:44 +0000 (11:48 -0800)]
ReplicatedPG: add debugging to EINVAL returns

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoReplicatedPG: allow repops to apply with commit
Samuel Just [Sat, 3 Dec 2016 00:33:00 +0000 (16:33 -0800)]
ReplicatedPG: allow repops to apply with commit

Up to now, the repop machinery depended on all repops commiting and
applying in order.  For MOSDPGUpdateLogMissing operations, however,
we don't really want to send two messages in the ECBackend case.
Instead, just allow those repops to skip the applied stage and be
completed in order once the repops ahead of them finish.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoReplicatedPG: always send the ack with the commit
Samuel Just [Sat, 3 Dec 2016 00:15:16 +0000 (16:15 -0800)]
ReplicatedPG: always send the ack with the commit

This was always a pretty silly concept and it has gotten in
the way of something else.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoReplicatedPG::submit_log_entries: fill in repop->v
Samuel Just [Thu, 1 Dec 2016 23:11:51 +0000 (15:11 -0800)]
ReplicatedPG::submit_log_entries: fill in repop->v

This way, we can deal with waiting_for_commit appropriately.
Also, add more debugging to new_repop and already_*.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoOSD::init_op_flags: don't consider PING to be a write
Samuel Just [Sun, 4 Dec 2016 00:05:08 +0000 (16:05 -0800)]
OSD::init_op_flags: don't consider PING to be a write

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agotests: check hostname --fqdn sanity before running make check 12297/head
Nathan Cutler [Sat, 3 Dec 2016 22:37:08 +0000 (23:37 +0100)]
tests: check hostname --fqdn sanity before running make check

Fixes: http://tracker.ceph.com/issues/18134
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agorbd-mirror: make 'rbd mirror image resync' work after split-brain 12212/head
Mykola Golub [Tue, 29 Nov 2016 09:44:05 +0000 (11:44 +0200)]
rbd-mirror: make 'rbd mirror image resync' work after split-brain

Fixes: http://tracker.ceph.com/issues/18051
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror: split-brain issues should be clearly visible in mirror status
Mykola Golub [Tue, 29 Nov 2016 09:40:14 +0000 (11:40 +0200)]
rbd-mirror: split-brain issues should be clearly visible in mirror status

Fixed: http://tracker.ceph.com/issues/16991
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoqa/workunits/rbd: test_status_in_pool_dir: explicitly check grep return value
Mykola Golub [Fri, 2 Dec 2016 08:10:52 +0000 (10:10 +0200)]
qa/workunits/rbd: test_status_in_pool_dir: explicitly check grep return value

Otherwise, it does not work as supposed to work in statements like below:

 set -e
 test_status_in_pool_dir ... && ...

(e.g. in wait_for_status_in_pool_dir)

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12282 from liewegas/wip-bluestore-dump
Varada Raja Kumar Kari [Sat, 3 Dec 2016 02:39:57 +0000 (08:09 +0530)]
Merge pull request #12282 from liewegas/wip-bluestore-dump

os/bluestore: clean up Allocator::dump

8 years agoMerge pull request #12287 from liewegas/wip-store-kv-stats
Varada Raja Kumar Kari [Sat, 3 Dec 2016 02:29:13 +0000 (07:59 +0530)]
Merge pull request #12287 from liewegas/wip-store-kv-stats

kv: dump rocksdb stats

8 years agoReplicatedPG::do_op: wait_for_commit even for results < 0 entries
Samuel Just [Fri, 2 Dec 2016 19:06:50 +0000 (11:06 -0800)]
ReplicatedPG::do_op: wait_for_commit even for results < 0 entries

This way, the replies come back in order and we don't expose
uncommitted results.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoECBackend: ops must consistently use or not use the cache
Samuel Just [Thu, 1 Dec 2016 23:33:31 +0000 (15:33 -0800)]
ECBackend: ops must consistently use or not use the cache

If the state is flipped, ops already in the pipeline need to
continue to maintain it.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoECBackend::try_state_to_reads: fix debug spacing
Samuel Just [Thu, 1 Dec 2016 23:25:28 +0000 (15:25 -0800)]
ECBackend::try_state_to_reads: fix debug spacing

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoECTransaction::get_write_plan: don't create empty to_read entries 12306/head
Samuel Just [Wed, 30 Nov 2016 18:46:00 +0000 (10:46 -0800)]
ECTransaction::get_write_plan: don't create empty to_read entries

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoECTransaction: fix projected_size for delete->create in get_write_plan
Samuel Just [Tue, 29 Nov 2016 23:11:57 +0000 (15:11 -0800)]
ECTransaction: fix projected_size for delete->create in get_write_plan

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoECBackend::try_state_to_reads: assert that rmw ops require hacky_overwrites enabled
Samuel Just [Tue, 29 Nov 2016 22:48:10 +0000 (14:48 -0800)]
ECBackend::try_state_to_reads: assert that rmw ops require hacky_overwrites enabled

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoReplicatedPG::_scrub_finish: check stats for ec overwrites pools
Samuel Just [Tue, 29 Nov 2016 21:59:10 +0000 (13:59 -0800)]
ReplicatedPG::_scrub_finish: check stats for ec overwrites pools

This should work fine now that we are doing an update-in-place
with rollback information off to the side.

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoReplicatedPG: merge apply_ctx_scrub_stats into apply_stats
Samuel Just [Tue, 29 Nov 2016 21:56:06 +0000 (13:56 -0800)]
ReplicatedPG: merge apply_ctx_scrub_stats into apply_stats

The only way the two aren't called essentially atomically is when the
ECBackend needs to delay a write for rmw.  In such a case, we actually
want to delay the scrub_cstat application as well since otherwise, we'd
have to flush the backend before settling up at the end of scrub.

Perhaps this should be a separate function to distinguish between the
replica+primary info update and the primary scrub_cstat update, but that
seems more complicated than it's really worth.

Fixes: http://tracker.ceph.com/issues/17999
Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12284 from ceph/wip-cmake-args
Dan Mick [Fri, 2 Dec 2016 21:39:53 +0000 (13:39 -0800)]
Merge pull request #12284 from ceph/wip-cmake-args

build: dump env during build

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoMerge pull request #12224 from yehudasa/wip-rgw-list-all
Matt Benjamin [Fri, 2 Dec 2016 20:48:02 +0000 (15:48 -0500)]
Merge pull request #12224 from yehudasa/wip-rgw-list-all

rgw/rgw_rados: do not omap_getvals with (u64)-1 max (updated)
also approve, passed teuthology (many false positives in several classes)

8 years agoMerge pull request #12187 from Jing-Scott/dev/slave-master-sync-info
Casey Bodley [Fri, 2 Dec 2016 20:13:32 +0000 (15:13 -0500)]
Merge pull request #12187 from Jing-Scott/dev/slave-master-sync-info

rgw: metadata sync info should be shown at master zone of slave zoneg…

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoos/bluestore: dump kv stats 12287/head
Jianpeng Ma [Fri, 2 Dec 2016 18:20:34 +0000 (13:20 -0500)]
os/bluestore: dump kv stats

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: dump kv stats for ObjectStores (if any)
Jianpeng Ma [Fri, 2 Dec 2016 18:20:20 +0000 (13:20 -0500)]
osd: dump kv stats for ObjectStores (if any)

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
8 years agokv/RocksDBStore: dump extended stats
Varada Kari [Fri, 2 Dec 2016 18:19:48 +0000 (13:19 -0500)]
kv/RocksDBStore: dump extended stats

Signed-off-by: Varada Kari <varada.kari@sandisk.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
8 years agodebian/rules: dump env during build 12284/head
Sage Weil [Fri, 2 Dec 2016 19:05:20 +0000 (14:05 -0500)]
debian/rules: dump env during build

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph.spec: dump env during build
Sage Weil [Thu, 1 Dec 2016 17:08:20 +0000 (12:08 -0500)]
ceph.spec: dump env during build

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agokv: make kvdb can print itself statistics.
Jianpeng Ma [Fri, 2 Dec 2016 18:19:16 +0000 (13:19 -0500)]
kv: make kvdb can print itself statistics.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
8 years agoMerge pull request #12245 from ifed01/wip-fix-global-init-refcount
Casey Bodley [Fri, 2 Dec 2016 17:14:39 +0000 (12:14 -0500)]
Merge pull request #12245 from ifed01/wip-fix-global-init-refcount

test/fio: fix global CephContext life cycle

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12241 from dachary/wip-17889-systemd-order
Loic Dachary [Fri, 2 Dec 2016 17:12:11 +0000 (18:12 +0100)]
Merge pull request #12241 from dachary/wip-17889-systemd-order

ceph-disk: enable --runtime ceph-osd systemd units

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
8 years agoos/bluestore/BlueFS: default to bitmap allocator 12285/head
Sage Weil [Fri, 2 Dec 2016 17:04:49 +0000 (12:04 -0500)]
os/bluestore/BlueFS: default to bitmap allocator

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: dump allocator state on allocation failure 12282/head
Sage Weil [Fri, 2 Dec 2016 16:52:02 +0000 (11:52 -0500)]
os/bluestore: dump allocator state on allocation failure

This is probably noisy for an *actual* ENOSPC, but the OSD should
actually prevent those from happening in general, and we are
very interested in fixing spurious allocation failures due to
allocator problems.  See http://tracker.ceph.com/issues/18054

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12075 from ceph/wip-rgw-zonegroup-config
Yehuda Sadeh [Fri, 2 Dec 2016 16:10:58 +0000 (08:10 -0800)]
Merge pull request #12075 from ceph/wip-rgw-zonegroup-config

rgw: fix for unsafe change of rgw_zonegroup

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #12280 from trociny/wip-17127
Jason Dillaman [Fri, 2 Dec 2016 16:04:36 +0000 (11:04 -0500)]
Merge pull request #12280 from trociny/wip-17127

rbd-mirror: set SEQUENTIAL and NOCACHE advise flags on image sync

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoos/bluestore: dump allocator state at lowest debug level
Sage Weil [Fri, 2 Dec 2016 16:01:08 +0000 (11:01 -0500)]
os/bluestore: dump allocator state at lowest debug level

Signed-off-by: Sage Weil <sage@redhat.com>