Commit Graph

39163 Commits

Author SHA1 Message Date
Josh Durgin a2d6b07296 Merge pull request #3607 from ceph/wip-librbd-invalid-map
librbd: verify image's object map validity

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-04 23:56:04 +01:00
Josh Durgin 2b31fb1aa9 Merge pull request #3592 from ceph/wip-librbd-watch-errors
librbd: better handling for image watch errors

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-04 23:39:40 +01:00
Zhiqiang Wang 2a83ef3c3d include/encoding: fix an compile warning
./include/encoding.h:317:7: warning: 't' may be used uninitialized in
this function [-Wmaybe-uninitialized]

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-04 13:15:43 -08:00
Sage Weil 6cc8bae58c Merge pull request #3619 from ceph/wip-8903
librbd: removed lingering TODO message from ImageWatcher

Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-04 12:55:59 -08:00
Mykola Golub 71c6d98979 msg: fixup for 2ffacbe (crc configuration in messenger)
* Update the remaining Message::encode() calls, which now expect crc
  flags to be passed as a flags parameter instead of a bool (this e.g.
  fixes the issue with routing messages forwarded from an older client).

* In Message::encode() data crc is calculated when MSG_CRC_DATA is
  set, but in decode_message(), Pipe::read/write_message() data crc is
  calculated when MSG_CRC_HEADER is set. Fix this.

Note, 2ffacbe changed the behavior of Pipe::read_message/write_message():
previously the methods always calculated crc, now they calculate it
only if crc is enabled in the config. This means crc can not be disabled
if there are monitors of older version in the cluster.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-04 11:21:37 -08:00
Gregory Farnum fa9a160377 Merge pull request #3613 from rzarzynski/wip-4920
client: add support for O_NOFOLLOW and O_PATH

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-02-04 09:30:29 -08:00
Radoslaw Zarzynski 190c7e355d client: implement support for O_PATH on Linux.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-02-04 10:02:17 +01:00
Radoslaw Zarzynski 911e4c058e client: add support for O_NOFOLLOW in Client::open().
Fixes: #4920
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-02-04 10:00:53 +01:00
Loic Dachary 26cc9d3479 Merge pull request #3603 from dachary/wip-10729-debian-install-deps
install-deps.sh: get lsb_release if needed

Reviewed-by: Yann Dupont <yann@objoo.org>
2015-02-04 08:40:57 +01:00
Dan Mick 48c0a9f520 Merge pull request #3565 from rzarzynski/wip-7264
pybind/rados.py: fix error hiding and inconsistency on librados load.

Reviewed-by: Dan Mick <dan.mick@redhat.com>
2015-02-03 20:57:47 -08:00
John Wilkins 0548beadf2 doc: Removed references to Inktank suppport.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2015-02-03 14:50:25 -08:00
John Wilkins babac0c4cc doc: Removed Inktank reference.
Signed-off-by: John Wilkins <jowilkin@redhat.com>
2015-02-03 14:14:22 -08:00
Gregory Farnum dca8f907fe Merge pull request #3598 from ceph/wip-10720
mds: fix leaked MDCache::logger

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-02-03 10:43:42 -08:00
John Wilkins e0883ebf7a Merge pull request #3262 from dachary/wip-jerasure
erasure-code: update links to jerasure upstream

Reviewed-by: John Wilkins <jowilkin@redhat.com>
2015-02-03 09:21:56 -08:00
Loic Dachary 19d5de92bf install-deps.sh: babeltrace is not on wheezy
The babeltrace package is not found on wheezy, not just squeeze.
Fix the regular expression that incorrectly replaced
libbabeltrace-ctf-dev with -ctf-dev leading to a strange error

E: Opening configuration file tf-dev - ifstream::ifstream (2: No such file or directory)

when running apt-get install.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-03 17:40:41 +01:00
Loic Dachary 4e791f3a83 install-deps.sh: get lsb_release if needed
Debian does not have lsb_release installed by default.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-03 17:18:09 +01:00
Loic Dachary 9eea764947 Merge pull request #3601 from dachary/wip-10729-fedora-install-deps
install-deps.sh: get lsb_release if needed

Reviewed-by: Haïkel Guémar <hguemar@redhat.com>
2015-02-03 16:39:53 +01:00
Sage Weil 65c7e07aca doc/release-notes: v0.92
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-03 07:37:05 -08:00
Loic Dachary f4d65150d0 install-deps.sh: get lsb_release if needed
Fedora does not have lsb_release installed by default.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-03 16:35:13 +01:00
Sage Weil 5a08179384 Merge remote-tracking branch 'gh/next' 2015-02-03 06:52:07 -08:00
Sage Weil b9412def9d Merge commit '4ada7cc8e908a26b4640497b64b2ed9986889a92' into next 2015-02-03 06:50:22 -08:00
Jason Dillaman 24349a8b85 librbd: removed lingering TODO message from ImageWatcher
The TODO was a reminder to integrate with the watch/notify
error handler.  This integration was already completed under
previous commits.

Fixes: #8903
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-03 08:57:15 -05:00
John Spray 17a8330eae mds: fix leaked MDCache::logger
Fixes: #10720
Signed-off-by: John Spray <john.spray@redhat.com>
2015-02-03 14:10:04 +01:00
Jason Dillaman 9e9356b1d8 librbd: fixed object map issues discovered via fsx
The object map wasn't being properly refreshed after setting
the snapshot context on the parent image. Additionally fixed
a potential deadlock that could have occurred if no object
map update was required when trimming an image.

