]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agorgw: send appropriate op to cancel bucket index pending operation 3639/head
Yehuda Sadeh [Thu, 5 Feb 2015 17:33:26 +0000 (09:33 -0800)]
rgw: send appropriate op to cancel bucket index pending operation

Fixes: #10770
Backport: firefly, giant

Reported-by: baijiaruo <baijiaruo@126.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge remote-tracking branch 'gh/hammer'
Sage Weil [Thu, 5 Feb 2015 10:18:33 +0000 (02:18 -0800)]
Merge remote-tracking branch 'gh/hammer'

10 years agoMerge remote-tracking branch 'gh/wip-assert-version'
Sage Weil [Thu, 5 Feb 2015 10:18:06 +0000 (02:18 -0800)]
Merge remote-tracking branch 'gh/wip-assert-version'

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3532 from dachary/wip-run-make-check
Sage Weil [Thu, 5 Feb 2015 10:01:44 +0000 (02:01 -0800)]
Merge pull request #3532 from dachary/wip-run-make-check

run-make-check: use nproc and shorter git expression

10 years agoMerge pull request #3611 from kylinstorage/wip-rbd-recover-tool
Josh Durgin [Thu, 5 Feb 2015 10:01:30 +0000 (11:01 +0100)]
Merge pull request #3611 from kylinstorage/wip-rbd-recover-tool

Wip rbd recover tool

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3544 from vuhuong/xio-spread-portals
Sage Weil [Thu, 5 Feb 2015 09:36:12 +0000 (01:36 -0800)]
Merge pull request #3544 from vuhuong/xio-spread-portals

Xio spread portals

Reviewed-by: Matt Benjamin <matt@cohortfs.com>
10 years agoMerge pull request #3628 from SUSE/wip-initradosgw-fixup
Sage Weil [Thu, 5 Feb 2015 09:31:08 +0000 (01:31 -0800)]
Merge pull request #3628 from SUSE/wip-initradosgw-fixup

Unconditionally chown rados log file.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoUnconditionally chown rados log file. 3628/head
Thorsten Behrens [Wed, 10 Dec 2014 10:53:43 +0000 (11:53 +0100)]
Unconditionally chown rados log file.

This fixes bnc#905047 (in a somewhat ad-hoc way). Sadly the log
file gets created from several places, so its existence does not
mean init-radosgw had actually run.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
10 years agoMerge pull request #3623 from ceph/wip-opath
Sage Weil [Thu, 5 Feb 2015 09:22:49 +0000 (01:22 -0800)]
Merge pull request #3623 from ceph/wip-opath

client: fix O_PATH on older Linux systems

Reviewed-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #3622 from athanatos/wip-10340
Sage Weil [Thu, 5 Feb 2015 09:12:51 +0000 (01:12 -0800)]
Merge pull request #3622 from athanatos/wip-10340

Objecter::_op_submit_with_budget: add timeout before call

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3621 from athanatos/wip-10717
Sage Weil [Thu, 5 Feb 2015 09:12:07 +0000 (01:12 -0800)]
Merge pull request #3621 from athanatos/wip-10717

ReplicatedPG::do_op: ignore snapset_obc if !exists

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3616 from ceph/wip-export-dir
Yan, Zheng [Thu, 5 Feb 2015 01:51:18 +0000 (09:51 +0800)]
Merge pull request #3616 from ceph/wip-export-dir

mds: implement export dir asok

10 years agorbd_recover_tool: move rbd_recover_tool directory to src/tools subdirectory 3611/head
Min Chen [Thu, 5 Feb 2015 00:25:39 +0000 (08:25 +0800)]
rbd_recover_tool: move rbd_recover_tool directory to src/tools subdirectory

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agoclient: fix O_PATH on older Linux systems 3623/head
Greg Farnum [Wed, 4 Feb 2015 23:03:21 +0000 (15:03 -0800)]
client: fix O_PATH on older Linux systems

O_PATH was introduced in 2.6.39, but many Linux systems in use
today still have older kernels than that. Check for them.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #3607 from ceph/wip-librbd-invalid-map
Josh Durgin [Wed, 4 Feb 2015 22:56:04 +0000 (23:56 +0100)]
Merge pull request #3607 from ceph/wip-librbd-invalid-map

