]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Jason Dillaman [Tue, 15 Mar 2016 14:58:08 +0000 (10:58 -0400)]
qa/workunits/rbd: disable deep-flatten during permissions testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 15 Mar 2016 14:57:48 +0000 (10:57 -0400)]
rbd: snap list should open image as read-only
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Loic Dachary [Tue, 15 Mar 2016 13:25:38 +0000 (14:25 +0100)]
Merge pull request #8116 from SUSE/wip-docdev-nuke
doc/dev: add section on interrupting a running suite
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Nathan Cutler [Tue, 15 Mar 2016 13:10:42 +0000 (14:10 +0100)]
doc/dev: add section on interrupting a running suite
This commit adds a new section, entitled "Interrupt a running suite", to
the "Testing in the cloud" chapter.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Sage Weil [Tue, 15 Mar 2016 13:12:24 +0000 (09:12 -0400)]
Merge pull request #8105 from SUSE/wip-ceph-detect-init-tox
ceph-detect-init: add missing test case
Sage Weil [Tue, 15 Mar 2016 13:08:55 +0000 (09:08 -0400)]
Merge pull request #8088 from liewegas/wip-typo
osd/OSDMap: fix typo in summarize_mapping_stats
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 15 Mar 2016 13:00:33 +0000 (09:00 -0400)]
Merge pull request #8098 from liewegas/wip-fix-crush
unittest_osdmap: default crush tunables now firefly
Sage Weil [Tue, 15 Mar 2016 13:00:06 +0000 (09:00 -0400)]
Merge pull request #8089 from liewegas/wip-mark-pg-stale
mon/PGMonitor: reliably mark PGs state
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 15 Mar 2016 12:52:30 +0000 (08:52 -0400)]
Merge pull request #7943 from llua/init-ceph
init-ceph.in: allow case-insensitive true in `osd crush update on start'
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Sage Weil [Tue, 15 Mar 2016 12:40:14 +0000 (08:40 -0400)]
Merge pull request #8055 from liewegas/wip-hobject
ghobject_t: use # instead of ! as a separator
Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Jason Dillaman [Tue, 15 Mar 2016 12:39:44 +0000 (08:39 -0400)]
Merge pull request #8056 from rjfd/wip-13296
rbd: support for enabling/disabling mirroring on specific images
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Tue, 15 Mar 2016 12:38:01 +0000 (08:38 -0400)]
Merge pull request #7971 from ceph/wip-selinux-update
selinux: Update policy to grant additional access
Sage Weil [Tue, 15 Mar 2016 12:35:36 +0000 (08:35 -0400)]
Merge pull request #8033 from liewegas/wip-pg-create
osd: handle dup pg_create that races with pg deletion
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Tue, 15 Mar 2016 12:35:06 +0000 (08:35 -0400)]
Merge pull request #8054 from ErwanAliasr1/evelu-check
common: SubProcess: Avoid buffer corruption when calling err()
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Tue, 15 Mar 2016 12:34:29 +0000 (08:34 -0400)]
Merge pull request #8057 from liewegas/wip-pglog-warning
osd/PGLog: fix warning
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Tue, 15 Mar 2016 12:34:09 +0000 (08:34 -0400)]
Merge pull request #8059 from ceph/wip-include-scope
rados: add ceph:: namespace to bufferlist type
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 15 Mar 2016 12:33:42 +0000 (08:33 -0400)]
Merge pull request #8071 from xiexingguo/xxg-wip-fixptr
osd: initialize last_recalibrate field at construction
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 15 Mar 2016 12:33:13 +0000 (08:33 -0400)]
Merge pull request #8081 from renhwsky/renhw-wip-osdmonitor-poolset
osd: min_write_recency_for_promote & min_read_recency_for_promote are tiering only
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Tue, 15 Mar 2016 06:44:24 +0000 (14:44 +0800)]
Merge pull request #7879 from xiexingguo/xxg-wip-doc-rados-api
doc/rados/api/librados-intro.rst: fix typo
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
xie xingguo [Wed, 2 Mar 2016 18:40:04 +0000 (02:40 +0800)]
doc: fix typo
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Josh Durgin [Tue, 15 Mar 2016 00:27:30 +0000 (17:27 -0700)]
Merge pull request #8079 from dillaman/wip-14413
rbd-mirror: integrate with image sync state machine
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 02:14:28 +0000 (22:14 -0400)]
test: remove broken negative test cases
These should be reimplemented using google mock instead of
virtual functions.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 02:12:15 +0000 (22:12 -0400)]
rbd-mirror: integrate new bootstrap state machine
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 02:10:13 +0000 (22:10 -0400)]
rbd-mirror: simple image bootstrap state machine
This state machine will handle the simple cases of creating
a local image from a remote image, registering to the remote
journal, and sync'ing the image contents.
There are several TODOs for future remaining work.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 02:09:19 +0000 (22:09 -0400)]
rbd-mirror: helper state machine for opening local image
This state machine will open a local image and request the
exclusive lock. If the open or lock fails, it will automatically
close the image.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 02:08:16 +0000 (22:08 -0400)]
rbd-mirror: helper state machine for closing librbd images
librbd ImageCtx's cannot be deleted from within the librbd thread. This
state machine will perform the deletion from the rbd-mirror work queue
thread.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Josh Durgin [Tue, 15 Mar 2016 00:14:01 +0000 (17:14 -0700)]
Merge pull request #7979 from dillaman/wip-14413
rbd-mirror: remote to local cluster image sync
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Mon, 14 Mar 2016 23:23:25 +0000 (16:23 -0700)]
Merge pull request #8102 from dillaman/wip-librados-aio-notify-redux
librados: cancel aio notification linger op upon completion
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Mon, 14 Mar 2016 22:44:35 +0000 (15:44 -0700)]
Merge pull request #8099 from dillaman/wip-15121
cls_rbd: protect against excessively large object maps
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Mon, 14 Mar 2016 21:56:32 +0000 (22:56 +0100)]
ceph-detect-init: add test for squeeze
Since we return 'sysvinit' for wheezy and squeeze only, make sure we are
testing both of these.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Orit Wasserman [Mon, 14 Mar 2016 21:16:09 +0000 (22:16 +0100)]
Merge pull request #8100 from linuxbox2/ldap-cmake
cmake: avoid false-positive LDAP header detect
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Josh Durgin [Mon, 14 Mar 2016 21:11:49 +0000 (14:11 -0700)]
Merge pull request #8104 from dillaman/wip-rbd-read-flags
qa/workunits/rbd: do not use object map during read flag testing
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 21:06:15 +0000 (17:06 -0400)]
qa/workunits/rbd: do not use object map during read flag testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 19:21:01 +0000 (15:21 -0400)]
librados: cancel aio notification linger op upon completion
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Ricardo Dias [Fri, 11 Mar 2016 17:50:39 +0000 (17:50 +0000)]
test: cmake: Fix make check compilation error
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Fri, 11 Mar 2016 17:48:36 +0000 (17:48 +0000)]
rbd-mirroring: test: Added mirror image enable/disable to RBD CLI syntax tests
Signed-off-by: Ricardo Dias <rdias@suse.com>
Matt Benjamin [Mon, 14 Mar 2016 18:08:53 +0000 (14:08 -0400)]
cmake: avoid false-positive LDAP header detect
Pre-setting a value in OPENLDAP_INCLUDE_DIR broke the subsequent
test.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 17:57:28 +0000 (13:57 -0400)]
cls_rbd: protect against excessively large object maps
Fixes: #15121
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Ricardo Dias [Thu, 10 Mar 2016 13:43:18 +0000 (13:43 +0000)]
rbd: rbd-mirroring: Added mirroing info to image info command in RBD CLI
Signed-off-by: Ricardo Dias <rdias@suse.com>
Fixes: #13296
Ricardo Dias [Thu, 10 Mar 2016 13:39:12 +0000 (13:39 +0000)]
rbd: rbd-mirroring: Support image mirroring state retrieval in librbd
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 10 Mar 2016 13:36:06 +0000 (13:36 +0000)]
rbd: rbd-mirroring: Added mirror image enable/disable commands to RBD CLI
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 10 Mar 2016 13:02:59 +0000 (13:02 +0000)]
rbd: rbd-mirroring: Support mirroring image disable in librbd
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 10 Mar 2016 12:19:24 +0000 (12:19 +0000)]
rbd: rbd-mirroring: Support mirroring image enable in librbd
Signed-off-by: Ricardo Dias <rdias@suse.com>
Josh Durgin [Mon, 14 Mar 2016 17:28:17 +0000 (10:28 -0700)]
Merge pull request #8094 from dillaman/wip-librbd-image-watch-unregister
librbd: handle unregistering the image watcher when disconnected
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Mon, 14 Mar 2016 17:11:49 +0000 (13:11 -0400)]
ceph_test_rados_api_tmap_migrate: fix warning
In file included from ./test/librados/TestCase.h:9:0,
from test/librados/tmap_migrate.cc:4:
../src/gmock/gtest/include/gtest/gtest.h: In instantiation of ‘testing::Asserti$
../src/gmock/gtest/include/gtest/gtest.h:1484:23: required from ‘static testi$
test/librados/tmap_migrate.cc:56:3: required from here
../src/gmock/gtest/include/gtest/gtest.h:1448:16: warning: comparison between s$
if (expected == actual) {
^
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 14 Mar 2016 17:10:36 +0000 (13:10 -0400)]
ceph_test_rados_api_list: fix warning
In file included from ./test/librados/TestCase.h:9:0,
from test/librados/list.cc:7:
../src/gmock/gtest/include/gtest/gtest.h: In instantiation of ‘testing::Asserti$
../src/gmock/gtest/include/gtest/gtest.h:1484:23: required from ‘static testi$
test/librados/list.cc:944:5: required from here
../src/gmock/gtest/include/gtest/gtest.h:1448:16: warning: comparison between s$
if (expected == actual) {
^
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 14 Mar 2016 17:01:50 +0000 (13:01 -0400)]
unittest_osdmap: default crush tunables now firefly
This should have been changed in
000344ef0ca639d515e3f89401bafc9b0b13deda .
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 14 Mar 2016 16:50:33 +0000 (12:50 -0400)]
log: do not pass negative fd to fchown
>>> CID
1355574 : Error handling issues (NEGATIVE_RETURNS)
>>> "this->m_fd" is passed to a parameter that cannot be negative.
Signed-off-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Mon, 14 Mar 2016 15:34:04 +0000 (11:34 -0400)]
librbd: handle unregistering the image watcher when disconnected
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Thu, 10 Mar 2016 19:30:56 +0000 (14:30 -0500)]
mon/PGMonitor: make pg refresh debug output more informative
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 10 Mar 2016 18:15:43 +0000 (13:15 -0500)]
mon/PGMap: drop unused nocreating flag for stat_pg_{add,sub}
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 10 Mar 2016 16:47:47 +0000 (11:47 -0500)]
osd: drop create events based on same_primary_since, not interval
Creates are resent when the primary changes, not the interval.
Ensure we don't drop something we shouldn't.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 10 Mar 2016 16:26:30 +0000 (11:26 -0500)]
osd: drop unused primary arg to handle_pg_peering_evt
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 9 Mar 2016 22:17:12 +0000 (17:17 -0500)]
osd: use handle_pg_peering_evt for pg creations
This ensures we captures all of the PG resurrection logic.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 14 Mar 2016 15:17:02 +0000 (11:17 -0400)]
mon/PGMonitor: reliably mark PGs state
In
beb99d708a5051405a32f46fc10cef473bfddce3 we partially addressed
the case where a acting_primary update raced with an attemp to
mark the pg state. However, if the acting_primary changed, we
didn't check the new acting_primary to ensure that it is also
down and we should still mark things stale.
Also, printing out the acting_primary aids debugging.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 14 Mar 2016 14:53:08 +0000 (10:53 -0400)]
Merge pull request #7913 from liewegas/wip-list-encode
include/encoding: do not try to be clever with list encoding
Sage Weil [Mon, 14 Mar 2016 14:52:15 +0000 (10:52 -0400)]
Merge pull request #7915 from ceph/wip-librados-stat2
librados: stat2 with higher time precision
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Mon, 14 Mar 2016 14:51:40 +0000 (10:51 -0400)]
Merge pull request #7964 from liewegas/wip-crush-jewel
crush: update tunable docs. change default profile to jewel
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Mon, 14 Mar 2016 14:50:58 +0000 (10:50 -0400)]
Merge pull request #8035 from liewegas/wip-bluestore
osd: bluestore updates, scrub fixes
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Mon, 14 Mar 2016 14:50:06 +0000 (10:50 -0400)]
Merge pull request #8050 from liewegas/wip-15077
os/filestore: fix punch hole usage in _zero
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Mon, 14 Mar 2016 14:49:45 +0000 (10:49 -0400)]
Merge pull request #8064 from liewegas/wip-zlib-test
unittest_compression_zlib: do not assume buffer will be null terminated
Sage Weil [Mon, 14 Mar 2016 13:59:52 +0000 (09:59 -0400)]
Merge pull request #7870 from stiopaa1/blueStoreRemoveIncludes
osd: bluestore: remove unneeded includes
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 14 Mar 2016 12:27:47 +0000 (08:27 -0400)]
Merge pull request #7871 from xiexingguo/xxg-wip-cleanasync
msg: async: small cleanups
Reviewed-by: Haomai Wang <haomai@xsky.com>
Sage Weil [Mon, 14 Mar 2016 12:07:19 +0000 (08:07 -0400)]
osd/OSDMap: fix typo in summarize_mapping_stats
From
ea9abe53d0e777b7dc3b22af71639f77c4de08c8
Signed-off-by: Sage Weil <sage@redhat.com>
Erwan Velu [Fri, 11 Mar 2016 15:27:34 +0000 (16:27 +0100)]
SubProcess: Avoid buffer corruption when calling err()
Some code like crush/CrushTester.cc, uses err() to get the output status of a
spawned command.
As per reported in bug #15011, some tests were failing because of some utf8
decoding issues. The implied buffers were generated by the output of err()
function of SubProcess.
err() is returning the str().c_str() value of 'errstr' object which is not
living much longer that the function itself.
This patch returns a std::string to avoid the temporary allocation and fixes
the associated err() calls accordingly.
Since this commit, the make check is now passing everytime.
Fixes: #15011
Signed-off-by: Erwan Velu <erwan@redhat.com>
Kefu Chai [Mon, 14 Mar 2016 09:38:05 +0000 (17:38 +0800)]
Merge pull request #7170 from trociny/wip-freebsd-misc
FreeBSD related fixes
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 14 Mar 2016 09:36:25 +0000 (17:36 +0800)]
Merge pull request #7947 from saru95/patch---2
ceph.in: Minor python3 specific changes
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 14 Mar 2016 09:35:05 +0000 (17:35 +0800)]
Merge pull request #7974 from tchaikov/wip-buffer-eq-neq
buffer: add symmetry operator==() and operator!=()
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
huanwen ren [Mon, 14 Mar 2016 05:45:23 +0000 (13:45 +0800)]
osd: min_write_recency_for_promote & min_read_recency_for_promote are only used in cache pool
min_write_recency_for_promote & min_read_recency_for_promote are only used in cache pool
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
Loic Dachary [Sun, 13 Mar 2016 09:40:49 +0000 (16:40 +0700)]
Merge pull request #8074 from tchaikov/wip-ceph-detect-init-test
ceph-detect-init: add debian/jessie test
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Sun, 13 Mar 2016 02:21:27 +0000 (10:21 +0800)]
ceph-detect-init: return None at seeing unknown debian distro
* return None at seeing unknown debian distros
* add test for this accordingly
Signed-off-by: Kefu Chai <kchai@redhat.com>
Haomai Wang [Sun, 13 Mar 2016 04:19:57 +0000 (12:19 +0800)]
Merge pull request #8046 from xiexingguo/xxg-wip-fixpc
msg: async: fix perf counter description and simplify _send_keepalive_or_ack
Reviewed-by: Haomai Wang <haomai@xsky.com>
Haomai Wang [Sun, 13 Mar 2016 04:15:53 +0000 (12:15 +0800)]
Merge pull request #7949 from wjin/fix
Event: fix clock skew problem
Reviewed-by: Haomai Wang <haomai@xsky.com>
Yehuda Sadeh [Sun, 13 Mar 2016 04:10:02 +0000 (20:10 -0800)]
Merge pull request #8076 from ceph/wip-rgw-ldap
Wip rgw ldap
This follows a revert of the previous PR. This branch has some build related fixes.
Yehuda Sadeh [Sun, 13 Mar 2016 04:07:52 +0000 (20:07 -0800)]
Merge pull request #8075 from ceph/revert-7985-rgw-token-7
Revert "rgw ldap"
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Sun, 13 Mar 2016 04:07:04 +0000 (20:07 -0800)]
Revert "rgw ldap"
Jason Dillaman [Sun, 13 Mar 2016 03:13:11 +0000 (22:13 -0500)]
test: verify proper update of object map during rbd-mirror image sync
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sun, 13 Mar 2016 03:11:42 +0000 (22:11 -0500)]
rbd-mirror: update object map while performing image sync
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sat, 12 Mar 2016 20:43:46 +0000 (15:43 -0500)]
rbd-mirror: temporarily disable support for cloned images
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sat, 12 Mar 2016 05:16:40 +0000 (00:16 -0500)]
test: unit test cases for rbd mirror image sync
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sat, 12 Mar 2016 02:24:17 +0000 (21:24 -0500)]
rbd-mirror: image sync state machine
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 20:45:47 +0000 (15:45 -0500)]
test: unit tests for rbd::mirror::image_sync::ImageCopyRequest
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 20:45:09 +0000 (15:45 -0500)]
rbd-mirror: state machine to iterate and copy all image objects
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 16:52:48 +0000 (11:52 -0500)]
librbd: track maximum object count during mirror sync
If the sync is interrupted, it is possible the image the source
image is shrunk. Therefore, the sync process needs to track
the maximum known object extent of the image so objects can
be properly freed.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 15:36:52 +0000 (10:36 -0500)]
test: test cases for rbd-mirror image sync point state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 15:35:03 +0000 (10:35 -0500)]
rbd-mirror: new image sync point create/prune state machines
These are responsible for creating/removing snapshots in the
remote image and updating the client registration to account
for the snapshots.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 02:41:40 +0000 (21:41 -0500)]
librbd: added equality operator to MirrorPeer journal types
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 01:48:40 +0000 (20:48 -0500)]
librbd: async version of snap create and snap remove
This will be utilized by the RBD mirror daemon when creating
sync points.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 01:26:53 +0000 (20:26 -0500)]
librbd: prefix local maintenance ops methods
This will help to differentiate between the methods that send an RPC
request if the lock isn't owned vs execute locally if it is owned.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Mar 2016 00:13:07 +0000 (19:13 -0500)]
librbd: maintenance ops now send asynchronous requests
The RBD mirror daemon will need to request the creation/removal
of snapshots from a remote image. These operations need to be
performed asynchronously as opposed to the current synchronous
style of the librbd API.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 10 Mar 2016 20:48:18 +0000 (15:48 -0500)]
librbd: track starting point snapshot for mirror sync point
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 10 Mar 2016 02:10:50 +0000 (21:10 -0500)]
test: move get_mock_io_ctx helper method to common location
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 8 Mar 2016 03:17:23 +0000 (22:17 -0500)]
test: unit test cases for rbd::mirror::image_sync::SnapshotCopyRequest
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 7 Mar 2016 22:33:49 +0000 (17:33 -0500)]
rbd-mirror: sync snapshots between remote-local images during bootstrap
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 8 Mar 2016 01:44:28 +0000 (20:44 -0500)]
librbd: track local to peer snapshot id mapping within journal
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sun, 6 Mar 2016 18:09:38 +0000 (13:09 -0500)]
test: unit test cases for rbd::mirror::image_sync::ObjectCopyRequest
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sun, 6 Mar 2016 18:08:17 +0000 (13:08 -0500)]
test: updated mock expectation for librados remove op
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sun, 6 Mar 2016 18:07:42 +0000 (13:07 -0500)]
test: added missing forward declarations for librbd mocks
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sun, 6 Mar 2016 18:06:42 +0000 (13:06 -0500)]
rbd_mirror: deep-copy of object and its associated snapshots
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sun, 6 Mar 2016 18:04:26 +0000 (13:04 -0500)]
librbd: helper method for wrappign rados safe callbacks
Signed-off-by: Jason Dillaman <dillaman@redhat.com>