Jason Dillaman
eb526af773
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>
2015-02-02 10:05:20 -05:00
Josh Durgin
2a0e9b77b0
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>
2015-02-02 13:06:12 +01:00
Loic Dachary
a63cccce11
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>
2015-02-02 12:12:15 +01:00
Sage Weil
0af16c3672
Merge pull request #3485 from jdurgin/wip-merge-diff-testing
...
Improve merge-diff test
2015-02-02 03:07:36 -08:00
Sage Weil
f40ee8c940
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>
2015-02-02 03:04:48 -08:00
Sage Weil
de3b5c4888
Merge pull request #3549 from Ved-vampir/master
...
Ceph: Fix
Reviewed-by: Sage Weil <sage@redhat.com>
2015-02-02 02:55:39 -08:00
Sage Weil
7590387ea8
librados: add missing tracepoints
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-02-02 02:46:10 -08:00
Ved-vampir
57bac8ea88
osd: change pg_stat plain to display CRUSH_ITEM_NONE in pgmap output section.
...
Fixes : #10519
Signed-off-by: Kiseleva Alyona <akiselyova@mirantis.com>
2015-02-02 12:29:42 +02:00
Haomai Wang
082551ba0e
Merge pull request #3501 from yuyuyu101/wip-fix-async
...
AsyncMessenger: Fix mix auth assert failed
2015-02-02 18:26:08 +08:00
Josh Durgin
0d6963b3bc
Merge branch 'wip-rbd-listwatchers'
...
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-02 10:33:32 +01:00
Yunchuan Wen
4aa9f3f745
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>
2015-02-02 10:32:23 +01:00
John Spray
b357ce2778
Merge pull request #3533 from ceph/wip-disaster-doc
...
doc: add cephfs disaster recovery guidance
Reviewed-by: Greg Farnum <gfarnum@redhat.com
2015-02-02 10:04:32 +01:00
John Spray
a007c529e8
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>
2015-02-02 09:56:14 +01:00
Yunchuan Wen
9dbd37bcd5
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>
2015-02-02 05:51:23 +00:00
Yunchuan Wen
6fc0b80ac8
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>
2015-02-02 05:51:23 +00:00
Josh Durgin
b40cb61653
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
2015-02-01 21:30:57 +01:00
Josh Durgin
d0de79842f
Merge pull request #3556 from trociny/image_watcher-fixup
...
librbd: RemoteAsyncRequest: fix comparison operator
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-02-01 13:54:52 +01:00
Loic Dachary
c4886cc04e
Merge pull request #3537 from ceph/wip-10688-boost-157
...
#10688 : support Boost 1.57.0
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-02-01 13:16:34 +01:00
Mykola Golub
65fbf22681
librbd: RemoteAsyncRequest: fix comparison operator
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-02-01 13:58:25 +02:00
Jason Dillaman
1cf30e6071
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>
2015-02-01 08:42:48 +01:00
Josh Durgin
26ba4315af
Merge remote-tracking branch 'origin/wip-4087'
...
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Conflicts:
src/librbd/LibrbdWriteback.cc
2015-02-01 07:36:05 +01:00
Sage Weil
4cd7448f0c
Merge pull request #3545 from thesues/fix-cmp-xattr
...
Fix ReplicatedPG do_xattr_cmp_u64
Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-31 14:08:10 -08:00
Sage Weil
e143ff7dca
Merge pull request #3555 from ceph/wip-10106
...
rgw: flush xml header on get acl request
Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-31 14:01:03 -08:00
Sage Weil
3e7e21b07f
Merge pull request #3527 from wonzhq/op-stat
...
osd: don't log op stats for proxy read in the cache tier
Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-31 13:16:15 -08:00
Sage Weil
b79c349067
Merge pull request #3503 from ceph/wip-pg-reqids
...
osd: index PGLog with optional extra_reqids in each log entry
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Wang, Zhiqiang <zhiqiang.wang@intel.com>
2015-01-31 13:15:47 -08:00
Josh Durgin
7ac2cdf621
Merge pull request #3554 from ceph/wip-10572
...
rgw: finalize perfcounters after shutting down storage
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-31 12:09:55 +01:00
Josh Durgin
346b4b022e
Merge pull request #3323 from ceph/wip-10445
...
rgw: use gc for multipart abort
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-31 03:06:20 -08:00
Sage Weil
bd8671f604
ceph_test_rados: fix typo
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-01-31 02:17:38 -08:00
Josh Durgin
99c48de370
Merge pull request #3452 from majianpeng/iohint
...
Iohint in librbd cache.
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-01-31 01:03:48 -08:00
Kim Vandry
ac161bf38b
librados: expose rados_{read|write}_op_assert_version() in C
...
Previously, assert_version was only available in the C++ interface.
Signed-off-by: Kim Vandry <vandry@TZoNE.ORG>
2015-01-31 15:00:31 +09:00
Kim Vandry
11b64247a3
Add test case for librados assert_version()
...
Signed-off-by: Kim Vandry <vandry@TZoNE.ORG>
2015-01-31 14:39:53 +09:00
Yehuda Sadeh
eb45f86134
rgw: flush xml header on get acl request
...
Fixes : #10106
Backport: firefly, giant
dump_start() updates the formatter with the appropriate prefix, however,
we never flushed the formatter.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-01-30 18:42:40 -08:00
Yehuda Sadeh
de2e5fa048
rgw: finalize perfcounters after shutting down storage
...
Fixes : #10572
Backport: giant, firefly
First disable the storage subsystem, then disable perfcounters.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-01-30 14:34:32 -08:00
Jianpeng Ma
cab246d001
librbd: Don't do readahead for random read.
...
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2015-01-30 13:29:26 -08:00
Sage Weil
743436749e
Merge pull request #3516 from ceph/wip-mdsmon-args
...
mon/MDSMonitor: fix gid/rank/state parsing
Reviewed-by: Huang Jun <hjwsm1989@gmail.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
2015-01-30 13:22:48 -08:00
Yehuda Sadeh
f0e82edec9
Merge pull request #3551 from ceph/wip-10698
...
rgw: fail s3 POST auth if keystone not configured
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-01-30 13:14:38 -08:00
Samuel Just
77689f18ad
ReplicatedPG::C_ProxyRead: fix dropped lock
...
Fixes: 10633
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-01-30 12:54:47 -08:00
Samuel Just
0e3af8d8f9
ReplicatedPG: only populate_obc_watchers if active
...
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-01-30 11:45:37 -08:00
Samuel Just
b31221afa0
OSD: allow recovery in peered
...
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-01-30 11:45:37 -08:00
Samuel Just
818b91b7e2
osd/: go "peered" instead of "active" when < min_size
...
In the case of a replicated pool, the pg will transition to "peered"
rather than "active", where it can perform backfill bringing itself up
to min_size peers. To that end, most operations now require
is_peered rather than is_active (OSDOps being the primary exception).
Also, rather than using the query_epoch on the activation message as the
activation epoch (for last_epoch_started) on the replica, we instead
use the last_epoch_started in the info sent by the primary. This
allows the primary to not advance last_epoch_started past the last
known actual activation. This will prevent later peering epochs from
requiring the last_update from a peered epoch to go active (might be
divergent).
Fixes : #7862
Signed-off-by: Samuel Just <sam.just@inktank.com>
2015-01-30 11:45:37 -08:00
Samuel Just
e5a96fdbcd
PG: move most of all_activated_and_commited into the AllReplicasActivated handler
...
It's confusing to have that logic split up so much.
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-01-30 11:45:37 -08:00
Samuel Just
5911b45011
PG::proc_master_log: assume les and history.les from log source
...
Otherwise, we might later go peered (not active) and not distribute
a non-0 last_epoch_started. This should be safe as the log recipient
will have a last_update reflecting that interval as well.
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-01-30 11:45:37 -08:00
Samuel Just
c4793abbf8
osd_types: add last_peered, last_became_peered
...
Signed-off-by: Samuel Just <sam.just@inktank.com>
2015-01-30 11:45:37 -08:00
Samuel Just
63e5f578f8
PG: break waiting_for_peered out of waiting_for_active
...
waiting_for_peered now holds ops until peering completes (activation,
not necessarily state active). waiting_for_active now holds
specifically MOSDOp blocked on:
- scrub
- replay
- state active
Signed-off-by: Samuel Just <sam.just@inktank.com>
2015-01-30 11:45:37 -08:00
Samuel Just
96c3af83b1
PG: remove very obsolete comment about backfill_pos
...
Signed-off-by: Samuel Just <sam.just@inktank.com>
2015-01-30 11:45:37 -08:00
Samuel Just
aac4c255e2
osd/: add state PG_STATE_PEERED
...
We need a state to represent the pg state where we are below
min_size, but trying to recover.
Signed-off-by: Samuel Just <sam.just@inktank.com>
2015-01-30 11:45:37 -08:00
Samuel Just
abd115484a
doc: add documentation for undersized
...
Signed-off-by: Samuel Just <sam.just@inktank.com>
2015-01-30 11:45:34 -08:00
Gregory Farnum
d3f1d6ea69
Merge pull request #3553 from ceph/wip-10701
...
rgw: use strict_strtoll() for content length
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-01-30 11:37:42 -08:00
Samuel Just
1f165d2547
ReplicatedPG: block writes on degraded objects for ec pools
...
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-01-30 11:33:31 -08:00
Samuel Just
964d17756f
append_log: use remove_snap_mapped_object
...
Backport: giant, firefly
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-01-30 11:33:25 -08:00