librbd: verify image's object map validity

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3592 from ceph/wip-librbd-watch-errors
Josh Durgin [Wed, 4 Feb 2015 22:39:40 +0000 (23:39 +0100)]
Merge pull request #3592 from ceph/wip-librbd-watch-errors

librbd: better handling for image watch errors

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoinclude/encoding: fix an compile warning
Zhiqiang Wang [Wed, 4 Feb 2015 00:22:41 +0000 (08:22 +0800)]
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>
10 years agoMerge pull request #3619 from ceph/wip-8903
Sage Weil [Wed, 4 Feb 2015 20:55:59 +0000 (12:55 -0800)]
Merge pull request #3619 from ceph/wip-8903

librbd: removed lingering TODO message from ImageWatcher

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomsg: fixup for 2ffacbe (crc configuration in messenger)
Mykola Golub [Fri, 23 Jan 2015 09:47:45 +0000 (11:47 +0200)]
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>
10 years agoMerge pull request #3613 from rzarzynski/wip-4920
Gregory Farnum [Wed, 4 Feb 2015 17:30:29 +0000 (09:30 -0800)]
Merge pull request #3613 from rzarzynski/wip-4920

client: add support for O_NOFOLLOW and O_PATH

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agomds: implement export dir asok 3616/head
John Spray [Tue, 3 Feb 2015 10:54:50 +0000 (10:54 +0000)]
mds: implement export dir asok

This was available as a legacy mds tell command
previously: make it availably via the cleaner
asok interface.  asok rather than new `tell` because
it's a low level/debug thing.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoclient: implement support for O_PATH on Linux. 3613/head
Radoslaw Zarzynski [Tue, 27 Jan 2015 22:25:33 +0000 (23:25 +0100)]
client: implement support for O_PATH on Linux.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
10 years agoclient: add support for O_NOFOLLOW in Client::open().
Radoslaw Zarzynski [Mon, 26 Jan 2015 14:40:14 +0000 (15:40 +0100)]
client: add support for O_NOFOLLOW in Client::open().

Fixes: #4920
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
10 years agorbd-recover-tool: add usefull information of this tool
Min Chen [Wed, 4 Feb 2015 08:12:01 +0000 (16:12 +0800)]
rbd-recover-tool: add usefull information of this tool
include README, FAQ, TODO

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agorbd-recover-tool: add a test case for raw image & snapshot
Min Chen [Wed, 4 Feb 2015 08:11:13 +0000 (16:11 +0800)]
rbd-recover-tool: add a test case for raw image & snapshot

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agorbd-recover-tool: implement the function framework
Min Chen [Wed, 4 Feb 2015 08:09:13 +0000 (16:09 +0800)]
rbd-recover-tool: implement the function framework
add control files & config files

rbd-recover-tool is an offline tool for dead ceph cluster
to recever rbd image in replicated pool from all osds.
it is a simple but usefull policy to keep data secruity on ceph

Sigbed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agorbd-recover-tool: add the basic function files
Min Chen [Wed, 4 Feb 2015 08:06:19 +0000 (16:06 +0800)]
rbd-recover-tool: add the basic function files

Signed-off-by: Min Chen <minchen@ubuntukylin.com>
10 years agoMerge pull request #3603 from dachary/wip-10729-debian-install-deps
Loic Dachary [Wed, 4 Feb 2015 07:40:57 +0000 (08:40 +0100)]
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>
10 years agoMerge pull request #3565 from rzarzynski/wip-7264
Dan Mick [Wed, 4 Feb 2015 04:57:47 +0000 (20:57 -0800)]
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>
10 years agodoc: Removed references to Inktank suppport.
John Wilkins [Tue, 3 Feb 2015 22:50:25 +0000 (14:50 -0800)]
doc: Removed references to Inktank suppport.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
10 years agodoc: Removed Inktank reference.
John Wilkins [Tue, 3 Feb 2015 22:14:22 +0000 (14:14 -0800)]
doc: Removed Inktank reference.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
10 years agoMerge pull request #3598 from ceph/wip-10720
Gregory Farnum [Tue, 3 Feb 2015 18:43:42 +0000 (10:43 -0800)]
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>
10 years agoMerge pull request #3262 from dachary/wip-jerasure
John Wilkins [Tue, 3 Feb 2015 17:21:56 +0000 (09:21 -0800)]
Merge pull request #3262 from dachary/wip-jerasure

