Commit Graph

39844 Commits

Author SHA1 Message Date
Loic Dachary
ef90c6f11e Merge pull request #3783 from tchaikov/update-doc
doc: update doc with latest code

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-02-24 11:49:05 +01:00
Ved-vampir
31b1532b1c common: add perf counters description
Signed-off-by: Kiseleva Alyona <akiselyova@mirantis.com>
2015-02-24 13:47:15 +03:00
Danny Al-Gaaf
0be126d5f2 erasure-code/shec/shec.cc: fix resource leak
Free tmpmat in error case. Fix for:

[src/erasure-code/shec/shec.cc:176]: (error) Memory leak: tmpmat

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-24 10:50:11 +01:00
Danny Al-Gaaf
50b69e7190 TestErasureCodeShec_all.cc: prefer ++operator for non-primitive iter
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-24 10:47:07 +01:00
Danny Al-Gaaf
13f6f26bfa osd/osd_types.cc: prefer ++operator for non-primitive iter
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-24 10:46:17 +01:00
Danny Al-Gaaf
5df917cb9a mon/PGMap.cc: prefer ++operator for non-primitive iter
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-24 10:45:27 +01:00
Danny Al-Gaaf
609a070560 erasure-code/shec/shec.cc: reduce scope of variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-24 10:43:57 +01:00
Danny Al-Gaaf
c1abcb71cc ErasureCodeShec.cc: prefer ++operator for non-primitive iter
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-24 10:41:44 +01:00
Danny Al-Gaaf
b7ea69265d libradosstriper/striping.cc: fix resource leak
Fix for:

CID 1221525 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Failing to save or free storage allocated
 by this->getObjName(soid, 0UL) leaks it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2015-02-24 09:27:36 +01:00
Kefu Chai
c1e792d8aa doc: update doc with latest code
* also silence some warnings of doxygen

Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-02-24 16:05:12 +08:00
Gregory Farnum
eb0c34b61a Merge pull request #3782 from ceph/hadoop-workunits
Hadoop workunits
2015-02-23 22:35:08 -08:00
Gregory Farnum
e4959ed24e Merge pull request #3753 from ceph/wip-10743
mds: wait for mydir replicas to go away in stopping

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-02-23 22:26:36 -08:00
Gregory Farnum
001de29fb9 Merge pull request #3775 from ceph/wip-10862
mon: do not try and "deactivate" the last MDS

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-02-23 22:22:27 -08:00
Noah Watkins
15da810086 qa: update old replication tests
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-02-23 20:00:24 -08:00
Noah Watkins
6bc2b024fd hadoop: add terasort workunit
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2015-02-23 20:00:24 -08:00
Josh Durgin
c1c38afcf9 Merge pull request #3780 from ceph/wip-osdc-watch-error
osdc: watch error callback invoked on cancelled context

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-23 17:21:04 -08:00
Josh Durgin
e332d84efc Merge pull request #3781 from ceph/wip-librbd-image-watcher-tests
tests: fix potential race conditions in test_ImageWatcher

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-23 17:20:52 -08:00
Jason Dillaman
655e616249 tests: fix potential race conditions in test_ImageWatcher
The tests were sending invalid responses back to ImageWatchers
(missing the result code), which had the potential to allow the
lock to be acquired sooner than the test was expecting since
ImageWatcher would assume the last of response code meant no
clients owned the exclusive lock and would retry as fast as
possible.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-23 20:09:56 -05:00
Jason Dillaman
9c03750acd osdc: watch error callback invoked on cancelled context
The C_DoWatchError context did not verify whether or not the
watch was cancelled prior to invoking the callback.  This
resulted in sporadic crashes when reconnect errors bubbled
up to destroyed objects.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-23 20:00:43 -05:00
Josh Durgin
11f8cd81da Merge pull request #3779 from liewegas/wip-watch-timeout-test
make watch timeout test less likely to fail under thrashing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-23 14:51:49 -08:00
Sage Weil
a9bfd5ddda ceph_test_rados_api_watch_notify: wait longer for watch timeout
OSD thrashing can delay this indefinitely; longer delay means lower
probability of that happening.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 14:46:16 -08:00
Loic Dachary
92d26bb82b Merge pull request #3686 from ceph/wip-crushtool
crushtool: process commands in a sensible order

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-02-23 23:20:32 +01:00
Sage Weil
f85f2f206d Merge pull request #3778 from dachary/wip-crushtool
crush: re-organize the help to clarify ordering
2015-02-23 13:32:23 -08:00
Loic Dachary
62e7b4a377 crush: re-organize the help to clarify ordering
The options are grouped according to the stage they relate to

   - input/build
   - tunables adjustments
   - modifications
   - display/test
   - output

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-23 21:12:21 +01:00
Sage Weil
b8d497e493 crushtool: add test for crushtool ordering
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 11:21:25 -08:00
Sage Weil
dca345280e crushtool: send --tree to stdout
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 11:21:25 -08:00
Sage Weil
2b92320b9a crushtool: name osds with --build function
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 11:21:25 -08:00
Sage Weil
f52840c8a9 crushtool: do not dump tree on build
This pollutes the output.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 11:21:25 -08:00
Sage Weil
b5d6e76790 doc/release-notes: v0.87.1
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 10:46:56 -08:00
Sage Weil
91cda52c10 osd: better debug for maybe_handle_cache
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 10:10:54 -08:00
Sage Weil
bee91548b0 osd,mon: explicitly specify OSD features in MOSDBoot
We are using the connection features to populate the features field in the
OSDMap, but this is the *intersection* of mon and osd features, not the
osd features.  Fix this by explicitly specifying the features in
MOSDBoot.

