Commit Graph

46539 Commits

Author SHA1 Message Date
Gregory Farnum
66de0e3215 Merge pull request #6567 from jcsp/wip-layout-restrict
mds: add 'p' flag in auth caps to control setting pool in layout

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-06 21:05:30 -08:00
Gregory Farnum
b1d5c48187 Merge pull request #6601 from jcsp/wip-13777-caps
mon: don't require OSD W for MRemoveSnaps

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-06 21:03:25 -08:00
Drunkard Zhang
593c1249d2 doc: rst style fix for pools document
Signed-off-by: Drunkard Zhang <gongfan193@gmail.com>
2015-12-07 10:45:03 +08:00
Sage Weil
e62954e07b deb,rpm: package buffer_fwd.h
Introduced by 206b8e2cc6.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-06 09:24:17 -05:00
Loic Dachary
a60a9c97e7 Merge pull request #6803 from dachary/wip-13975-systemd-flock
build/ops: systemd ceph-disk unit must not assume /bin/flock

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
2015-12-05 18:42:08 +01:00
Loic Dachary
59c7fa091d Merge pull request #6811 from smithfarm/wip-submitting-jewel
SubmittingPatches: there is no next; only jewel

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-05 18:11:53 +01:00
Nathan Cutler
1adf3063ac SubmittingPatches: there is no next; only jewel
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-05 17:20:50 +01:00
Loic Dachary
b0997bc5aa Merge pull request #6792 from smithfarm/wip-index-20151202
Wip index 20151202

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-05 02:36:26 +01:00
Josh Durgin
fb96b514bf Merge pull request #6795 from ceph/pybind-rados-exec
pybind: support ioctx:exec

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-04 17:31:30 -08:00
Pete Zaitcev
8160f9eb7d Add common/PluginRegistry.cc to CMakeLists.txt
Else this happens:

  [ 15%] Linking CXX executable ceph-authtool
  libcommon.a(ceph_context.cc.o): In function `CephContext::CephContext(unsigned int, int)':
  ceph_context.cc:(.text+0x2620): undefined reference to `ceph::PluginRegistry::PluginRegistry(CephContext*)'
  libcommon.a(ceph_context.cc.o): In function `CephContext::~CephContext()':
  ceph_context.cc:(.text+0x3db0): undefined reference to `ceph::PluginRegistry::~PluginRegistry()'
  collect2: error: ld returned 1 exit status
  src/CMakeFiles/ceph-authtool.dir/build.make:120: recipe for target 'src/ceph-authtool' failed
  make[2]: *** [src/ceph-authtool] Error 1
  CMakeFiles/Makefile2:331: recipe for target 'src/CMakeFiles/ceph-authtool.dir/all' failed

The ceph_context.cc is the only user of PluginRegistry at
present, so adding it without conditionals should be correct.

Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>
2015-12-04 16:24:08 -07:00
Nathan Cutler
c1daf4e6f8 doc/dev/index.rst: wholesale refactor
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-04 23:58:11 +01:00
Noah Watkins
a62b5ac986 pybind: support ioctx:exec
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-12-04 14:56:46 -08:00
Sage Weil
7f81728810 common/Makefile: ship common/event_socket.h
Broken in commit 5eb64dd324.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-12-04 16:09:11 -05:00
Loic Dachary
c8f7d44c93 build/ops: systemd ceph-disk unit must not assume /bin/flock
The flock command may be installed elsewhere, depending on the
system. Let the PATH search figure that out.

http://tracker.ceph.com/issues/13975 Fixes: #13975

Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-04 21:11:09 +01:00
Josh Durgin
73aab5e93e test: use sequential journal_tid for object cacher test
This matches the real usage by librbd.

Fixes: #13877
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 9331e031bd)
2015-12-04 11:11:20 -08:00
Dan Mick
014b8e25ea Merge pull request #6788 from dachary/wip-13878-ec-pool
test/librados/test.cc: clean up EC pools' crush rules too

Reviewed-by: Dan Mick <dmick@redhat.com>
2015-12-04 11:19:20 -07:00
Josh Durgin
9e07b8afdf Merge pull request #6665 from trociny/wip-librbd-journal
rbd: journal: configuration via conf, cli, api and some fixes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-04 09:20:03 -08:00
Josh Durgin
a5d3370bbd Merge pull request #6800 from dillaman/wip-13969
librbd: fix known test case race condition failures

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-04 09:13:51 -08:00
Jason Dillaman
6cbf128b94 tests: wait for mocked requests to complete
Fixes: #13969
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-04 10:39:15 -05:00
Sage Weil
b91cd9d495 Merge pull request #6641 from aclamk/wip-log-alloc-predictor
common: log: predict log message buffer allocation size

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-04 10:37:48 -05:00
Sage Weil
89435f21b9 Merge pull request #6642 from 0003ydlom/decode_reorder
osd: move newest decode version of MOSDOp and MOSDOpReply to the front

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-04 10:34:44 -05:00
Jason Dillaman
fde9f785cd librbd: do not complete AIO callbacks within caller's thread context
Avoid rare, racy issues when individual requests associated with an AIO
completion can complete prior to marking the completion as ready-to-fire.
Pre-calculate the expected number of individual requests to avoid the
potential re-entrant callback.