erasure-code: update links to jerasure upstream

Reviewed-by: John Wilkins <jowilkin@redhat.com>
10 years agoinstall-deps.sh: babeltrace is not on wheezy 3603/head
Loic Dachary [Tue, 3 Feb 2015 16:40:41 +0000 (17:40 +0100)]
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>
10 years agoReplicatedPG::do_op: ignore snapset_obc if !exists 3621/head
Samuel Just [Mon, 2 Feb 2015 16:37:05 +0000 (08:37 -0800)]
ReplicatedPG::do_op: ignore snapset_obc if !exists

Fixes: 10717
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoinstall-deps.sh: get lsb_release if needed
Loic Dachary [Tue, 3 Feb 2015 16:18:09 +0000 (17:18 +0100)]
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>
10 years agoMerge pull request #3601 from dachary/wip-10729-fedora-install-deps
Loic Dachary [Tue, 3 Feb 2015 15:39:53 +0000 (16:39 +0100)]
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>
10 years agodoc/release-notes: v0.92
Sage Weil [Tue, 3 Feb 2015 15:37:05 +0000 (07:37 -0800)]
doc/release-notes: v0.92

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinstall-deps.sh: get lsb_release if needed 3601/head
Loic Dachary [Tue, 3 Feb 2015 15:26:17 +0000 (16:26 +0100)]
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>
10 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Tue, 3 Feb 2015 14:52:07 +0000 (06:52 -0800)]
Merge remote-tracking branch 'gh/next'

10 years agoMerge commit '4ada7cc8e908a26b4640497b64b2ed9986889a92' into next
Sage Weil [Tue, 3 Feb 2015 14:50:22 +0000 (06:50 -0800)]
Merge commit '4ada7cc8e908a26b4640497b64b2ed9986889a92' into next

10 years agolibrbd: removed lingering TODO message from ImageWatcher 3619/head
Jason Dillaman [Tue, 3 Feb 2015 13:57:15 +0000 (08:57 -0500)]
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>
10 years agomds: fix leaked MDCache::logger 3598/head
John Spray [Tue, 3 Feb 2015 11:19:59 +0000 (11:19 +0000)]
mds: fix leaked MDCache::logger

Fixes: #10720
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agolibrbd: fixed object map issues discovered via fsx
Jason Dillaman [Mon, 2 Feb 2015 20:08:42 +0000 (15:08 -0500)]
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>
10 years agolibrados_test_stub: added Rados::watch_flush 3592/head
Jason Dillaman [Tue, 3 Feb 2015 02:22:48 +0000 (21:22 -0500)]
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>
10 years agolibrbd: better handling for image watch errors
Jason Dillaman [Mon, 2 Feb 2015 23:07:03 +0000 (18:07 -0500)]
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>
10 years agovstart.sh: fix .ceph_port typo
Sage Weil [Tue, 3 Feb 2015 11:23:28 +0000 (03:23 -0800)]
vstart.sh: fix .ceph_port typo

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agolibrbd: prevent copyup during image shrink operations 3607/head
Jason Dillaman [Tue, 3 Feb 2015 11:07:00 +0000 (06:07 -0500)]
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>
10 years agoMerge pull request #3597 from karelstriegel/master
Loic Dachary [Tue, 3 Feb 2015 10:52:31 +0000 (11:52 +0100)]
Merge pull request #3597 from karelstriegel/master

rdb: update init-rbdmap to fix duplicate mount point

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agordb: update init-rbdmap to fix duplicate mount point 3597/head
Karel Striegel [Tue, 3 Feb 2015 10:42:06 +0000 (11:42 +0100)]
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>
10 years agocls_rbd: fixed object_map_resize boundary issue
Jason Dillaman [Tue, 3 Feb 2015 09:15:43 +0000 (04:15 -0500)]
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>
10 years agoMerge remote-tracking branch 'origin/hammer'
Josh Durgin [Tue, 3 Feb 2015 09:28:50 +0000 (10:28 +0100)]
Merge remote-tracking branch 'origin/hammer'

