Jason Dillaman
e2bbd17a02
test: verify proper update of object map during rbd-mirror image sync
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:17 -05:00
Jason Dillaman
0ef801f563
rbd-mirror: update object map while performing image sync
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:17 -05:00
Jason Dillaman
9465d3b5d7
rbd-mirror: temporarily disable support for cloned images
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:17 -05:00
Jason Dillaman
18bfef9a48
test: unit test cases for rbd mirror image sync
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:17 -05:00
Jason Dillaman
cacb48b1b4
rbd-mirror: image sync state machine
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:16 -05:00
Jason Dillaman
4411212049
test: unit tests for rbd: 🪞 :image_sync::ImageCopyRequest
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:16 -05:00
Jason Dillaman
e530fbf22f
rbd-mirror: state machine to iterate and copy all image objects
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:16 -05:00
Jason Dillaman
c7f5f9da34
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>
2016-03-12 22:40:16 -05:00
Jason Dillaman
cee931f87a
test: test cases for rbd-mirror image sync point state machines
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:16 -05:00
Jason Dillaman
47181120c8
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>
2016-03-12 22:40:16 -05:00
Jason Dillaman
acd40abe9f
librbd: added equality operator to MirrorPeer journal types
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:16 -05:00
Jason Dillaman
1c8b62185f
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>
2016-03-12 22:40:16 -05:00
Jason Dillaman
14a264d4e2
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>
2016-03-12 22:40:16 -05:00
Jason Dillaman
f67bcc05bd
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>
2016-03-12 22:40:16 -05:00
Jason Dillaman
a4b92434b1
librbd: track starting point snapshot for mirror sync point
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:16 -05:00
Jason Dillaman
1d4d4c8bf4
test: move get_mock_io_ctx helper method to common location
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
502069a025
test: unit test cases for rbd: 🪞 :image_sync::SnapshotCopyRequest
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
9a943dbea3
rbd-mirror: sync snapshots between remote-local images during bootstrap
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
ffa8cc39b5
librbd: track local to peer snapshot id mapping within journal
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
dd4f6a92ae
test: unit test cases for rbd: 🪞 :image_sync::ObjectCopyRequest
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
67e1a62127
test: updated mock expectation for librados remove op
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
2b52bfa378
test: added missing forward declarations for librbd mocks
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
7ed0cedfb8
rbd_mirror: deep-copy of object and its associated snapshots
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
efb2ff5d7f
librbd: helper method for wrappign rados safe callbacks
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
a439920d9b
librbd: updated API for calc_snap_set_diff
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:15 -05:00
Jason Dillaman
69b5ce183f
librados: calc_snap_set_diff now provides last known object size
...
This allows truncate requests to be detected between snapshots.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:14 -05:00
Jason Dillaman
4c159d30fd
librados_test_stub: support for truncating/removing with old snap contexts
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-03-12 22:40:14 -05:00
Yehuda Sadeh
e4e9c2c021
Merge pull request #8066 from yehudasa/wip-rgw-swift-versioning-disabled
...
Wip rgw swift versioning disabled
Reviewed-by: Josh Durgin <joshd@redhat.com>
2016-03-12 18:02:50 -08:00
Yehuda Sadeh
e5c11f1854
Merge pull request #7985 from linuxbox2/rgw-token-7
...
rgw ldap (Matt Benjamin)
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-12 18:02:06 -08:00
Sage Weil
41cf56062b
Merge remote-tracking branch 'gh/jewel'
2016-03-12 09:03:06 -05:00
Sage Weil
37605d0eba
Merge branch 'wip-15086' of git://github.com/SUSE/ceph
...
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-12 09:02:49 -05:00
Josh Durgin
750701b644
Merge pull request #8068 from SUSE/wip-15104
...
qa/workunits/rbd: use POSIX function definition
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-11 17:48:43 -08:00
Josh Durgin
93863e7e22
Merge pull request #7663 from javacruft/wip-pybind-flags
...
pybind: Ensure correct python flags are passed
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-11 17:40:40 -08:00
Josh Durgin
a7f7339df7
Merge pull request #7856 from jdurgin/wip-cython-cleanup
...
configure.ac: update help strings for cython
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2016-03-11 17:35:11 -08:00
Josh Durgin
4a7212257f
Merge remote-tracking branch 'origin/wip-josh-testing'
2016-03-11 17:20:47 -08:00
Gregory Farnum
3c1d464fd5
Merge pull request #8067 from athanatos/wip-fix-filestore-warning
...
FileStore: fix initialization order for m_disable_wbthrottle
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-03-11 17:06:07 -08:00
Nathan Cutler
996be8ef49
qa/workunits/rbd: use POSIX function definition
...
In scripts with /bin/sh shebang, we must use POSIX function definitions to
avoid syntax errors on platforms that link /bin/sh to something other than
/bin/bash.
See https://wiki.ubuntu.com/DashAsBinSh#function for more information.
http://tracker.ceph.com/issues/15104 Fixes : #15104
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-12 02:03:27 +01:00
Yehuda Sadeh
861676357e
rgw: disable swift versioning by default
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-11 16:20:44 -08:00
Radoslaw Zarzynski
06c7716077
rgw: improve naming of Swift versioned object's copies.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-03-11 16:20:44 -08:00
Radoslaw Zarzynski
da9120aa79
rgw: dump X-Versions-Location HTTP header of Swift API.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-03-11 16:20:44 -08:00
Yehuda Sadeh
54ea09c362
rgw: copy swift versioned object to destination if overwritten
...
Only allow if target bucket owner is the source bucket owner.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-11 16:20:44 -08:00
Yehuda Sadeh
2ae6d54f10
rgw: swift object versioning data structure changes
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-11 16:20:44 -08:00
Ken Dreyer
c5b00be0e7
Merge pull request #8034 from SUSE/wip-15047
...
packaging: make infernalis -> jewel upgrade work
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2016-03-11 16:58:35 -07:00
Nathan Cutler
a230a3839d
debian: make infernalis -> jewel upgrade work
...
Attempts to install jewel ceph-common, ceph-mon, ceph-osd, and ceph-base
package over infernalis ceph package fail due to files existing in both.
See comment #4 in the tracker issue for a deeper analysis.
http://tracker.ceph.com/issues/15047 Fixes : #15047
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-12 00:22:07 +01:00
Samuel Just
ba4badf491
FileStore: fix initialization order for m_disable_wbthrottle
...
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-03-11 15:16:37 -08:00
Nathan Cutler
81b9928f38
ceph-detect-init: return systemd on Debian Jessie
...
http://tracker.ceph.com/issues/15086 Fixes : #15086
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2016-03-11 23:55:52 +01:00
Sage Weil
4c97aac89d
Revert "test/time: no need to abs(uint64_t) for comparing"
...
This reverts commit da0f6608dd
.
unittest_time fails:
[==========] Running 4 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from RealClock
[ RUN ] RealClock.Sanity
[ OK ] RealClock.Sanity (0 ms)
[ RUN ] RealClock.Conversions
test/common/test_time.cc:125: Failure
Expected: ((Clock::from_double(bd) - brt).count()) < (30U), actual: 18446744073709551595 vs 30
[ FAILED ] RealClock.Conversions (0 ms)
[----------] 2 tests from RealClock (0 ms total)
[----------] 2 tests from CoarseRealClock
[ RUN ] CoarseRealClock.Sanity
[ OK ] CoarseRealClock.Sanity (0 ms)
[ RUN ] CoarseRealClock.Conversions
test/common/test_time.cc:125: Failure
Expected: ((Clock::from_double(bd) - brt).count()) < (30U), actual: 18446744073709551595 vs 30
[ FAILED ] CoarseRealClock.Conversions (0 ms)
[----------] 2 tests from CoarseRealClock (0 ms total)
[----------] Global test environment tear-down
[==========] 4 tests from 2 test cases ran. (0 ms total)
[ PASSED ] 2 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] RealClock.Conversions
[ FAILED ] CoarseRealClock.Conversions
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-11 17:42:27 -05:00
Gregory Farnum
ff3b456946
Merge pull request #8063 from gregsfortytwo/wip-fix-fsmap-decode
...
Wip fix fsmap decode
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-11 14:29:30 -08:00
Samuel Just
1cf29067e0
Merge pull request #7752 from somnathr/wip-odsync-write
...
FileStore: Added O_DSYNC write scheme
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-11 13:47:38 -08:00
Greg Farnum
2cc736c39e
FSMap: actually include the legacy MDSMap in Filesystems when upgrading
...
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-03-11 13:41:48 -08:00