Commit Graph

45811 Commits

Author SHA1 Message Date
Jason Dillaman
6bd8c0a6ae journal: move rados_ctx_callback to utils namespace
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:41 -05:00
Jason Dillaman
7233b8b212 tests: initial unit tests for new generic journal library
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:41 -05:00
Jason Dillaman
adfc3c71b9 test/encoding/types.h: add journal::Entry to types
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:41 -05:00
Jason Dillaman
debe17224f journal: new generic journal implementation
The initial use-case for this journal is for librbd and its mirroring
feature. This journal is different from the current MDS journal in that
it organizes journal entries across journal objects w/o striping
individual entries.  It also allows multiple clients to read and write
from a single journal concurrently.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:41 -05:00
Jason Dillaman
c11d71c7a6 librados_test_stub: added support for append op
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
Jason Dillaman
8270170f60 librados_test_stub: add support for new aio_notify API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
Jason Dillaman
312d4e25d7 tests: new test for librados AIO notify API
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
Jason Dillaman
c9b873ac3d librados: new AIO version of notify API
Allow watch/notify notifications to be sent asynchronously so
that they can be safely sent from a librados op callback.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
Jason Dillaman
8cee9a27f9 test/encoding/types.h: add cls::journal types
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
Jason Dillaman
050763f712 tests: new cls_journal_client test cases
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
Jason Dillaman
0f8d722058 cls_journal_client: initial implementation of the cls journal client library
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
Jason Dillaman
dc19d57c99 cls_journal: initial implementation of journal class methods
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 20:42:40 -05:00
xinxin shu
33aabf27cc skip copyup if write is write_full
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2015-11-06 09:02:06 +08:00
xinxin shu
40dcfe2f83 optimize clone write path if object-map is enabled
Fixes : #13500

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2015-11-06 09:02:00 +08:00
Jason Dillaman
8451522151 tests: additional updates to cli/rbd cram test for updated CLI help
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:54:10 -05:00
Jason Dillaman
610ddc1698 rbd: add support for new 'snap rename' command
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:49:31 -05:00
Jason Dillaman
a3b8e2d676 rbd: additional common Ceph command-line arguments
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:49:31 -05:00
Jason Dillaman
b2f8363d02 rbd: don't print command help on error
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:49:00 -05:00
Jason Dillaman
7ef01dcdef tests: update cli/rbd cram tests for refactored rbd
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:12:42 -05:00
Jason Dillaman
b838ed11bb qa/workunits/rbd: fixed incorrect stripe settings
The rbd merge-diff tool does not support fancy striped
image exports.  Corrected the test to reflect this fact.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:12:42 -05:00
Jason Dillaman
f955ee5c33 tests: fixed deprecated option in run-rbd-tests
The --format support for specifying either the image format
or display format has been removed.  The test now uses the
correct --image-format option.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:12:42 -05:00
Jason Dillaman
9652721a6a rbd: strictly enforce all command-line options
All config keys are now supported via the CLI, so boost can
enforce all provided options.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:12:41 -05:00
Jason Dillaman
038ed5233d common: added getter for retrieving all configuration keys
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:12:41 -05:00
Jason Dillaman
1b9661e265 rbd: switched rbd CLI over to refactored codebase
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:12:41 -05:00
Jason Dillaman
c7f71d14a5 rbd: migrated existing command logic to new namespaces
No logic changes were introduced during the migration, only
syntax changes were necessary.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:11:53 -05:00
Jason Dillaman
fa4e00f8c8 rbd: stub versions of all existing CLI commands
All existing CLI command processing has been stubbed out using the
new self-registering command implementation.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:11:53 -05:00
Jason Dillaman
c4b219ab41 configure: check for boost regex library support
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:11:53 -05:00
Jason Dillaman
77937ed441 rbd: support libraries for switching CLI processing to boost
Added new classes for registering CLI commands and associated
arguments and dynamically generating help messages.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:11:53 -05:00
Jason Dillaman
ba39d331e8 rbd: move rbd to tools/rbd subdirectory
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:11:53 -05:00
Jason Dillaman
2c968db0f2 Merge pull request #5645 from xinxinsh/wip-snap-rename
implement snapshot rename

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 16:09:40 -05:00
Boris Ranto
c0980af3c7 rbdmap: Move do_map and do_unmap shell functions to rbdmap script
This patch creates rbdmap shell script that is called from init-rbdmap
init script. The patch also renames src/rbdmap configuration file to
src/etc-rbdmap so that rbdmap shell script can be installed via build
system directly. Finally, the patch accomodates these changes in spec
file and build system.

