Commit Graph

38686 Commits

Author SHA1 Message Date
Loic Dachary
1798803292 Merge pull request #3455 from bveuille/wip-documentation
doc: Change Availability text in all of the man pages

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-01-26 12:42:32 +01:00
Josh Durgin
c602a8547b Merge pull request #3486 from ceph/wip-librbd-trim-error
librbd: trim would not complete if exclusive lock is lost

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-25 12:55:24 -08:00
Gregory Farnum
e1aecdf822 Merge pull request #3487 from ceph/wip-install-deps
install-deps: fix LC_ALL setting

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-01-25 11:59:16 -08:00
Noah Watkins
ca1d21e392 install-deps: fix LC_ALL setting
On my box LC_ALL=C# includes the '#' in the value without
a space between C and '#' and things go completely bonkers.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-01-25 11:45:48 -08:00
Josh Durgin
e4a97c60e3 librados_test_stub: add IoCtx::get_instance_id()
This fixes make check

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2015-01-24 23:12:18 -08:00
Josh Durgin
f3bdd385ff Merge branch 'wip-8902'
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-24 15:37:09 -08:00
Jason Dillaman
4ac3cd729c librbd: throttle async progress callbacks
Ensure that no more than one outstanding progress callback
is queued for notification.  This will allow remote progress
updates to be sent at a rate in which all watch/notify
clients can support.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:05:49 -08:00
Jason Dillaman
cd9d8eb79a librbd: add more robust retry handling to maintenance ops
When image locking is enabled, snapshot create, resize, and
flatten are coordinated with the lock owner.  Previously, if the
the lock owner changed during one of this operations, the
operation would fail.  Now librbd will attempt to restart the
operation with the new lock owner (or become the owner itself).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:05:49 -08:00
Jason Dillaman
1b6467b79f librbd: assert header lock ownership for maint operations
The resize, flatten, and snapshot maintenance operations now
use the new assert_lock feature to ensure that the current
client still owns the header lock when making changes.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:05:49 -08:00
Jason Dillaman
71e84e048f cls_lock: New assert_locked operation
The assert_locked operation can be combined with other
RADOS ops to prevent an update to a locked object when
the client doesn't own the lock.  It will not attempt to
acquire the lock if the object is not currently locked.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:05:49 -08:00
Jason Dillaman
376c7e0f14 librbd: Coordinate maintenance through exclusive lock leader
When the exclusive lock feature is enabled, only a single client can
modify the image.  As a result, certain maintenance activities
need to be proxied from the maintenance client to the active
leader.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:05:49 -08:00
Jason Dillaman
dfa96c5801 librbd: Add maintenance operation requests to ImageWatcher
Snapshot, flatten, and resize maintenance operations can now
be coordinated via the client holding the exclusive lock for the
image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:05:49 -08:00
Jason Dillaman
e6f12805c2 librados: Expose RadosClient instance id through librados
Allow librados clients to utilize the global id of the RadosClient.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:03:44 -08:00
Jason Dillaman
398bc9648d librbd: Create async versions of long-running maintenance operations
Resize and flatten now have async versions. The existing resize
and flatten operations now use the async versions internally. The
async operations will be used by the client holding the exclusive
lock when it receives maintenance requests from other clients.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 15:03:44 -08:00
Josh Durgin
48910a5232 Merge pull request #3479 from ceph/wip-librbd-close-deadlock
librbd: potential deadlock on close_image

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-23 23:51:37 -08:00
Jason Dillaman
dc1630e9f2 librbd: trim would not complete if exclusive lock is lost
The trim completion context was not properly invoked if the
image's exclusive lock was lost between issuing a librados call
and receiving its completion.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-24 02:28:07 -05:00
Loic Dachary
53836948e9 Merge pull request #3466 from delco225/master
installation error on ubuntu 14 corrected  

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-01-24 01:41:50 +01:00
delco225
3347e0daec bug: error when installing ceph dependencies with install-deps.sh
The parsing is sensitive to i18n and will fail if, for instance, it is set to French.
Workaround the problem by always setting the language to C so the script
can safely assume all output will be in english.