10 years agolibrbd: removing objects can lead to infinite loop
Jason Dillaman [Mon, 2 Feb 2015 16:20:26 +0000 (11:20 -0500)]
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>
10 years agolibrbd: pending AIO operations are now flushed asynchronously
Jason Dillaman [Mon, 2 Feb 2015 15:50:09 +0000 (10:50 -0500)]
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>
10 years agoMerge pull request #3594 from ceph/wip-10707
Sage Weil [Tue, 3 Feb 2015 08:22:52 +0000 (00:22 -0800)]
Merge pull request #3594 from ceph/wip-10707

test/cls_rgw: fix test

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge remote-tracking branch 'gh/hammer'
Sage Weil [Tue, 3 Feb 2015 08:12:23 +0000 (00:12 -0800)]
Merge remote-tracking branch 'gh/hammer'

10 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Tue, 3 Feb 2015 08:12:17 +0000 (00:12 -0800)]
Merge remote-tracking branch 'gh/next'

10 years agoMerge pull request #3590 from ceph/wip-10722
Sage Weil [Tue, 3 Feb 2015 08:09:48 +0000 (00:09 -0800)]
Merge pull request #3590 from ceph/wip-10722

rgw: move perf cleanup before context cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoFix memory leak in python rados bindings
Billy Olsen [Mon, 2 Feb 2015 23:24:59 +0000 (16:24 -0700)]
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>
10 years agotests: RBD tests now check object map validity
Jason Dillaman [Tue, 3 Feb 2015 05:32:27 +0000 (00:32 -0500)]
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>
10 years agorbd: add image flags to 'rbd info'
Jason Dillaman [Tue, 3 Feb 2015 04:37:35 +0000 (23:37 -0500)]
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>
10 years agolibrbd: added get_flags API methods
Jason Dillaman [Tue, 3 Feb 2015 04:24:09 +0000 (23:24 -0500)]
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>
10 years agocls_rbd: get_flags now reads all snapshot flags
Jason Dillaman [Tue, 3 Feb 2015 04:17:56 +0000 (23:17 -0500)]
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>
10 years agotest/cls_rgw: fix test 3594/head
Yehuda Sadeh [Tue, 3 Feb 2015 01:10:19 +0000 (17:10 -0800)]
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>
10 years agoMerge pull request #3593 from ceph/wip-autogen
Loic Dachary [Tue, 3 Feb 2015 00:42:34 +0000 (01:42 +0100)]
Merge pull request #3593 from ceph/wip-autogen

Fix do_autogen.sh so that -L is allowed

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoFix do_autogen.sh so that -L is allowed 3593/head
David Zafman [Tue, 3 Feb 2015 00:24:07 +0000 (16:24 -0800)]
Fix do_autogen.sh so that -L is allowed

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agorgw: move perf cleanup before context cleanup 3590/head
Yehuda Sadeh [Mon, 2 Feb 2015 23:25:22 +0000 (15:25 -0800)]
rgw: move perf cleanup before context cleanup

Fixes: #10722
Fixes: #10572
Backport: giant, firefly

This fixes a regression introduced in commit
de2e5fa048639de6c9ee004a93ab295625fa3b94.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agopybind: fix error hiding and inconsistency on librados load. 3565/head
Radoslaw Zarzynski [Wed, 28 Jan 2015 16:09:20 +0000 (17:09 +0100)]
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>
10 years agoMerge remote-tracking branch 'upstream/next'
Samuel Just [Mon, 2 Feb 2015 22:18:52 +0000 (14:18 -0800)]
Merge remote-tracking branch 'upstream/next'

10 years agoObjecter::_op_submit_with_budget: add timeout before call 3620/head 3622/head
Samuel Just [Mon, 2 Feb 2015 21:57:00 +0000 (13:57 -0800)]
Objecter::_op_submit_with_budget: add timeout before call

Objecter::_send_op depends on the ontimeout field being filled in
to avoid 10340 and 9582.