Fixes: #13374
Signed-off-by: Boris Ranto <branto@redhat.com>
2015-11-05 21:04:50 +01:00
Haomai Wang
88e0b2c3a0 AsyncConnection: Let receiver ack message ASAP
Currently dispatchers may exists logic requires ack message ASAP in order to
avoid sender resend messages when socket error.

Fix #136666
Signed-off-by: Haomai Wang <haomai@xsky.com>
2015-11-06 02:24:09 +08:00
Jason Dillaman
c17a75a7e6 Merge pull request #5856 from runsisi/wip-misc-remove-dup-test
librbd: remove duplicate read_only test in librbd::async_flatten

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 12:25:49 -05:00
Jason Dillaman
72a9fb425f Merge pull request #6339 from xinxinsh/wip-13558
librbd : fix enable objectmap feature issue

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-11-05 10:34:53 -05:00
xiexingguo
508bd8771d librados: wrongly passed in argument for stat command
The first argument of io_ctx_impl->stat() requires an obj(of type object_t), but an oid(of type string) is directly passed in instead.
Fixes: #13703
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2015-11-05 22:59:00 +08:00
Kefu Chai
01e0a75890 Merge pull request #6445 from ceph/wip-init-rbdmap
Init rbdmap patchset.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-11-05 21:41:09 +08:00
Ning Yao
619d804866 FileStore::_check_replay_guard avoids double check on replaying and can_checkpoint()
Already checked in _check_replay_guard, avoid double check in the inner function _check_global_replay_guard

Signed-off-by: Ning Yao <zay11022@gmail.com>
2015-11-05 17:49:31 +08:00
Loic Dachary
920fc85e31 Merge pull request #6468 from cxwshawn/wip-mail-fix
modify member info in mailmap 

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-11-05 07:35:56 +01:00
Xiaowei Chen
c228bd2ddb [mailmap] add member info.
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
2015-11-04 20:54:56 -05:00
Sage Weil
3eccde9d9c Merge tag 'v9.2.0'
v9.2.0
2015-11-04 19:40:17 -05:00
xinxin shu
b0536ebab4 librbd : fix enable objectmap feature issue
Fixes: #13558

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2015-11-05 08:38:56 +08:00
Sage Weil
2ac35be431 doc/release-notes: edits from Nathan Cutler
Signed-off-by: Sage Weil <sage@redhat.com>
2015-11-04 16:37:53 -05:00
Sage Weil
6e87d23301 doc/release-notes: final infernalis notes
Signed-off-by: Sage Weil <sage@redhat.com>
2015-11-04 16:37:53 -05:00
Jason Dillaman
0d299c9566 Merge pull request #6334 from xinxinsh/wip-13533
rbd : fix clone isssue

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-11-04 14:39:43 -05:00
Yehuda Sadeh
c08344fb48 Merge pull request #6465 from oritwas/wip-13596
radosgw-admin: metadata list user should return an empty list when user pool is empty

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-11-04 10:40:19 -08:00
Orit Wasserman
78c5b9a2d1 radosgw-admin: metadata list user should return an empty list when pool is empty
Fixes: #13596

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2015-11-04 18:57:22 +01:00
Loic Dachary
e8fe4bc59c tests: concatenate test_rados_test_tool from src and qa
It is good for src/test/test_rados_tool.sh to be run by
rados/singleton/all/radostool.yaml because it contains a lot more tests
than qa/workunits/rados/test_rados_tool.sh

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-11-04 18:28:45 +01:00
Loic Dachary
e2a5ebb105 Merge pull request #6340 from joaquimrocha/rados_write_benchmark_new_options
Rados write benchmark new options

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-11-04 18:22:26 +01:00
Joaquim Rocha
da6825d499 test/test_rados_tool.sh: Add tests for the new bench's write options
Those are the combinations of --write-omap, --write-xattr and --write-object.

Signed-off-by: Joaquim Rocha <joaquim.rocha@cern.ch>
2015-11-04 13:57:42 +01:00
Joaquim Rocha
9259e6e0c9 tools/rados/rados.cc: Add options to choose the benchmark's write destination
Signed-off-by: Joaquim Rocha <joaquim.rocha@cern.ch>
2015-11-04 13:57:42 +01:00