http://tracker.ceph.comm/issues/10596 Fixes: #10596

Signed-off-by: Ahoussi Armand <ahoussi.say@telecom-bretagne.eu>
2015-01-24 01:35:27 +01:00
Sage Weil
1255381210 Merge pull request #3482 from ktdreyer/wip-rpm-glob-man-pages
ceph.spec.in: use wildcards to capture man pages
2015-01-23 14:14:24 -08:00
Ken Dreyer
9b220bddea ceph.spec.in: use wildcards to capture man pages
Use wildcard to capture gzipped man pages for ceph-clsinfo(8) and
librados-config(8). In addition to future-proofing us against
possible compression type changes down the road, this also aligns us
with the existing convention that's used to capture the rest of the man
page files.
2015-01-23 15:08:34 -07:00
Josh Durgin
96bc1f4942 Merge pull request #3040 from cchengleo/wip-copy-on-read
RBD copy on read

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-23 13:44:40 -08:00
Cheng Cheng
b304af344e librbd: clean up log message for copy-on-read
Signed-off-by: Cheng Cheng <ccheng.leo@gmail.com>
2015-01-23 14:20:39 -05:00
Jason Dillaman
6f6facb981 librbd: potential deadlock on close_image
The owner_lock was incorrectly held when unregistering the image
watcher.  It was possible for the ImageWatcher finisher to be
running code that was then deadlocked waiting to acquire the
owner_lock while the close_image thread was attempting to shutdown
the deadlocked finisher.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-23 13:00:40 -05:00
Jason Dillaman
bda293adc2 librbd: fix copy-on-read / resize down race condition
There was a rare race condition between a pending CoR operation
and a resize down operation resulting in a CoR copyup past the
new, reduced parent overlap.  This commit also adds additional
log message details for CoR.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-23 12:27:41 -05:00
Jason Dillaman
e9170335a2 test: add rados_nobjects_list_xyz functions to librados test stub
The new RBD copy-on-read unit test case uses these RADOS functions
to verify that the CoR operation was successful.  This implements
these functions in the librados_test_stub library.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-23 12:27:41 -05:00
Jason Dillaman
7c7f072aab librbd: eliminate CoR callback
When issuing the CoR copyup request, there is no need to keep
initialize the librados callback.  Treat the CoR as a fire-and-
forget operation.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-23 12:27:40 -05:00
Jason Dillaman
9790b0f96b librbd: use finisher for copy-on-read copyup fulfillment
When the RBD cache is enabled, the ObjectCacher does not allow
reentrancy to read the full object.  As a temporary workaround,
use the Finisher to handle CoR read requests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-23 12:27:39 -05:00
Josh Durgin
a73b8f816c Merge pull request #3456 from ceph/wip-4092
librbd: schedule header refresh after watch error

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-23 08:47:27 -08:00
Jason Dillaman
55dfe032b8 librbd: schedule header refresh after watch error
If a librados watch error occurs, it is possible that one
or more events were missed.  Therefore, flag the header as
dirty so that it will be reloaded after the next operation.

Fixes: #4092
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-01-23 10:19:04 -05:00
Loic Dachary
b782030e87 Merge pull request #3472 from armaseg/master
doc: Some files still use http://ceph.newdream.net

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-01-23 15:20:57 +01:00
Armando Segnini
33f0afdd15 doc: Some files still use http://ceph.newdream.net
This probably redirects to http://ceph.com but ceph.newdream.net still appears in some places

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

Related: #9922