Fixes: 10340
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years ago0.92 v0.92
Jenkins [Mon, 2 Feb 2015 18:35:28 +0000 (10:35 -0800)]
0.92

10 years agoMerge pull request #3588 from athanatos/wip-10693
Sage Weil [Mon, 2 Feb 2015 17:21:26 +0000 (09:21 -0800)]
Merge pull request #3588 from athanatos/wip-10693

Wip 10693

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3587 from athanatos/wip-10633
Sage Weil [Mon, 2 Feb 2015 17:19:42 +0000 (09:19 -0800)]
Merge pull request #3587 from athanatos/wip-10633

ReplicatedPG::C_ProxyRead: fix dropped lock

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3538 from athanatos/wip-7862
Samuel Just [Mon, 2 Feb 2015 17:18:58 +0000 (09:18 -0800)]
Merge pull request #3538 from athanatos/wip-7862

osd: allow recovery below min size

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3539 from athanatos/wip-7861
Samuel Just [Mon, 2 Feb 2015 17:18:22 +0000 (09:18 -0800)]
Merge pull request #3539 from athanatos/wip-7861

osd: allow writes on degraded objects

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge remote-tracking branch 'origin/next'
Yehuda Sadeh [Mon, 2 Feb 2015 17:33:03 +0000 (09:33 -0800)]
Merge remote-tracking branch 'origin/next'

Conflicts:
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h

10 years agoMerge pull request #3578 from ceph/wip-10709
Josh Durgin [Mon, 2 Feb 2015 16:16:35 +0000 (17:16 +0100)]
Merge pull request #3578 from ceph/wip-10709

rbd: watch command should unwatch before exiting

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3583 from jdurgin/wip-qemu-iotests
Sage Weil [Mon, 2 Feb 2015 15:54:53 +0000 (07:54 -0800)]
Merge pull request #3583 from jdurgin/wip-qemu-iotests

qa: use correct binary path on rpm-based systems

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3584 from ceph/wip-optional-encoding
Sage Weil [Mon, 2 Feb 2015 15:52:13 +0000 (07:52 -0800)]
Merge pull request #3584 from ceph/wip-optional-encoding

encoding: ignore uninitialized instantiation in boost::optional decode

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoqa: use correct binary path on rpm-based systems 3583/head
Josh Durgin [Mon, 2 Feb 2015 15:43:35 +0000 (16:43 +0100)]
qa: use correct binary path on rpm-based systems

Fixes: #10715
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agorbd: watch command should unwatch before exiting 3578/head
Jason Dillaman [Mon, 2 Feb 2015 14:21:13 +0000 (09:21 -0500)]
rbd: watch command should unwatch before exiting

Switched the rbd CLI tool to use the new watch/unwatch API
and properly unwatch the image before exiting. Additionally,
the watch command opened the image twice -- once R/W and another
R/O.  This resulted in two watches being created for the image.
Cleaned up old/new format detection by using the existing API
methods.

Fixes: #10709
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoencoding: ignore uninitialized instantiation in boost::optional decode 3584/head
Josh Durgin [Mon, 2 Feb 2015 11:14:44 +0000 (12:14 +0100)]
encoding: ignore uninitialized instantiation in boost::optional decode

POD types won't be initialized until the decode writes to them.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3562 from liewegas/wip-lttng
Loic Dachary [Mon, 2 Feb 2015 11:12:15 +0000 (12:12 +0100)]
Merge pull request #3562 from liewegas/wip-lttng

do_autogen.sh: default to --with-lttng, -L to build without

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3485 from jdurgin/wip-merge-diff-testing
Sage Weil [Mon, 2 Feb 2015 11:07:36 +0000 (03:07 -0800)]
Merge pull request #3485 from jdurgin/wip-merge-diff-testing

Improve merge-diff test

10 years agodo_autogen.sh: default to --with-lttng, -L to build without 3562/head
Sage Weil [Mon, 2 Feb 2015 10:47:46 +0000 (02:47 -0800)]
do_autogen.sh: default to --with-lttng, -L to build without