Fixes: #13969
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-04 10:25:24 -05:00
Sage Weil
375137bf8b Merge pull request #6696 from Ved-vampir/wip_common_plugin
common: add generic plugin infrastructure

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
2015-12-04 10:19:11 -05:00
Sage Weil
8d5e05a5cd Merge pull request #6779 from ceph/wip-librados-xattr
librados: avoid malloc(0) (which can return NULL on some platforms)

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-04 10:15:54 -05:00
Sage Weil
43268f20ba Merge pull request #6759 from liewegas/wip-bdev-probe
osd: make backend and block device code a bit more generic

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Varada Kari <varada.kari@sandisk.com>
2015-12-04 10:14:34 -05:00
Sage Weil
ff699d7dd0 Merge pull request #6686 from stiopaa1/namespace_buffer
common: use namespace instead of subclasses for buffer

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-04 10:13:47 -05:00
Sage Weil
7643ce9cfd Merge pull request #6535 from mslovy/wip-crc-cache-tracker
common: buffer: add cached_crc and cached_crc_adjust counts to perf dump

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-04 10:13:07 -05:00
Sage Weil
97e74a1d82 Merge pull request #6058 from guangyy/wip-pg-query
osd: dump number of missing objects for each peer with pg query

Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-04 10:10:19 -05:00
Sage Weil
c3e3ee05d8 Merge pull request #5953 from guangyy/wip-13121
osd: support pool level recovery_priority and recovery_op_priority

Reviewed-by: David Zafman <dzafman@redhat.com>
2015-12-04 10:09:13 -05:00
Sage Weil
673d852115 Merge pull request #5670 from david-z/master
osd: FileJournal: reduce locking scope in write_aio_bl

Reviewed-by: Haomai Wang <haomai@xsky.com>
2015-12-04 10:00:54 -05:00
Jason Dillaman
1fffb25e29 Merge pull request #6798 from trociny/fix-rbd_mirror-bool
librbd: include missing header for bool type

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-12-04 08:40:26 -05:00
Mykola Golub
32597cab43 librbd: include missing header for bool type
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 15:10:51 +02:00
Mykola Golub
5622d3ff7d rbd: alow to specify options for created journal
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Mykola Golub
47f561082f librbd: journal options on image create/clone/copy
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Mykola Golub
89c716ffcd librbd: output operator for image options
It is going to be used for diagnostic.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Mykola Golub
e72fc02cbd librbd: journal: mark entry committed after replay
After replying a journal entry we have to call committed(). Otherwise,
the entries remain with flag committed=false in JournalMetadata
m_pending_commit_tids forever, which prevents commit position update.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Mykola Golub
e8a584ffc1 rbd: add new journal rbd commands
Also, extend 'rbd info' to output journal spec if journaling is enabled.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:18:30 +02:00
Mykola Golub
7311185ace librbd: humanize ImageWatcher and Journal states in debug log
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:15:02 +02:00
Mykola Golub
bb10815ff0 librbd: add image pool ID to journal object names.
The data objects are named "journal_data.<pool id>.<image id>.<num>".
This is to avoid conflict when a journal objects pool is used for
several image pools.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:15:02 +02:00
Mykola Golub
61ad15c732 librbd: allow alternate pool for journal objects
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:15:02 +02:00
Mykola Golub
ebadfefaea librbd: debug: log journal metadata
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:15:02 +02:00
Mykola Golub
7248fb5ab9 librbd: new config options to tweak journal settings
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-12-04 13:15:02 +02:00
Josh Durgin
77131e0b73 Merge pull request #6129 from dillaman/wip-13292
RBD pool mirroring configuration API + CLI

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-04 00:16:03 -08:00
David Zafman
02a9a41f15 osd: Test osd_find_best_info_ignore_history_les config in another assert
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-12-03 17:33:18 -08:00
Sage Weil
9f18962a6d Merge pull request #6778 from liewegas/wip-13962
osd: call on_new_interval on newly split child PG

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-12-03 19:38:22 -05:00
Dan Mick
04b4795f81 test/librados/test.cc: clean up EC pools' crush rules too
SetUp was adding an erasure-coded pool, which automatically adds
a new crush rule named after the pool, but only removing the
pool.  Remove the crush rule as well.

http://tracker.ceph.com/issues/13878 Fixes: #13878

Signed-off-by: Dan Mick <dan.mick@redhat.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2015-12-04 01:08:38 +01:00
Loic Dachary
15a81bb712 Merge pull request #6780 from smithfarm/wip-index-20151201
doc/dev/index.rst: fix headings

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-03 22:40:17 +01:00
Yehuda Sadeh
46493d4eba Merge pull request #6786 from oritwas/wip-cmake-fix-radosgw
cmake: add rgw_basic_types.cc to librgw.a

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-03 09:41:50 -08:00
Yehuda Sadeh
0857da4c21 Merge pull request #6767 from oritwas/wip-13529-jewel
rgw: use smart pointer for C_Reinitwatch

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-12-03 09:31:59 -08:00
Nathan Cutler
6807b35a21 doc/dev/index.rst: fix links
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-03 18:11:37 +01:00