Signed-off-by: Armando Segnini <armando.segnini@telecom-bretagne.eu>
2015-01-23 12:28:58 +01:00
Loic Dachary
1766351427 Merge pull request #3469 from tchaikov/fix-bashism-in-ceph-debugpack
ceph-debugpack: fix bashism of {1..10}

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-01-23 09:57:25 +01:00
Sage Weil
2d60db3b8c Merge pull request #3449 from wonzhq/rocksdb-del
RocksDBStore: filterpolicy is not deleted when RocksDBStore destructs

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
2015-01-22 20:03:51 -08:00
Kefu Chai
2f9b3bdcd3 ceph-debugpack: fix bashism of {1..10}
* replaces {1..10} with $(seq 10)
* fixes 772220@bugs.debian.org

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2015-01-23 10:53:16 +08:00
Sage Weil
026c9cb21c Merge pull request #3467 from ktdreyer/wip-packaging-description-formatting
ceph.spec.in: standardize capitalization and punctuation
2015-01-22 15:51:06 -08:00
Ken Dreyer
fff3cf91de ceph.spec.in: capitalization and punctuation
Ensure that each sub-package's %description starts with a capital letter
and ends with a dot.

rpmlint has a rule that checks the Summary field, but not %description
(yet).

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2015-01-22 16:45:28 -07:00
Sage Weil
dd3ebf38d9 Merge pull request #3424 from dachary/wip-reuse-dmcrypt
ceph-disk: do not reuse partition if encryption required

Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-22 14:45:04 -08:00
Josh Durgin
9a3ac5ff61 Merge pull request #3464 from ceph/wip-10614
test/librbd/fsx.c: disable RBD exclusive locking for krbd

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-22 13:28:25 -08:00
João Eduardo Luís
f31910d81c Merge pull request #3285 from ceph/wip-10439
pybind: ceph_argparse: validate incorrectly formed targets

Reviewed-by: Dan Mick <dan.mick@redhat.com>
2015-01-22 21:25:00 +00:00
Josh Durgin
448a3c3335 Merge remote-tracking branch 'origin/next' 2015-01-22 13:05:12 -08:00
Jason Dillaman
a6eadaefb7 rbd image_read.sh: disable exclusive locking
Until the kernel supports RBD exclusive locking, this test
has been updated to create shared images (exclusive locking
disabled).

Fixes: #10613
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-22 13:03:40 -08:00
Gregory Farnum
33a68604b5 Merge pull request #3458 from liewegas/wip-vstart
vstart.sh: pull default CEPH_PORT from .ceph_port

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-01-22 11:34:06 -08:00
Sage Weil
f13cda592d Merge pull request #3317 from ceph/wip-10474
FileJournal: Fix hang in FileJournal::close()

Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-22 11:26:51 -08:00
Sage Weil
235d97a66a Merge pull request #3460 from athanatos/wip-10524
Wip 10524

Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-22 11:19:47 -08:00
Sage Weil
edd345a7bd Merge pull request #3461 from athanatos/wip-10535
ceph_test_objectstore: enable keyvaluestore experimental option

Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-22 11:15:46 -08:00
Sage Weil
ded972ed20 Merge pull request #3462 from athanatos/wip-10536
ReplicatedPG::_scrub: don't record digests for snapdirs

Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-22 11:14:50 -08:00
Sage Weil
b5a8f8026d Merge pull request #3459 from athanatos/wip-10603
ObjectStore::_update_op: treat CLONERANGE2 like CLONE

Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-22 11:12:06 -08:00
Samuel Just
387a37980f Merge pull request #3350 from liewegas/wip-10477
osd: populate blocked_by with peers we are trying to activate

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-01-22 11:11:35 -08:00
Sage Weil
2a38fb80c7 Merge pull request #3457 from athanatos/wip-txn-append
Wip txn append

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-22 11:11:22 -08:00
Samuel Just
1afd1c6527 Merge pull request #3351 from liewegas/wip-10512
osd: fix blocked vs blocking rqeuest requeue order on interval change

Reviewed-by: Samuel Just <sjust@redhat.com>
2015-01-22 11:10:58 -08:00