Get developers building with LTTNG by default.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3549 from Ved-vampir/master
Sage Weil [Mon, 2 Feb 2015 10:55:39 +0000 (02:55 -0800)]
Merge pull request #3549 from Ved-vampir/master

Ceph: Fix

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolibrados: add missing tracepoints 3529/head
Sage Weil [Mon, 2 Feb 2015 10:46:10 +0000 (02:46 -0800)]
librados: add missing tracepoints

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: change pg_stat plain to display CRUSH_ITEM_NONE in pgmap output section. 3549/head
Ved-vampir [Fri, 30 Jan 2015 11:33:21 +0000 (13:33 +0200)]
osd:  change pg_stat plain to display CRUSH_ITEM_NONE in pgmap output section.

Fixes: #10519
Signed-off-by: Kiseleva Alyona <akiselyova@mirantis.com>
10 years agoMerge pull request #3501 from yuyuyu101/wip-fix-async
Haomai Wang [Mon, 2 Feb 2015 10:26:08 +0000 (18:26 +0800)]
Merge pull request #3501 from yuyuyu101/wip-fix-async

AsyncMessenger: Fix mix auth assert failed

10 years agoMerge branch 'wip-rbd-listwatchers'
Josh Durgin [Mon, 2 Feb 2015 09:33:32 +0000 (10:33 +0100)]
Merge branch 'wip-rbd-listwatchers'

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoman: add rbd status to doc/man/8/rbd.rst
Yunchuan Wen [Wed, 21 Jan 2015 00:43:07 +0000 (00:43 +0000)]
man: add rbd status to doc/man/8/rbd.rst

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
10 years agoMerge pull request #3533 from ceph/wip-disaster-doc
John Spray [Mon, 2 Feb 2015 09:04:32 +0000 (10:04 +0100)]
Merge pull request #3533 from ceph/wip-disaster-doc

doc: add cephfs disaster recovery guidance

Reviewed-by: Greg Farnum <gfarnum@redhat.com
10 years agodoc: add cephfs disaster recovery guidance 3533/head
John Spray [Mon, 5 Jan 2015 15:46:38 +0000 (15:46 +0000)]
doc: add cephfs disaster recovery guidance

This is a place to put some useful notes about
the new offline recovery tooling.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotest: add rbd status to src/test/cli/rbd/help.t
Yunchuan Wen [Wed, 21 Jan 2015 00:42:55 +0000 (00:42 +0000)]
test: add rbd status to src/test/cli/rbd/help.t

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
10 years agorbd: add status command to list the watchers of an image
Yunchuan Wen [Wed, 21 Jan 2015 00:42:41 +0000 (00:42 +0000)]
rbd: add status command to list the watchers of an image

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
10 years agoMerge branch 'librbd-cache-iohint' of git://github.com/majianpeng/ceph
Josh Durgin [Sun, 1 Feb 2015 20:17:34 +0000 (21:17 +0100)]
Merge branch 'librbd-cache-iohint' of git://github.com/majianpeng/ceph

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Conflicts:
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h

10 years agoMerge pull request #3556 from trociny/image_watcher-fixup
Josh Durgin [Sun, 1 Feb 2015 12:54:52 +0000 (13:54 +0100)]
Merge pull request #3556 from trociny/image_watcher-fixup

librbd: RemoteAsyncRequest: fix comparison operator

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3537 from ceph/wip-10688-boost-157
Loic Dachary [Sun, 1 Feb 2015 12:16:34 +0000 (13:16 +0100)]
Merge pull request #3537 from ceph/wip-10688-boost-157

#10688: support Boost 1.57.0

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agolibrbd: RemoteAsyncRequest: fix comparison operator 3556/head
Mykola Golub [Sun, 1 Feb 2015 11:58:25 +0000 (13:58 +0200)]
librbd: RemoteAsyncRequest: fix comparison operator

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
10 years agorbd: use IO hints for read/write operations
Jason Dillaman [Wed, 21 Jan 2015 20:23:31 +0000 (15:23 -0500)]
rbd: use IO hints for read/write operations

Import, export, and benchmark operations now use the librados
IO hints to indicate the read/write pattern and whether caching
is required.

Fixes: #10462
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>