]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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 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>
10 years agoMerge remote-tracking branch 'origin/wip-4087'
Josh Durgin [Sun, 1 Feb 2015 06:36:05 +0000 (07:36 +0100)]
Merge remote-tracking branch 'origin/wip-4087'

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Conflicts:
src/librbd/LibrbdWriteback.cc

10 years agoMerge pull request #3545 from thesues/fix-cmp-xattr
Sage Weil [Sat, 31 Jan 2015 22:08:10 +0000 (14:08 -0800)]
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>
10 years agoMerge pull request #3555 from ceph/wip-10106
Sage Weil [Sat, 31 Jan 2015 22:01:03 +0000 (14:01 -0800)]
Merge pull request #3555 from ceph/wip-10106

rgw: flush xml header on get acl request

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3527 from wonzhq/op-stat
Sage Weil [Sat, 31 Jan 2015 21:16:15 +0000 (13:16 -0800)]
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>
10 years agoMerge pull request #3503 from ceph/wip-pg-reqids
Sage Weil [Sat, 31 Jan 2015 21:15:47 +0000 (13:15 -0800)]
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>
10 years agoMerge pull request #3554 from ceph/wip-10572
Josh Durgin [Sat, 31 Jan 2015 11:09:55 +0000 (12:09 +0100)]
Merge pull request #3554 from ceph/wip-10572

rgw: finalize perfcounters after shutting down storage

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3323 from ceph/wip-10445
Josh Durgin [Sat, 31 Jan 2015 11:06:20 +0000 (03:06 -0800)]
Merge pull request #3323 from ceph/wip-10445

rgw: use gc for multipart abort

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoceph_test_rados: fix typo
Sage Weil [Sat, 31 Jan 2015 10:15:53 +0000 (02:15 -0800)]
ceph_test_rados: fix typo

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3452 from majianpeng/iohint
Josh Durgin [Sat, 31 Jan 2015 09:03:48 +0000 (01:03 -0800)]
Merge pull request #3452 from majianpeng/iohint

Iohint in librbd cache.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agorgw: flush xml header on get acl request 3555/head
Yehuda Sadeh [Sat, 31 Jan 2015 02:42:40 +0000 (18:42 -0800)]
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>
10 years agorgw: finalize perfcounters after shutting down storage 3554/head
Yehuda Sadeh [Fri, 30 Jan 2015 22:34:32 +0000 (14:34 -0800)]
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>
10 years agolibrbd: Don't do readahead for random read.
Jianpeng Ma [Mon, 12 Jan 2015 06:35:28 +0000 (14:35 +0800)]
librbd: Don't do readahead for random read.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3516 from ceph/wip-mdsmon-args
Sage Weil [Fri, 30 Jan 2015 21:22:48 +0000 (13:22 -0800)]
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>
10 years agoMerge pull request #3551 from ceph/wip-10698
Yehuda Sadeh [Fri, 30 Jan 2015 21:14:38 +0000 (13:14 -0800)]
Merge pull request #3551 from ceph/wip-10698

rgw: fail s3 POST auth if keystone not configured

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoReplicatedPG::C_ProxyRead: fix dropped lock 3587/head
Samuel Just [Fri, 30 Jan 2015 20:54:47 +0000 (12:54 -0800)]
ReplicatedPG::C_ProxyRead: fix dropped lock

Fixes: 10633
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoReplicatedPG: only populate_obc_watchers if active 3538/head
Samuel Just [Mon, 1 Dec 2014 22:52:11 +0000 (14:52 -0800)]
ReplicatedPG: only populate_obc_watchers if active

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoOSD: allow recovery in peered
Samuel Just [Wed, 26 Nov 2014 22:00:34 +0000 (14:00 -0800)]
OSD: allow recovery in peered

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoosd/: go "peered" instead of "active" when < min_size
Samuel Just [Fri, 7 Nov 2014 23:20:02 +0000 (15:20 -0800)]
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>
10 years agoPG: move most of all_activated_and_commited into the AllReplicasActivated handler
Samuel Just [Thu, 20 Nov 2014 23:50:50 +0000 (15:50 -0800)]
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>
10 years agoPG::proc_master_log: assume les and history.les from log source
Samuel Just [Tue, 18 Nov 2014 00:22:59 +0000 (16:22 -0800)]
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>
10 years agoosd_types: add last_peered, last_became_peered
Samuel Just [Thu, 30 Oct 2014 20:21:01 +0000 (13:21 -0700)]
osd_types: add last_peered, last_became_peered

Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoPG: break waiting_for_peered out of waiting_for_active
Samuel Just [Wed, 29 Oct 2014 21:10:13 +0000 (14:10 -0700)]
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>
10 years agoPG: remove very obsolete comment about backfill_pos
Samuel Just [Wed, 29 Oct 2014 21:07:09 +0000 (14:07 -0700)]
PG: remove very obsolete comment about backfill_pos

Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoosd/: add state PG_STATE_PEERED
Samuel Just [Wed, 29 Oct 2014 20:57:01 +0000 (13:57 -0700)]
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>
10 years agodoc: add documentation for undersized
Samuel Just [Wed, 29 Oct 2014 21:03:40 +0000 (14:03 -0700)]
doc: add documentation for undersized

Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #3553 from ceph/wip-10701
Gregory Farnum [Fri, 30 Jan 2015 19:37:42 +0000 (11:37 -0800)]
Merge pull request #3553 from ceph/wip-10701

