Sage Weil
91d270abf8
blkin: fix -fPIC option
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:05:24 -04:00
Sage Weil
4ea342ca47
blkin: drop boost dependency
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:05:24 -04:00
Sage Weil
838dd2a603
common/zipkin_trace: fix blkin_trace_info encoding
...
- encode the same regardless of whether it is compiled in (!)
- encode in endian- and struct alignment-safe way.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:05:24 -04:00
Sage Weil
25eb14247d
msg/Message: make {encode,decode}_trace unconditional
...
These are protocol features and cannot vary based on our compilation.
Encode and decode unconditionally. The callers have already guarded these
field additions with a message version bump and are conditionally calling
decode_trace.
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:05:24 -04:00
Sage Weil
60baa90c29
CMakeLists.txt: fix libcommon link to blkin
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:05:24 -04:00
Sage Weil
bdd6c3f382
CMakeLists.txt: default WITH_BLKIN=ON
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:05:24 -04:00
Casey Bodley
26678e673a
cmake: build blkin instead of using find_package
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:05:24 -04:00
Sage Weil
bbe6d24184
src/blkin: add blkin submodule
...
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 14:05:24 -04:00
Victor Araujo
e0a1532bfb
librados: Overload aio_operate with blkin trace info parameter
...
This will enable passing trace information from rbd to librados for
aio_reads and aio_writes.
Signed-off-by: Victor Araujo <ve.ar91@gmail.com>
2017-05-05 14:05:24 -04:00
vears91
046b2bde6d
cmake: Add blkin libs to target_link_libraries
...
Signed-off-by: Victor Araujo <ve.ar91@gmail.com>
2017-05-05 14:05:24 -04:00
Casey Bodley
ffdfe6996f
blkin: add config variable osdc_blkin_trace_all
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:05:24 -04:00
Casey Bodley
f453eafe8f
blkin: add traces to librados and Objecter
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:05:24 -04:00
Casey Bodley
4516d8bf3c
blkin: add config variable osd_blkin_trace_all
...
when set, Message::decode_trace() will always create a trace for
incoming messages, even if they didn't pass trace information
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:05:24 -04:00
Victor Araujo
e3524e6977
filestore: Initialize Zipkin traces when there is a store trace
...
Avoids creating orphaned traces.
Signed-off-by: Victor Araujo <ve.ar91@gmail.com>
2017-05-05 14:05:23 -04:00
Casey Bodley
e0a5b51fad
blkin: add traces to FileStore/Journal
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:05:23 -04:00
Sage Weil
7d4af0531d
blkin: add traces to ECBackend
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:05:23 -04:00
Casey Bodley
6586e724a0
blkin: add traces to ReplicatedBackend
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:04:51 -04:00
Casey Bodley
bf8772ff8e
blkin: set up tracing in PGs
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:04:51 -04:00
Casey Bodley
a39b8c466e
blkin: set up tracing in the OSD
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:04:51 -04:00
Casey Bodley
6159027fda
blkin: osd op messages carry trace information
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 14:04:30 -04:00
Casey Bodley
679f8e6eaf
blkin: add traces to AsyncMessenger
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:47 -04:00
Casey Bodley
5cc7c06245
blkin: add traces to XioMessenger
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:47 -04:00
Casey Bodley
82160fb591
blkin: add traces to SimpleMessenger
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:47 -04:00
Casey Bodley
612d15bc1b
blkin: Messenger integration
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:46 -04:00
Casey Bodley
c8107a3e1f
msg: pass Connection to decode_message
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:46 -04:00
Casey Bodley
6862811ee2
blkin: add header and initialization
...
zipkin_trace.h is a wrapper around ztracer.hpp, which provides a stub
implementation when WITH_BLKIN is not defined
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:46 -04:00
Casey Bodley
5ec55b9daa
cmake: add module and WITH_BLKIN option for blkin
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:46 -04:00
Andrew Shewmaker
1d3255a971
Build support for BlkKin (LTTng + Zipkin) tracing
...
* Adds --with-blkin to autoconf (default without)
* Adds BLKIN_LIBS to necessary automake files
* Adds documentation for testing BlkKin tracing
Signed-off-by: Andrew Shewmaker <agshew@gmail.com>
Signed-off-by: Marios-Evaggelos Kogias <marioskogias@gmail.com>
Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 13:59:46 -04:00
Jason Dillaman
965cfb524d
Merge pull request #14834 from runsisi/wip-fix-double-free
...
librbd: minor fixes for image trash move
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-05-05 13:16:48 -04:00
Jason Dillaman
bcae20d662
Merge pull request #14830 from runsisi/wip-open-cleanup
...
librbd: remove redundant check for image id emptiness
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-05-05 13:16:35 -04:00
Kefu Chai
6e1e5407d8
Merge pull request #14927 from tchaikov/wip-19427
...
logclient: use the seq id of the 1st log entry when resetting session
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-06 00:31:33 +08:00
Kefu Chai
8ecdf9a57d
Merge pull request #14920 from tchaikov/wip-14579
...
mgr: add machinery for python modules to send MCommands to daemons
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-06 00:29:12 +08:00
Kefu Chai
e1d435b196
Merge pull request #13681 from liewegas/wip-epochs
...
osd: tag fast dispatch messages with min_epoch
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-06 00:27:58 +08:00
Sage Weil
897566070a
osd/OSDMapMapping: add assert
...
This is easier to debug than walking off into memory we don't own!
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 11:47:03 -04:00
Sage Weil
ab7df6d573
mon/OSDMonitor: fix prime_pg_temp condition
...
We have to make sure the *pg* exists, not just the pool, in the previous
map, or else we'll get a funky overrun in OSDMapMapping::get().
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-05 11:43:59 -04:00
Casey Bodley
9667761ecf
Merge pull request #14273 from cbodley/wip-rgw-beast-new-parser
...
rgw: update Beast for streaming reads in asio frontend
Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-05-05 11:38:54 -04:00
Mykola Golub
8e912b9a05
rbd-nbd: relax size check for newer kernel versions
...
Fixes: http://tracker.ceph.com/issues/19871
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-05-05 16:44:51 +02:00
Casey Bodley
4d076dd565
rgw: rename frontend from asio to beast
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 10:12:35 -04:00
Casey Bodley
5b41fb55e4
rgw: update Beast for streaming reads in asio frontend
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 10:12:35 -04:00
Casey Bodley
78cd41d599
rgw: update Beast submodule
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2017-05-05 10:12:35 -04:00
Sage Weil
99928c9e0d
Merge pull request #14931 from tchaikov/wip-19771
...
qa/tasks/ceph_manager: always fix pgp_num when done with thrashosd task
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-05 08:53:38 -05:00
Loic Dachary
dca1ae1e0a
crush: update documentation for negative choose step
...
And remove an obsolete comment.
Signed-off-by: Loic Dachary <loic@dachary.org>
2017-05-05 15:39:26 +02:00
Sage Weil
d21ea85f31
Merge pull request #14973 from ifed01/wip-bluestore-kvsync-cond
...
os/bluestore: remove unused condition variable
Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-05 08:20:35 -05:00
Igor Fedotov
71d60ba8c4
os/bluestore: remove unused condition variable
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-05-05 15:33:01 +03:00
Mykola Golub
dff49227fa
Merge pull request #14963 from dillaman/wip-19858
...
rbd-mirror: failover and failback of unmodified image results in split-brain
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-05-05 15:27:07 +03:00
Jason Dillaman
8c9971b718
Merge pull request #14965 from dmick/wip-19865
...
test/librbd/test_librbd.cc: set *features even if RBD_FEATURES is unset
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-05-05 07:30:52 -04:00
Mykola Golub
a20c62760b
Merge pull request #14465 from dillaman/wip-librbd-devstack-tempest
...
qa/workunits: switch to OpenStack Ocata release for RBD testing
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-05-05 14:12:53 +03:00
Jin Cai
1dc3e4f23a
osd/OSD.cc: lock the pg only when all conditional checks are passed when
...
scheduling a scrub
Signed-off-by: Jin Cai <caijin.caij@alibaba-inc.com>
2017-05-05 17:53:22 +08:00
Kefu Chai
561cbded0c
mon: check is_shutdown() in timer callbacks
...
introduce a helper class: C_MonContext, and initialize all timer events
using it, to ensure that they do check is_shutdown() before doing their
work.
Fixes: http://tracker.ceph.com/issues/19825
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-05 13:54:45 +08:00
Dan Mick
73bcaef349
test/librbd/test_librbd.cc: set *features even if RBD_FEATURES is unset
...
If RBD_FEATURES is not in the environment, set *features to 0 in
get_features(); callers rely on a valid return value. (This was
breaking on arm64.)
Fixes: http://tracker.ceph.com/issues/19865
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-05-04 20:15:58 -07:00