Commit Graph

67304 Commits

Author SHA1 Message Date
Sage Weil
34ab000053 Merge pull request #12505 from ceph/wip-jlayton-submount
client: set metadata["root"] from mount method when it's called with …

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
2016-12-19 21:18:19 -06:00
Sage Weil
73fa83866e Merge pull request #12570 from wjwithagen/patch-9
common/str_list.h: fix clang warning about std::move

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-12-19 21:17:19 -06:00
Sage Weil
f674fa24fb Merge pull request #12541 from liewegas/wip-bluestore-omap-flush
os/bluestore: include modified objects in flush list even if onode unchanged

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-12-19 21:15:37 -06:00
Sage Weil
c922404a03 qa/tasks/osd_backfill.py: wait for osd.[12] to start
...before sending a tell command.  Otherwise osd.2 might
start without 1, the io unblocks, and the tell fails
because osd.1 is still down.

Fixes: http://tracker.ceph.com/issues/18303
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-19 21:56:11 -05:00
Yunchuan Wen
c4fa36ad75 bluestore: avoid unnecessary copy with coll_t
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2016-12-20 09:52:30 +08:00
xie xingguo
47fe4d4f49 osd/OSDMap: drop redundant statements
calc_pg_rank() will do the same check inside.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-12-20 08:45:01 +08:00
xie xingguo
f7bf80041e common: make attempts of auth rotating configurable
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-12-20 08:45:01 +08:00
Orlando Moreno
d548d5a1f0 os/bluestore: allow multiple SPDK BlueStore OSD instances
Fixes: http://tracker.ceph.com/issues/16966

Signed-off-by: Orlando Moreno <orlando.moreno@intel.com>
2016-12-19 16:57:32 -07:00
Sage Weil
ec5ba4e8cf os/bluestore: preserve source collection cache during split
OSD split transactions look something like

 mkcoll new
 split old
 ...
 omap_rmkey_range old
 omap_setkeys old
 omap_setkeys new

The last part splits the log into two pieces.  The
problem is that the rmkey_range needs to wait on old
omap transactions to flush, and those are linked to the
old onode, and split clears the cache.  The result is
that we don't wait, rmkeyrange leaves some recent pg log
keys behind, and on OSD restart we get an error because
the object doesn't belong to the (old) collection.

Fix this by preserving objects in the old collection and
only clear out objects that are moving to the newly
split collections.  This will include the pgmeta object
that we care about.

(Note that we are one step closer to preserving the
cache contents across the split, but not quite there
yet: at this point we don't have all of the destination
collections.  A change in the ObjectStore interface is
probably needed to make that not be extremely awkward.)

Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-19 17:05:00 -05:00
Samuel Just
dc639fd9e5 Merge pull request #12571 from athanatos/wip-15943
osd: Fix map gaps again (bug 15943)

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-19 13:50:15 -08:00
vasukulkarni
c3afbbf30b Merge pull request #12572 from liewegas/wip-python-rados-test
qa/workunits: include extension for nose tests
2016-12-19 12:25:38 -08:00
Sage Weil
e82291342a Merge pull request #12568 from ifed01/wip-bluestore-onode-diet2
os/bluestore: reduce Onode in-memory footprint

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-19 14:15:03 -06:00
Sage Weil
3079dfc840 Merge pull request #12555 from socketpair/usr_bin
systemd: Fix startup of ceph-mgr on Debian 8

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-19 14:13:32 -06:00
Sage Weil
3649d1fc3c Merge pull request #12355 from chhabaramesh/bit_alloc_mempool
os/bluestore: simplified allocator interfaces to single apis

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-19 14:13:10 -06:00
Sage Weil
5666fd61d6 qa/workunits: include extension for nose tests
When you have a relative path you have to include the extension.
Weird.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-19 14:08:11 -05:00
jtlayton
20f936e841 Merge pull request #12412 from ceph/wip-jlayton-suid
client/mds: Clear setuid bits when writing or truncating
2016-12-19 13:26:27 -05:00
Willem Jan Withagen
d9acbf587b Clang/str_list.h: fix clang warning about std::move
/home/jenkins/workspace/ceph-master/src/include/str_list.h:99:10: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
  return std::move(str_vec);
         ^
/home/jenkins/workspace/ceph-master/src/include/str_list.h:99:10: note: remove std::move call here
  return std::move(str_vec);
         ^~~~~~~~~~       ~
1 warning generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-12-19 17:29:38 +01:00
Jianpeng Ma
9263613a63 rocksdb: add option: writable_file_max_buffer_size = 0
This reduce memcopy between rocksdb and bluefs.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
2016-12-19 23:45:02 +08:00
Jason Dillaman
2d982ae1df Merge pull request #12565 from trociny/wip-18247-fixup
common: fix clang compilation error

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-12-19 10:33:24 -05:00
Igor Fedotov
7d1f46b2b7 os/bluestore: remove duplicate sbid member for Blob, use one from shared_blob member
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-12-19 15:06:47 +00:00
Igor Fedotov
a6158d5cce os/bluestore: declare a member for Blob's cached bufferlist if explicitly enabled by CACHE_BLOG_BL macro only
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-12-19 15:06:39 +00:00
Igor Fedotov
b07f3ffebb os/bluestore: recalculate shared blob key instead of keeping it in memory
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-12-19 15:06:24 +00:00
Sage Weil
1b319f2e8f os/bluestore: include modified objects in flush list even if onode unchanged
We use the onode flush list so that we can ->flush() as
a barrier before doing any read/modify/write.  For
example, omap_rmkeyrange will flush before reading to
see what keys to erase in order to ensure that any
previous inserts are applied to the db and we see them
and remove them.