rgw: use strict_strtoll() for content length

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoReplicatedPG: block writes on degraded objects for ec pools 3539/head
Samuel Just [Tue, 27 Jan 2015 22:08:43 +0000 (14:08 -0800)]
ReplicatedPG: block writes on degraded objects for ec pools

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoappend_log: use remove_snap_mapped_object
Samuel Just [Tue, 27 Jan 2015 02:31:26 +0000 (18:31 -0800)]
append_log: use remove_snap_mapped_object

Backport: giant, firefly
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoReplicatedPG::agent_maybe_evict: take write lock, skip on failure
Samuel Just [Fri, 23 Jan 2015 18:01:39 +0000 (10:01 -0800)]
ReplicatedPG::agent_maybe_evict: take write lock, skip on failure

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoReplicatedPG: if we got ENOENT and an obc, we need to check the locks
Samuel Just [Wed, 14 Jan 2015 22:27:02 +0000 (14:27 -0800)]
ReplicatedPG: if we got ENOENT and an obc, we need to check the locks

Otherwise, we might return ENOENT out of order.

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoReplicatedPG::get_rw_locks: use excl lock for read & write_ordered
Samuel Just [Tue, 13 Jan 2015 22:34:23 +0000 (14:34 -0800)]
ReplicatedPG::get_rw_locks: use excl lock for read & write_ordered

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoosd_types: add excl obc lock
Samuel Just [Mon, 26 Jan 2015 05:15:41 +0000 (21:15 -0800)]
osd_types: add excl obc lock

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoReplicatedPG::cancel_pull: drop_recovery_read lock
Samuel Just [Sat, 10 Jan 2015 01:43:36 +0000 (17:43 -0800)]
ReplicatedPG::cancel_pull: drop_recovery_read lock

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoReplicatedPG::wait_for_unreadable_object: use prep_object_replica_pushes instead...
Samuel Just [Sat, 10 Jan 2015 01:00:17 +0000 (17:00 -0800)]
ReplicatedPG::wait_for_unreadable_object: use prep_object_replica_pushes instead of recover_missing if not missing

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoPG::purge_strays: purge peer_missing as well
Samuel Just [Wed, 19 Nov 2014 17:51:49 +0000 (09:51 -0800)]
PG::purge_strays: purge peer_missing as well

Backport: giant, firefly
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoosd/: don't block writes on degraded objects
Samuel Just [Wed, 19 Nov 2014 01:59:36 +0000 (17:59 -0800)]
osd/: don't block writes on degraded objects

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoosd/: update peer_missing and local missing if we write a degraded object
Samuel Just [Wed, 19 Nov 2014 01:27:36 +0000 (17:27 -0800)]
osd/: update peer_missing and local missing if we write a degraded object

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoReplicatedPG: always take recovery_read_lock for recovery
Samuel Just [Tue, 18 Nov 2014 23:55:47 +0000 (15:55 -0800)]
ReplicatedPG: always take recovery_read_lock for recovery

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agorgw: use strict_strtoll() for content length 3553/head
Yehuda Sadeh [Fri, 30 Jan 2015 18:51:52 +0000 (10:51 -0800)]
rgw: use strict_strtoll() for content length

instead of strict_strtol().

Backport: giant, firefly
Fixes: #10701
Reported-by: Axel Dunkel <ad@dunkel.de>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3476 from ktdreyer/wip-rpm-radosgw-logrotate 3500/head
Yehuda Sadeh [Fri, 30 Jan 2015 17:11:36 +0000 (09:11 -0800)]
Merge pull request #3476 from ktdreyer/wip-rpm-radosgw-logrotate

ceph.spec.in: move rgw logrotate to rgw subpackage

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3437 from diurchenko/patch-2
Yehuda Sadeh [Fri, 30 Jan 2015 17:09:17 +0000 (09:09 -0800)]
Merge pull request #3437 from diurchenko/patch-2

rgw: fix doc, wrong HTTP header name

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #3546 from zhouyuan/204_post_container
Yehuda Sadeh [Fri, 30 Jan 2015 16:43:46 +0000 (08:43 -0800)]
Merge pull request #3546 from zhouyuan/204_post_container