Fixes: #10911
Backport: giant, firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 10:10:54 -08:00
Sage Weil
30c904ea67 osd: do not proxy reads unless all OSDs proxy features too
Specifically, the object_copy_data_t encoding changed such that the reply
encoding is dependent on features; if we proxy such a read to an old
OSD it will use *our* features to encode instead of the original OSD's.

This effectively conditionally reverts 8e145e08ed
when the cluster features aren't all present.

Fixes: #10788
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 10:10:54 -08:00
Sage Weil
e0e765f9dd osd/OSDMap: cache get_up_osd_features
This method is O(n) and called from in a few places for each IO operation.
Cache the value since it does not change over the lifetime of a single
epoch.  Invalidate on apply_incremental() and decode.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-23 10:10:54 -08:00
Josh Durgin
e1f2c97256 Merge pull request #3777 from ceph/wip-librbd-snap-create-race
librbd: fixed snap create race conditions

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-23 10:00:01 -08:00
Jason Dillaman
63f6c9bac9 librbd: fixed snap create race conditions
Since the post-snap create header update runs asynchrously
in a finalizer callback, it's possible that the snapshot
is not immediately visible.  Also, if a proxied snap create
message is replayed, it's possible for the client to receive
a EEXISTS error.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-23 12:46:33 -05:00
Loic Dachary
fb1d479a3a Merge pull request #3776 from dachary/wip-development-workflows
doc: development workflows

Reviewed-by: Yuri Weinstein <yuriw@redhat.com>
2015-02-23 18:46:16 +01:00
Loic Dachary
725822d135 doc: development workflows
Document the high level view of the development workflows which are
otherwise implicit and non trivial to figure out.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-23 18:11:32 +01:00
Josh Durgin
da1ed53987 Merge pull request #3758 from ceph/wip-10898
librbd: improved ImageWatcher duplicate message detection

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-23 09:08:11 -08:00
Josh Durgin
53c300a7d0 Merge pull request #3770 from ceph/wip-librbd-exclusive-lock-config
rbd: disable RBD exclusive locking by default

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-23 08:37:04 -08:00
Jason Dillaman
69b3857924 librbd: improved ImageWatcher duplicate message detection
Added a unique client id to announcement messages so that duplicate
lock release / acquired / requested messages can be detected and
ignored by the client.  Also fixed an issue processing the result
code for async operations.

Fixes: #10898
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-23 11:07:53 -05:00
Jason Dillaman
942f875135 librbd: add test instances for watch/notify messages
Ensure that the librbd watch/notify messages are tested
for backwards compatibility.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-23 11:07:53 -05:00
Jason Dillaman
10d86863f2 librbd: minor cleanup of ImageWatcher messages
Moved all RPC messages to their own classes to facilitate cleaner
version control and backward compatibility.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-23 11:07:52 -05:00
Jason Dillaman
0ed296b1e3 rbd: disable RBD exclusive locking by default
Utilize the existing rbd_default_features config option to
control whether or not to enable RBD exclusive locking and
object map features by default.  Also added a new option to
the rbd cli to specify the image features when creating images.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-02-23 10:47:05 -05:00
Loic Dachary
280a9bf4b7 doc: page title suitable for :doc:
When using :doc:`/dev/sepia` the page title is inlined. The modified
title is easier to include as part of a sensible sentence.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-23 16:29:05 +01:00
Loic Dachary
269df80442 doc: spellcheck quick development guide
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-23 16:28:26 +01:00
Loic Dachary
89d5200bd5 doc: do not doxygen src/tracing
because it does not publish an API that needs to be documented and
because it triggers https://github.com/ceph/asphyxiate/issues/1 in some
contexts.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-02-23 16:26:27 +01:00
John Spray
a2867987bc mon: do not try and "deactivate" the last MDS
Fixes: #10862
Signed-off-by: John Spray <john.spray@redhat.com>
2015-02-23 14:23:56 +00:00
Sage Weil
5c62ffb2bb Merge pull request #3763 from Ved-vampir/master
common: add description in PerfCounter class

Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-22 20:34:35 -08:00
Sage Weil
8221687f5a Merge remote-tracking branch 'gh/hammer' 2015-02-21 21:52:03 -08:00
Kefu Chai
f6530474c0 Merge pull request #3741 from ceph/wip-cmake-vstart
cmake fixes and enable vstart with cmake build 

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-02-22 10:10:40 +08:00