However, some omap operations don't update the onode
itself, which means write_onode() doesn't get called and
we aren't put on this list.

Add a note_modified_object() helper that can be called
instead of write_onode() for those cases.  That way we
get on the list and flush() works as expected.

We could have resolved this by just putting ourselves on
the dirty onode list, but in practice every OSD op is
writing omap keys to the pgmeta object and there is no
need to touch the onode key in this case, so doing so
would be a big regression.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-19 10:03:44 -05:00
Sage Weil
991141c34f Merge pull request #12548 from Liuchang0812/add-document-rgw
doc: explain rgw_fcgi_socket_backlog in rgw/config-ref.rst

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-19 08:44:27 -06:00
Sage Weil
071cdbe35f Merge pull request #12561 from kylinstorage/wip-fix-osdmaptool-zero
osdmaptool: fix divide by zero error

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-19 08:38:43 -06:00
Mykola Golub
8da0f348d3 Merge pull request #12497 from dillaman/wip-18243
journal: prevent repetitive error messages after being blacklisted

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-12-19 15:58:59 +02:00
Yunchuan Wen
838339d71f ECBackend: cleanup for unnecessary copy with pg_stat_t
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2016-12-19 17:12:38 +08:00
Ramesh Chander
9ce95bb1fd remove unused wait argument and related function versions
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-19 00:17:40 -08:00
Mykola Golub
bd584fe797 common: fix clang compilation
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-12-19 08:44:22 +02:00
Yunchuan Wen
45a0286e86 osdmaptool: fix divide by zero error
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
2016-12-19 12:56:37 +08:00
Sage Weil
cf39776a2d mon/OSDMonitor: remove obsolete pg[p]_num vs creating pgs restriction
This dates back to the original split code circa
78ddc62b35 (v0.2) when the creating pg
code was a special case.  These days we rely on the generic peering code,
which has no issues with splits.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-18 23:12:20 -05:00
Sage Weil
a2ad2d91ff mon/OSDMonitor: do not use PGMap to check pg existence
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-18 23:12:20 -05:00
Sage Weil
cbebe7db01 mon: drop support for "classic" (dumpling) mons
Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-18 23:12:20 -05:00
Sage Weil
904913b37f mon/OSDMonitor: remove 'osd thrash' command
This is a dev hack to generate a bunch of bogus osdmaps.  The maps are
all screwed up anyway (e.g., invalid addrs) and this is minimally useful.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-12-18 23:11:56 -05:00
Haomai Wang
e293d40e6a Merge pull request #12558 from Adirl/fix_bad_len_msg
msg/async/rdma: fix bad message that went to the user

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-12-19 09:59:51 +08:00
Ramesh Chander
f1e9aee716 zone block offset bug fix and related unit test case
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>

zone block offset related test case

Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-18 10:40:40 -08:00
Ramesh Chander
86b6ca3dc2 allocat_extent api rename and tests for new api
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-18 10:40:40 -08:00
Ramesh Chander
78b490252d remove cont alloc alloc_blocks calls from allocator code and test
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-18 10:40:40 -08:00
Ramesh Chander
2942bc627a consolidate allocator calls to single alloc_extent api
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-18 10:40:40 -08:00
Ramesh Chander
8ed5ec0277 allocator min_alloc arguments in call stack and tests
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-18 10:40:40 -08:00
Ramesh Chander
f9338b1a1f allocator alloc_extents min_alloc
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-18 10:40:40 -08:00
Ramesh Chander
6ad9814b93 os/bluestore:Bluefs balance should use alloc_extent api with bluefs_alloc_size
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-12-18 10:40:40 -08:00
Avner BenHanoch
daca8f6873 msg/async/rdma: fix bad message that went to the user
1. the printed value of "bad length" was incorrect, because 'r' was changed before the log line.
2. log appeared to user as error even though everything was calm; hence, reducing its severity

issue: 914840

Change-Id: I41520d27fc53fbbe07b61dd915e16448b87769d5
Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
2016-12-18 16:52:12 +00:00
Mark Korenberg
2ccd02a838 Fix startup of Ceph cluster manager daemon on Debian 8
Signed-off-by: Mark Korenberg <socketpair@gmail.com>
2016-12-18 18:07:21 +05:00
Loic Dachary
049641df2e Merge pull request #12531 from dachary/wip-18291-bluestore
ceph-disk: do not create bluestore wal/db partitions by default

Reviewed-by: Sage Weil <sage@redhat.com>
2016-12-18 09:59:23 +01:00
Loic Dachary
c83d030d30 ceph-disk: do not create bluestore wal/db partitions by default
Fixes: http://tracker.ceph.com/issues/18291

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-12-17 20:55:36 +01:00
liuchang0812
6fc0e59a1c doc: explain rgw_fcgi_socket_backlog in rgw/config-ref.rst
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2016-12-17 22:49:42 +08:00
Xie Xingguo
a30d90cdc6 Merge pull request #12458 from Liuchang0812/add-more-log-for-network-error
osd: enhance logging for osd network error

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-12-17 12:54:32 +08:00
liuchang0812
7ceadba31d ods: enhance logging for osd network error
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2016-12-17 12:07:36 +08:00
huangjun
72b97ee532 osdc/ObjectCacher: use state instead of get_state()
Signed-off-by: huangjun <hjwsm1989@gmail.com>
2016-12-17 10:21:16 +08:00