Fixes: #10706
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-03 13:15:00 +01:00
Jason Dillaman 6071142f52 librados_test_stub: added Rados::watch_flush
RBD now uses this method, so it was added to the test stub.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-03 06:36:12 -05:00
Jason Dillaman 1b110a5589 librbd: better handling for image watch errors
When the librados watcher fails, librbd will now continuously
attempt to re-register the watch until it succeeds or the image
is closed.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-03 06:36:11 -05:00
Sage Weil 225a19fa67 vstart.sh: fix .ceph_port typo
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-03 03:23:28 -08:00
Jason Dillaman 8d61c39658 librbd: prevent copyup during image shrink operations
If a cloned image was shrunk, it was possible for a copyup
to be performed on objects outside of the new image range.
Resize now pre-shrinks the parent overlap to disable copyup
when removing objects.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-03 06:07:11 -05:00
Loic Dachary dbd2e7d98b Merge pull request #3597 from karelstriegel/master
rdb: update init-rbdmap to fix duplicate mount point

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-02-03 11:52:31 +01:00
Karel Striegel be05d9dc5e rdb: update init-rbdmap to fix duplicate mount point
According to the manual 'mount -f' adds an entry in /etc/mtab.
Therefore the 'mount -v' command needs the flag -n to avoid
duplicate entries in /etc/mtab.

Signed-off-by: Karel Striegel <karel@striegel.be>
2015-02-03 11:42:06 +01:00
Jason Dillaman fbcde04a38 cls_rbd: fixed object_map_resize boundary issue
The object_map_resize sanity check ensures that a resize will
not erase state for an in-use object.  The check was incorrectly
including a block within the new object map range.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-03 05:28:29 -05:00
Josh Durgin 352ad94842 Merge remote-tracking branch 'origin/hammer' 2015-02-03 10:28:50 +01:00
Jason Dillaman 14424c8aab librbd: removing objects can lead to infinite loop
The AioRemove state machine is not properly advanced from
_PRE to _FLAT.  This will result in an infinite state machine
loop.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-03 10:25:01 +01:00
Jason Dillaman bb8c9ae29d librbd: pending AIO operations are now flushed asynchronously
If exclusive locking was enabled, the librbd aio_flush command
would block waiting for queued AIO operations to proceed once
the exclusive lock was obtained.  Now librbd will no longer
block when aio_flush is invoked and AIO operations are waiting
on the exclusive lock.

Fixes: #10714
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-03 10:21:50 +01:00
Sage Weil 25bbecdf26 Merge pull request #3594 from ceph/wip-10707
test/cls_rgw: fix test

Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-03 00:22:52 -08:00
Sage Weil c65e1b072a Merge remote-tracking branch 'gh/hammer' 2015-02-03 00:12:23 -08:00
Sage Weil 3dfc0cd87b Merge remote-tracking branch 'gh/next' 2015-02-03 00:12:17 -08:00
Sage Weil 4ada7cc8e9 Merge pull request #3590 from ceph/wip-10722
rgw: move perf cleanup before context cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-03 00:09:48 -08:00
Billy Olsen 60b019f69a Fix memory leak in python rados bindings
A circular reference was inadvertently created when using the
CFUNCTYPE binding for callbacks for the asynchronous i/o callbacks.
This commit refactors the usage of the callbacks such that the
Ioctx object does not have a class reference to the callbacks.

Fixes: #10723
Backport: giant, firefly, dumpling
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-03 06:51:16 +01:00
Jason Dillaman 46f2d80c5d tests: RBD tests now check object map validity
If the RBD object map is invalidated during the run of the test,
the tests will now return a failed status to alert to an issue
with the object map.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-03 00:32:27 -05:00
Jason Dillaman d00891f9a2 rbd: add image flags to 'rbd info'
The 'rbd info' CLI tool now includes the image's flags.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-02 23:37:35 -05:00
Jason Dillaman 706a6552cf librbd: added get_flags API methods
Exposed the RBD image flags bitmask through the API via
new methods in the C/C++/Python RBD APIs.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-02 23:24:09 -05:00
Jason Dillaman 16e4d712ae cls_rbd: get_flags now reads all snapshot flags
As a convenience, get_flags now retrieves the current image
flags as well as all historical snapshop flags with a single
librados operation.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-02 23:17:56 -05:00
Yehuda Sadeh 7dd2de8fe6 test/cls_rgw: fix test
Test needed to be updated, now using meta.accounted_size for object
size.

Fixes: #10707

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-02 17:10:19 -08:00
Loic Dachary 961cd0efea Merge pull request #3593 from ceph/wip-autogen
Fix do_autogen.sh so that -L is allowed

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-02-03 01:42:34 +01:00
David Zafman e0f12d9a8c Fix do_autogen.sh so that -L is allowed
Signed-off-by: David Zafman <dzafman@redhat.com>
2015-02-02 16:40:46 -08:00
Yehuda Sadeh cfab01e394 rgw: move perf cleanup before context cleanup
Fixes: #10722
Fixes: #10572
Backport: giant, firefly

This fixes a regression introduced in commit
de2e5fa048.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-02-02 15:37:37 -08:00
Radoslaw Zarzynski 4074a91b8d pybind: fix error hiding and inconsistency on librados load.
When loading of librados failed, the real cause was hidden in some
circumstances due to exception rewriting. Additionally, the error
reporting was inconsistent -- two paths with different exceptions
and messages existed.

Fixes: #7264
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-02-03 00:32:45 +01:00
Samuel Just 0f9f4e536e Merge remote-tracking branch 'upstream/next' 2015-02-02 14:18:52 -08:00
Jenkins 00a3ac3b67 0.92 2015-02-02 10:35:28 -08:00