rgw: Response 204 when post on containers

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: fail s3 POST auth if keystone not configured 3551/head
Yehuda Sadeh [Fri, 30 Jan 2015 15:03:30 +0000 (07:03 -0800)]
rgw: fail s3 POST auth if keystone not configured

Fixes: #10698
This fixes issue introduced in 8b3dfc9472022ea45ad24e02e0aa21dfdad798f8,
where if user does not exist, we try keystone authentication. However,
if keystone is not configured we justt fall through without failing.
This would have failed later on due to bucket permissions, unless bucket
had a public write permissions.

Reported-by: Valery Tschopp <valery.tschopp@switch.ch>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agodoc: Fixed hyperlink.
John Wilkins [Fri, 30 Jan 2015 14:18:25 +0000 (06:18 -0800)]
doc: Fixed hyperlink.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
10 years agorgw: Response 204 when post on containers 3546/head
Yuan Zhou [Fri, 30 Jan 2015 03:43:19 +0000 (11:43 +0800)]
rgw: Response 204 when post on containers

Currently POST request on container returns 202 if success. But in Swift
the code is 204. Let's use 204 to keep align with the Swift API.

Fixes #10667
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoObjectCacher: Only r >= 0, it need the read data. 3531/head
Jianpeng Ma [Mon, 26 Jan 2015 07:53:57 +0000 (15:53 +0800)]
ObjectCacher: Only r >= 0, it need the read data.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: only external_call can touch object.
Jianpeng Ma [Thu, 29 Jan 2015 08:44:35 +0000 (16:44 +0800)]
osdc: only external_call can touch object.

In fact if there is retry reading, the touch_bh also touch object.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: For read w/ DONTNEED, if read data contain all cached data, move this object...
Jianpeng Ma [Fri, 30 Jan 2015 05:21:44 +0000 (13:21 +0800)]
osdc: For read w/ DONTNEED, if read data contain all cached data, move this object into the tail of LRU.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: Make ObjectCahce can hanle read with DONTNEED.
Jianpeng Ma [Fri, 30 Jan 2015 03:49:21 +0000 (11:49 +0800)]
osdc: Make ObjectCahce can hanle read with DONTNEED.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: touch hit bh although there are missing or rx bh.
Jianpeng Ma [Thu, 29 Jan 2015 08:41:49 +0000 (16:41 +0800)]
osdc: touch hit bh although there are missing or rx bh.

Avoid losing the hit bh when later read, it should touch hit bh like rx bh.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: Make ObjectCahce can hanle write with DONTNEED.
Jianpeng Ma [Fri, 30 Jan 2015 03:36:50 +0000 (11:36 +0800)]
osdc: Make ObjectCahce can hanle write with DONTNEED.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: Make ObjectCache can accept fadvise_flags.
Jianpeng Ma [Thu, 29 Jan 2015 06:45:51 +0000 (14:45 +0800)]
osdc: Make ObjectCache can accept fadvise_flags.

The field flags of OSDRead/OSDWrite don't use anymore. Replace it with
fadvise_flags.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoosdc: add new filed dontneed in BufferHead.
Jianpeng Ma [Fri, 30 Jan 2015 03:29:00 +0000 (11:29 +0800)]
osdc: add new filed dontneed in BufferHead.

For read/write op with LIBRADOS_OP_FLAG_FADVISE_DONTNEED,
the hit bh set this as true and later move into the tail of LRU in
order to remove in case in short future no ony access.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoFix ReplicatedPG do_xattr_cmp_u64 3545/head
Dongmao Zhang [Fri, 30 Jan 2015 03:20:50 +0000 (11:20 +0800)]
Fix ReplicatedPG do_xattr_cmp_u64

1. bufferlist.c_str() will return a string which is longer than its real length.
This could cause an error result from do_xattr_cmp_u64. So use
std::string to receive the xattr
2. s/atoll/strtoull

Signed-off-by: Dongmao Zhang <deanraccoon@gmail.com>
10 years agoMerge pull request #3526 from ceph/wip-rgw-versioning-4
Yehuda Sadeh [Fri, 30 Jan 2015 00:42:32 +0000 (16:42 -0800)]
Merge pull request #3526 from ceph/wip-rgw-versioning-4

Wip rgw versioning 4

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorgw: more merge related fixes 3526/head
Yehuda Sadeh [Fri, 30 Jan 2015 00:24:33 +0000 (16:24 -0800)]
rgw: more merge related fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agorgw: fix merge artifact
Yehuda Sadeh [Fri, 30 Jan 2015 00:07:41 +0000 (16:07 -0800)]
rgw: fix merge artifact

