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
Yehuda Sadeh
5077d729cb
Merge remote-tracking branch 'origin/master' into wip-rgw-ldap
2016-03-12 15:17:03 -08:00
Yehuda Sadeh
40e92c02c5
test: disable test_rgw_ldap
...
for now
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-12 15:16:54 -08:00
Yehuda Sadeh
e93778c367
rgw/Makefile.am: add a missing .h file
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-12 13:02:58 -08:00
Matt Benjamin
46a34790cb
rgw_ldap: merge cleanups
...
* match LDAPHelper op return codes to RGW (-POSIX)
* make temporary LDAP handle local (MT-safe)
* add required --encode and --ttype to usage
* use versioned encoding macros
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-12 13:02:58 -08:00
Matt Benjamin
de8367bc27
rgw: require openldap library client headers
...
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-12 13:02:58 -08:00
Matt Benjamin
a0a8dcc26c
rgw: free components on shutdown
...
Also, use ldout in rgw_file.h in 3 places.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-12 13:02:58 -08:00
Matt Benjamin
38fd3f190a
rgw: LDAP pass-through authentication
...
Implement a new external authenticator based on LDAP and the
new external token format.
External LDAP auth now works, at least with openldap/X.500 style
naming and ldaps:// (SSL).
The latter is AD-friendly, but since AD uses dnattr=cn (IIRC)
everywhere, AD will need testing.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-03-12 09:57:12 -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
Sage Weil
2b07695f1c
unittest_compression_zlib: do not assume buffer will be null terminated
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-11 17:34:49 -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
Greg Farnum
a83989d0a4
FSMap: decode old MDSMaps properly
...
We accidentally left a few members out that the MDSMap had!
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-03-11 13:36:51 -08:00
Yehuda Sadeh
23487e05e0
Merge pull request #8058 from yehudasa/wip-rgw-clean-log
...
cleanup
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-03-11 12:47:04 -08:00
Sage Weil
9e83f5bffd
mon: make the minimum crush tunables configurable
...
If they cluster is using very old tunables, as inferred by whether it
requires a newer version of CRUSH, issue a health warning.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-11 15:39:06 -05:00