s/XMLArgs/RGWHTTPArgs

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge remote-tracking branch 'origin/master' into wip-rgw-versioning-4
Yehuda Sadeh [Fri, 30 Jan 2015 00:05:14 +0000 (16:05 -0800)]
Merge remote-tracking branch 'origin/master' into wip-rgw-versioning-4

Conflicts:
src/rgw/rgw_admin.cc

10 years agoMerge pull request #3125 from ceph/wip-10194-master
Sage Weil [Thu, 29 Jan 2015 23:06:11 +0000 (15:06 -0800)]
Merge pull request #3125 from ceph/wip-10194-master

Wip 10194 master

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoPG: set scrubber.start = scrubber.end after scrub_compare_maps 3588/head
Samuel Just [Thu, 29 Jan 2015 22:02:19 +0000 (14:02 -0800)]
PG: set scrubber.start = scrubber.end after scrub_compare_maps

This is how the scrubber behaved prior to
218de829b1affa8ed413572736fcc3314f65730b

Fixes: 10693
Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoPG: remove block_writes from scrubber
Samuel Just [Thu, 29 Jan 2015 22:21:22 +0000 (14:21 -0800)]
PG: remove block_writes from scrubber

block_writes is actually redundant, it is true iff scrubber.start !=
scrubber.end.

Signed-off-by: Samuel Just <sjust@redhat.com>
10 years agoMerge branch 'prio_hb_pkts' of git://github.com/wenjianhn/ceph
Sage Weil [Thu, 29 Jan 2015 21:28:26 +0000 (13:28 -0800)]
Merge branch 'prio_hb_pkts' of git://github.com/wenjianhn/ceph

Conflicts:
src/msg/Messenger.h

10 years agodoc: improve incomplete state documentation
Samuel Just [Wed, 29 Oct 2014 21:03:28 +0000 (14:03 -0700)]
doc: improve incomplete state documentation

Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #3543 from ceph/wip-hints
Sage Weil [Thu, 29 Jan 2015 21:06:29 +0000 (13:06 -0800)]
Merge pull request #3543 from ceph/wip-hints

librados: rename NOREUSE to NOCACHE

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #3295 from majianpeng/fix2
Sage Weil [Thu, 29 Jan 2015 21:04:39 +0000 (13:04 -0800)]
Merge pull request #3295 from majianpeng/fix2

osd: add per-pool fadvise-dontneed flag

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3392 from ceph/wip-crush-straw2
Sage Weil [Thu, 29 Jan 2015 21:03:39 +0000 (13:03 -0800)]
Merge pull request #3392 from ceph/wip-crush-straw2

crush: new straw2 bucket

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3495 from XinzeChi/wip-size-empty
Sage Weil [Thu, 29 Jan 2015 21:03:04 +0000 (13:03 -0800)]
Merge pull request #3495 from XinzeChi/wip-size-empty

cleanup: replace some size() or length() with !empty()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agolibrados: rename NOREUSE to NOCACHE 3543/head
Sage Weil [Thu, 29 Jan 2015 21:00:15 +0000 (13:00 -0800)]
librados: rename NOREUSE to NOCACHE

As far as I can tell, the posix_fadvise() distinction between WONTNEED and
NOREUSE is subtle: one says I won't access the data, and the other says
I will access it one more time and then not access it.  That is, the
distinction is about time.  This thread seems to confirm this
interpretation:

 https://lkml.org/lkml/2011/6/27/44

Since we are attaching hints to the IO operations themselves, this
distinction doesn't make much sense for us.  (Backends should be careful
about which hint they use; or rather, they should use WONTNEED *after*
doing the IO since NOREUSE is presenting a no-op in Linux.)

However, we want to make a totally different distinction:

 WONTNEED - nobody will access this -> drop it from the cache
 NOCACHE  - *i* won't access this again -> don't let me affect your caching
            decisions or the working set you're maintaining for other
            clients.

The NOCACHE name is made-up and distinct from NOREUSE only so that it is
different from POSIX and doesn't introduce confusion for people familiar
with the POSIX meaning.  Perhaps a more accurate name would be IWONTNEED
but that is only one character apart and too error-prone IMO.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agosupport Boost 1.57.0 3537/head
Petr Machata [Thu, 29 Jan 2015 17:15:02 +0000 (10:15 -0700)]
support Boost 1.57.0

Sometime after 1.55, boost introduced a forward declaration of
operator<< in optional.hpp. In 1.55 and earlier, when << was used
without the _io having been included, what got dumped was an implicit
bool conversion.

http://tracker.ceph.com/issues/10688 Refs: #10688
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
10 years agoosd/PGLog: only do slow extra_reqid search of object appears at least once 3503/head
Sage Weil [Thu, 29 Jan 2015 18:14:04 +0000 (10:14 -0800)]
osd/PGLog: only do slow extra_reqid search of object appears at least once

Signed-off-by: Sage Weil <sage@redhat.com>