]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoceph_test_rados_api_tier: parse env 8378/head
Sage Weil [Sun, 3 Apr 2016 13:49:07 +0000 (09:49 -0400)]
ceph_test_rados_api_tier: parse env

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_rados_api_list: parse env
Sage Weil [Sun, 3 Apr 2016 13:45:23 +0000 (09:45 -0400)]
ceph_test_rados_api_list: parse env

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: tolerate pgls commands with full hash
Sage Weil [Sun, 3 Apr 2016 13:35:03 +0000 (09:35 -0400)]
osd/ReplicatedPG: tolerate pgls commands with full hash

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: discard pgnls op that is outside pg bounds
Sage Weil [Thu, 31 Mar 2016 14:23:36 +0000 (10:23 -0400)]
osd/ReplicatedPG: discard pgnls op that is outside pg bounds

This should only happen with a buggy client, but we should avoid crashing,
and send a polite error message back.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosdc/Objecter: use full hash value for pg[n]ls ops
Sage Weil [Wed, 30 Mar 2016 15:55:55 +0000 (11:55 -0400)]
osdc/Objecter: use full hash value for pg[n]ls ops

Normal ops do this so they can behave when racing with split; pgnls ops
are no different.

In particular, this fixes a bug where we have an old OSDMap that doesn't
reflect a split, and the OSD replies with a 'next' value of the PG's new
max.  If we resend the same value to that PG, it'll be out of bounds,
and BlueStore will notice.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: fix typo
Sage Weil [Wed, 30 Mar 2016 15:43:01 +0000 (11:43 -0400)]
osd/ReplicatedPG: fix typo

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8380 from dillaman/wip-cls-fadvise
Sage Weil [Sun, 3 Apr 2016 13:13:31 +0000 (09:13 -0400)]
Merge pull request #8380 from dillaman/wip-cls-fadvise

cls_rbd: pass WILLNEED fadvise flags during object map update

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge branch 'wip-cycles'
Josh Durgin [Sat, 2 Apr 2016 19:35:09 +0000 (12:35 -0700)]
Merge branch 'wip-cycles'

common/Cycles: Do not initialize Cycles globally

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agocommon/Cycles: Do not initialize Cycles globally.
Richard W.M. Jones [Mon, 21 Mar 2016 14:24:35 +0000 (14:24 +0000)]
common/Cycles: Do not initialize Cycles globally.

Move initialization to the few tests that actually use it.

Fixes: http://tracker.ceph.com/issues/15225
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
9 years agoMerge pull request #8193 from liewegas/wip-bluestore
Sage Weil [Fri, 1 Apr 2016 21:52:47 +0000 (17:52 -0400)]
Merge pull request #8193 from liewegas/wip-bluestore

os/bluestore: a few fixes

9 years agoMerge pull request #8404 from cbodley/wip-rgw-realm-pull-fix
Orit Wasserman [Fri, 1 Apr 2016 18:22:51 +0000 (20:22 +0200)]
Merge pull request #8404 from cbodley/wip-rgw-realm-pull-fix

radosgw-admin: fix for 'realm pull'
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8417 from dillaman/wip-librbd-mirroring-unsupported
Josh Durgin [Fri, 1 Apr 2016 17:54:02 +0000 (10:54 -0700)]
Merge pull request #8417 from dillaman/wip-librbd-mirroring-unsupported

librbd: avoid throwing error if mirroring is unsupported

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8325 from trociny/wip-rbd-mirror-test-misc
Josh Durgin [Fri, 1 Apr 2016 16:55:20 +0000 (09:55 -0700)]
Merge pull request #8325 from trociny/wip-rbd-mirror-test-misc

test: rbd-mirror: script improvements for manual testing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8413 from runsisi/wip-fix-eexist
Jason Dillaman [Fri, 1 Apr 2016 16:16:12 +0000 (11:16 -0500)]
Merge pull request #8413 from runsisi/wip-fix-eexist

cls_journal: fix -EEXIST checking

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: avoid throwing error if mirroring is unsupported 8417/head
Jason Dillaman [Fri, 1 Apr 2016 16:08:12 +0000 (12:08 -0400)]
librbd: avoid throwing error if mirroring is unsupported

Attempting to remove an image will remove the image from the mirroring
directory.  However, if the OSD is older and doesn't support this
new feature, avoid throwing an error.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: add exclusive flag to set_as_default() 8404/head
Casey Bodley [Thu, 31 Mar 2016 21:19:12 +0000 (17:19 -0400)]
rgw: add exclusive flag to set_as_default()

this dodges the race in RGWRealm::create() and RGWZoneParams::create()
that decides whether to set the new object as a default. by calling
set_as_default() with exclusive=true, it will fail with EEXIST if a
default is already set

it also fixes an issue with 'realm pull' on a secondary zone, where a
'default' zone may be created but never actually set_as_default()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add exclusive flag to RGWRealm::create_control
Casey Bodley [Thu, 31 Mar 2016 16:16:08 +0000 (12:16 -0400)]
rgw: add exclusive flag to RGWRealm::create_control

this was causing failures in 'radosgw-admin realm pull':

  ERROR creating control for new realm realm0: (17) File exists

'realm pull' calls RGWRealm::create() with exclusive=false, but
RGWRealm::create_control() was using exclusive=true

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8324 from tchaikov/wip-mon-cleanup
Kefu Chai [Fri, 1 Apr 2016 14:19:46 +0000 (22:19 +0800)]
Merge pull request #8324 from tchaikov/wip-mon-cleanup

mon: remove remove_legacy_versions()

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agocls_journal: fix -EEXIST checking 8413/head
runsisi [Fri, 1 Apr 2016 12:56:26 +0000 (20:56 +0800)]
cls_journal: fix -EEXIST checking

Signed-off-by: runsisi <runsisi@zte.com.cn>
9 years agoMerge pull request #8371 from runsisi/wip-fix-eexist
Jason Dillaman [Thu, 31 Mar 2016 18:34:26 +0000 (13:34 -0500)]
Merge pull request #8371 from runsisi/wip-fix-eexist

cls_rbd: fix -EEXIST checking in cls::rbd::image_set

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8400 from qhjindev/fix_mon
Sage Weil [Thu, 31 Mar 2016 15:21:50 +0000 (11:21 -0400)]
Merge pull request #8400 from qhjindev/fix_mon

mon: remove unnecessary comment for update_from_paxos

9 years agoMerge pull request #8399 from oritwas/wip-cmake-mirrorwatcher
Casey Bodley [Thu, 31 Mar 2016 15:05:14 +0000 (11:05 -0400)]
Merge pull request #8399 from oritwas/wip-cmake-mirrorwatcher

cmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc

9 years agomon: remove unnecessary comment for update_from_paxos 8400/head
Qinghua Jin [Thu, 31 Mar 2016 14:37:12 +0000 (22:37 +0800)]
mon: remove unnecessary comment for update_from_paxos

The return value comment for update_from_paxos is unnecessary.

Signed-off-by: Qinghua Jin <qhjin_dev@163.com>
9 years agocmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc 8399/head
Orit Wasserman [Thu, 31 Mar 2016 13:59:32 +0000 (15:59 +0200)]
cmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8394 from xiexingguo/xxg-wip-compile
Orit Wasserman [Thu, 31 Mar 2016 13:57:55 +0000 (15:57 +0200)]
Merge pull request #8394 from xiexingguo/xxg-wip-compile

rgw: fix compiling error

9 years agoMerge pull request #8358 from dachary/wip-releases
Loic Dachary [Thu, 31 Mar 2016 13:16:29 +0000 (15:16 +0200)]
Merge pull request #8358 from dachary/wip-releases

releases: what is merged where and when ?

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoreleases: what is merged where and when ? 8358/head
Loic Dachary [Tue, 29 Mar 2016 17:17:14 +0000 (19:17 +0200)]
releases: what is merged where and when ?

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoreleases: update understanding the release cycle
Loic Dachary [Tue, 29 Mar 2016 17:16:31 +0000 (19:16 +0200)]
releases: update understanding the release cycle

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agorelease-notes: v10.0.5 release notes
Loic Dachary [Tue, 29 Mar 2016 16:16:53 +0000 (18:16 +0200)]
release-notes: v10.0.5 release notes

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7875 from badone/wip-coverity-rgw_file-unused
Orit Wasserman [Thu, 31 Mar 2016 12:52:02 +0000 (14:52 +0200)]
Merge pull request #7875 from badone/wip-coverity-rgw_file-unused

[rgw] Check return code in RGWFileHandle::write

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix compiling error 8394/head
xie xingguo [Thu, 31 Mar 2016 11:48:38 +0000 (19:48 +0800)]
rgw: fix compiling error

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #8200 from H3C/wip-rgw-bugfixb
Orit Wasserman [Thu, 31 Mar 2016 11:43:49 +0000 (13:43 +0200)]
Merge pull request #8200 from H3C/wip-rgw-bugfixb

rgw/rgw_admin:fix bug about list and stats command
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoqa/workunits/rbd: use cluster1/2 instead local/remote as cluster names 8325/head
Mykola Golub [Thu, 31 Mar 2016 10:57:17 +0000 (13:57 +0300)]
qa/workunits/rbd: use cluster1/2 instead local/remote as cluster names

After adding tests that start daemons in both clusters, local/remote
names look confusing.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoqa/workunits/rbd: add helper to determine rbd-mirror local cluster
Mykola Golub [Thu, 31 Mar 2016 10:34:30 +0000 (13:34 +0300)]
qa/workunits/rbd: add helper to determine rbd-mirror local cluster

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #8373 from wjwithagen/patch-4
Loic Dachary [Thu, 31 Mar 2016 10:21:56 +0000 (12:21 +0200)]
Merge pull request #8373 from wjwithagen/patch-4

ceph-detect-init/run-tox.sh: FreeBSD: No init detect

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #8387 from dreamhost/wip-mp-listpartresult-etag
Orit Wasserman [Thu, 31 Mar 2016 09:55:13 +0000 (11:55 +0200)]
Merge pull request #8387 from dreamhost/wip-mp-listpartresult-etag

rgw: Multipart ListPartsResult ETag quotes

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoqa/workunits/rbd: improvements for manual testing
Mykola Golub [Thu, 31 Mar 2016 08:42:13 +0000 (11:42 +0300)]
qa/workunits/rbd: improvements for manual testing

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agorgw: Multipart ListPartsResult ETag quotes 8387/head
Robin H. Johnson [Thu, 31 Mar 2016 06:24:40 +0000 (06:24 +0000)]
rgw: Multipart ListPartsResult ETag quotes

ListPartsResult output has always missed quotes on the ETag since it was
first committed.

Fixes: #15334
Backports: hammer, infernalis
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agoMerge pull request #8372 from jcsp/wip-15309
Sage Weil [Thu, 31 Mar 2016 05:15:38 +0000 (01:15 -0400)]
Merge pull request #8372 from jcsp/wip-15309

qa: update rest test cephfs calls

9 years agoMerge pull request #8258 from asheplyakov/bug-12065
Sage Weil [Thu, 31 Mar 2016 05:14:22 +0000 (01:14 -0400)]
Merge pull request #8258 from asheplyakov/bug-12065

monclient: avoid key renew storm on clock skew

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8348 from xiexingguo/xxg-wip-failurepending
Sage Weil [Thu, 31 Mar 2016 05:13:58 +0000 (01:13 -0400)]
Merge pull request #8348 from xiexingguo/xxg-wip-failurepending

osd: fix failure report handling during ms_handle_connect()

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8369 from xiexingguo/xxg-wip-tick
Sage Weil [Thu, 31 Mar 2016 05:08:01 +0000 (01:08 -0400)]
Merge pull request #8369 from xiexingguo/xxg-wip-tick

osd: fix tick relevant issues

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8354 from tchaikov/wip-missing-cls
Sage Weil [Thu, 31 Mar 2016 05:07:17 +0000 (01:07 -0400)]
Merge pull request #8354 from tchaikov/wip-missing-cls

osd/ClassHandler: only dlclose() the classes not missing

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8355 from dillaman/wip-15029
Josh Durgin [Thu, 31 Mar 2016 01:46:11 +0000 (18:46 -0700)]
Merge pull request #8355 from dillaman/wip-15029

librbd: send notifications for mirroring status updates

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocls_rbd: fix -EEXIST checking in cls::rbd::image_set 8371/head
runsisi [Wed, 30 Mar 2016 10:25:50 +0000 (18:25 +0800)]
cls_rbd: fix -EEXIST checking in cls::rbd::image_set

Signed-off-by: runsisi <runsisi@hust.edu.cn>
9 years agolibrados_test_stub: add new cls_cxx_read2/write2 methods 8380/head
Jason Dillaman [Wed, 30 Mar 2016 22:43:50 +0000 (18:43 -0400)]
librados_test_stub: add new cls_cxx_read2/write2 methods

Fixes: http://tracker.ceph.com/issues/15332
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agocls_rbd: pass WILLNEED fadvise flag for object map update ops
Jason Dillaman [Wed, 30 Mar 2016 20:18:10 +0000 (16:18 -0400)]
cls_rbd: pass WILLNEED fadvise flag for object map update ops

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoobjclass: add cls_cxx_read2/cls_cxx_write2
Jason Dillaman [Wed, 30 Mar 2016 20:13:51 +0000 (16:13 -0400)]
objclass: add cls_cxx_read2/cls_cxx_write2

These new methods support passing op flags (e.g. cache hints).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8382 from athanatos/wip-15241
Sage Weil [Wed, 30 Mar 2016 22:36:42 +0000 (18:36 -0400)]
Merge pull request #8382 from athanatos/wip-15241

osd: fix epoch check in handle_pg_create

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoOSD::handle_pg_create: check same_primary_since 8382/head
Samuel Just [Tue, 22 Mar 2016 21:20:12 +0000 (14:20 -0700)]
OSD::handle_pg_create: check same_primary_since

Rather than add a flag to handle_pg_peering_evt, check
same_primary_since here and pass the create event to
handle_pg_peering_evt as if it originated at the current epoch (the
project_pg_history checks in handle_pg_peering_evt will be noops).

Fixes: tracker.ceph.com/issues/15241
Signed-off-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #8147 from xiaoxichen/fix-get-map
Samuel Just [Wed, 30 Mar 2016 22:25:36 +0000 (15:25 -0700)]
Merge pull request #8147 from xiaoxichen/fix-get-map

osd/OSD.cc: finish full_map_request every MOSDMap message.

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agolibrbd: integrate listener for new mirroring notification payloads 8355/head
Jason Dillaman [Tue, 29 Mar 2016 16:39:56 +0000 (12:39 -0400)]
librbd: integrate listener for new mirroring notification payloads

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: send notifications on mirroring updates
Jason Dillaman [Tue, 29 Mar 2016 15:42:02 +0000 (11:42 -0400)]
librbd: send notifications on mirroring updates

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8084 from sunfch/wip-rgw-init-max-response
Casey Bodley [Wed, 30 Mar 2016 21:01:31 +0000 (17:01 -0400)]
Merge pull request #8084 from sunfch/wip-rgw-init-max-response

rgw: accept data only at the first time in response to a request

9 years agolibrbd: helper methods for mirroring notifications
Jason Dillaman [Tue, 29 Mar 2016 04:02:10 +0000 (00:02 -0400)]
librbd: helper methods for mirroring notifications

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: mirroring object notification types
Jason Dillaman [Tue, 29 Mar 2016 03:45:38 +0000 (23:45 -0400)]
librbd: mirroring object notification types

Initial payloads for updated mirror pool mode and image state.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: generic object watcher and mirroring watcher
Jason Dillaman [Tue, 29 Mar 2016 03:13:17 +0000 (23:13 -0400)]
librbd: generic object watcher and mirroring watcher

The ObjectWatcher can handle generic watch and recovery of
RADOS objects.  The MirroringWatcher will handle updates
to the RBD mirroring object.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8375 from rjfd/wip-15265
Jason Dillaman [Wed, 30 Mar 2016 16:58:18 +0000 (12:58 -0400)]
Merge pull request #8375 from rjfd/wip-15265

librbd: disable image mirroring when image is removed

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8331 from sileht/sileht/rados-cython
Josh Durgin [Wed, 30 Mar 2016 16:20:19 +0000 (09:20 -0700)]
Merge pull request #8331 from sileht/sileht/rados-cython

pybind/rados: python3 fix

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorbd: rbd-mirroring: Automatically disable image mirroring when image is removed 8375/head
Ricardo Dias [Wed, 30 Mar 2016 14:06:25 +0000 (15:06 +0100)]
rbd: rbd-mirroring: Automatically disable image mirroring when image is removed

Signed-off-by: Ricardo Dias <rdias@suse.com>
Fixes: #15265
9 years agoos/bluestore: _do_write: fix _do_zero_tail_extent to handle shared extents 8193/head
Sage Weil [Wed, 30 Mar 2016 15:17:12 +0000 (11:17 -0400)]
os/bluestore: _do_write: fix _do_zero_tail_extent to handle shared extents

Also add a test case to reproduce this case.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_zero: simply truncate up if past eof
Sage Weil [Wed, 30 Mar 2016 15:12:05 +0000 (11:12 -0400)]
os/bluestore: _do_zero: simply truncate up if past eof

Avoid the _do_zero_tail_extent here; we're zeroing so this is no different
than a truncate up

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: prevent rename src from getting trimmed from lru
Sage Weil [Wed, 30 Mar 2016 14:26:18 +0000 (10:26 -0400)]
os/bluestore: prevent rename src from getting trimmed from lru

We were putting it at the end of the LRU *and* not holding a reference.

Fix by letting oldo carry a ref to the Onode.  This avoids a subsequent
lookup and also prevents it from getting trimmed.

Note that we could also put it at the front of the LRU, but given that it
is the rename source, I'm not sure that's appropriate.  For example,
temp recovery objects get renamed into place and we don't want to keep
negative onodes for those around.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_zero: handle unzeroed tail blocks
Sage Weil [Mon, 28 Mar 2016 19:36:47 +0000 (15:36 -0400)]
os/bluestore: _do_zero: handle unzeroed tail blocks

- _do_write_zero when handling tail extent if it is
  shared.
- handle tail extent we are also zeroing later (not in
  the tail handler).  THis mirrors how _do_write is
  structured.
- handle eof to offset zeroing if our offset starts in
  the tail extent.  just like _do_write's wal path.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_write_zero: preserve onode size
Sage Weil [Mon, 28 Mar 2016 19:36:38 +0000 (15:36 -0400)]
os/bluestore: _do_write_zero: preserve onode size

Instead of handling this in each caller, make the helper
keep onode.size intact.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_write: handle gap from eof to offset in wal path
Sage Weil [Mon, 28 Mar 2016 19:36:23 +0000 (15:36 -0400)]
os/bluestore: _do_write: handle gap from eof to offset in wal path

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_allocate: fix whitespace
Sage Weil [Mon, 28 Mar 2016 19:36:14 +0000 (15:36 -0400)]
os/bluestore: _do_allocate: fix whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_truncate: no need to zero trailing block on truncate down
Sage Weil [Mon, 28 Mar 2016 19:36:05 +0000 (15:36 -0400)]
os/bluestore: _do_truncate: no need to zero trailing block on truncate down

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_write: only use append case for aligned eof
Sage Weil [Mon, 28 Mar 2016 19:35:43 +0000 (15:35 -0400)]
os/bluestore: _do_write: only use append case for aligned eof

The append case here only works if the EOF was aligned
and there is thus no partial-block zeroing we need to
do.  If the condition fails, we fall through to the
generic WAL path below.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_zero_tail_extent: do not assume tail block is zeroed
Sage Weil [Mon, 28 Mar 2016 19:35:31 +0000 (15:35 -0400)]
os/bluestore: _do_zero_tail_extent: do not assume tail block is zeroed

We will change this shortly.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _do_zero_tail_extent helper
Sage Weil [Mon, 28 Mar 2016 17:23:56 +0000 (13:23 -0400)]
os/bluestore: _do_zero_tail_extent helper

We do this from both _do_truncate and _do_write.  No
functional change here.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: break _do_zero out of _zero
Sage Weil [Mon, 28 Mar 2016 17:10:09 +0000 (13:10 -0400)]
os/bluestore: break _do_zero out of _zero

Seems useless now, but it maintains symmetry and we'll
need it later.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: do not do gift beyond the max ratio
Sage Weil [Sat, 26 Mar 2016 14:30:34 +0000 (10:30 -0400)]
os/bluestore: do not do gift beyond the max ratio

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoglobal/signal_handler: fix warning
Sage Weil [Fri, 25 Mar 2016 15:04:08 +0000 (11:04 -0400)]
global/signal_handler: fix warning

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: release wal_cleaning extents in order
Sage Weil [Fri, 25 Mar 2016 15:03:28 +0000 (11:03 -0400)]
os/bluestore: release wal_cleaning extents in order

We need to order the freelist updates so that they match the
commit order of the actual transactions.  Otherwise we might, say,
set a key here, delete it in the _txc_update_fm, but commit in
the wrong order and end up with the key surviving.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: avoid temp released interval_map for wal cleanup
Sage Weil [Fri, 25 Mar 2016 14:58:50 +0000 (10:58 -0400)]
os/bluestore: avoid temp released interval_map for wal cleanup

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore/FreelistManager: detect overlapping extents on init
Sage Weil [Fri, 25 Mar 2016 14:58:59 +0000 (10:58 -0400)]
os/bluestore/FreelistManager: detect overlapping extents on init

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: trim onode_map when adding new items
Sage Weil [Mon, 21 Mar 2016 21:00:52 +0000 (17:00 -0400)]
os/bluestore: trim onode_map when adding new items

This ensures we maintain the cache size even for read workloads.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: keep onode_map max_size
Sage Weil [Mon, 21 Mar 2016 21:00:22 +0000 (17:00 -0400)]
os/bluestore: keep onode_map max_size

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: wait for wal op that wrote cached tail before using
Sage Weil [Mon, 21 Mar 2016 19:45:57 +0000 (15:45 -0400)]
os/bluestore: wait for wal op that wrote cached tail before using

If the cached tail is written by a WAL op, we need to wait for it to
apply before we use the cached tail.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: note txc seq for tail cache
Sage Weil [Mon, 21 Mar 2016 19:44:54 +0000 (15:44 -0400)]
os/bluestore: note txc seq for tail cache

We'll need this soon...

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: assign per-Sequencer seq to each TransContext
Sage Weil [Mon, 21 Mar 2016 18:09:35 +0000 (14:09 -0400)]
os/bluestore: assign per-Sequencer seq to each TransContext

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_objectstore: add AppendWalVsTailCache test
Sage Weil [Mon, 21 Mar 2016 18:04:50 +0000 (14:04 -0400)]
ceph_test_objectstore: add AppendWalVsTailCache test

This specifically exercises a WAL overwrite racing with a subsequent
append that uses the previous writes cached tail.  We need to make sure
the use of the cached_tail waits for the previous WAL write or else our
update of tail block will be overwritten with the prior (WAL) value.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix fsck vs enodes
Sage Weil [Mon, 21 Mar 2016 17:55:47 +0000 (13:55 -0400)]
os/bluestore: fix fsck vs enodes

- fix used_blocks accounting for shared extents
- make sure enodes only exist when objects follow

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: bluestore_inject_wal_apply_delay
Sage Weil [Mon, 21 Mar 2016 17:51:43 +0000 (13:51 -0400)]
os/bluestore: bluestore_inject_wal_apply_delay

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: reorder onode_map vs enode_set ctor/dtor
Sage Weil [Mon, 21 Mar 2016 13:28:27 +0000 (09:28 -0400)]
os/bluestore: reorder onode_map vs enode_set ctor/dtor

The onode_map should get declared after the enode_set so that
the enode_set is empty when it is destroyed.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: only cache tail in _pad_tail if we have the whole block
Sage Weil [Thu, 17 Mar 2016 21:42:08 +0000 (17:42 -0400)]
os/bluestore: only cache tail in _pad_tail if we have the whole block

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: only use tail if tail_offset matches
Sage Weil [Thu, 17 Mar 2016 21:41:56 +0000 (17:41 -0400)]
os/bluestore: only use tail if tail_offset matches

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix off-by-one on caching tail block
Sage Weil [Thu, 17 Mar 2016 21:33:53 +0000 (17:33 -0400)]
os/bluestore: fix off-by-one on caching tail block

We can cache the tail as long as we overwrite all prior content;
we don't have to extent the size.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore/KernelDevice: print buffered flag in debug line
Sage Weil [Thu, 17 Mar 2016 20:37:53 +0000 (16:37 -0400)]
os/bluestore/KernelDevice: print buffered flag in debug line

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-detect-init/run-tox.sh: FreeBSD: No init detect 8373/head
Willem Jan Withagen [Wed, 30 Mar 2016 11:09:16 +0000 (13:09 +0200)]
ceph-detect-init/run-tox.sh: FreeBSD: No init detect

 - Freebsd has /etc/rc.d with scripts to start daemons at boottime.
   Test for that are currently not integrated with Ceph tests

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
9 years agoMerge pull request #8368 from tchaikov/wip-cmake-fix-rbd
Jason Dillaman [Wed, 30 Mar 2016 14:49:46 +0000 (10:49 -0400)]
Merge pull request #8368 from tchaikov/wip-cmake-fix-rbd

cmake: add StandardPolicy.cc to librbd

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8337 from jmunhoz/fix-15292
Sage Weil [Wed, 30 Mar 2016 13:56:37 +0000 (09:56 -0400)]
Merge pull request #8337 from jmunhoz/fix-15292

mon: remove unused variable

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #8352 from runsisi/wip-fix-missing-iter
Jason Dillaman [Wed, 30 Mar 2016 12:49:55 +0000 (08:49 -0400)]
Merge pull request #8352 from runsisi/wip-fix-missing-iter

rbd-mirror: fix missing increment for iterators

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #8374 from trociny/fix-cls-rbd-read_peers
Jason Dillaman [Wed, 30 Mar 2016 12:27:22 +0000 (08:27 -0400)]
Merge pull request #8374 from trociny/fix-cls-rbd-read_peers

cls_rbd: read_peers: update last_read on next cls_cxx_map_get_vals

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7062 from wonzhq/scrub-prio-pool
Sage Weil [Wed, 30 Mar 2016 12:24:43 +0000 (08:24 -0400)]
Merge pull request #7062 from wonzhq/scrub-prio-pool

osd: add the support of per pool scrub priority

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8210 from liewegas/wip-12814
Sage Weil [Wed, 30 Mar 2016 12:23:05 +0000 (08:23 -0400)]
Merge pull request #8210 from liewegas/wip-12814

osd: add 'proxy' cache mode

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #8315 from mslovy/wip-clean-pg
Sage Weil [Wed, 30 Mar 2016 12:22:46 +0000 (08:22 -0400)]
Merge pull request #8315 from mslovy/wip-clean-pg

osd: duplicated clear for peer_missing

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8330 from xiexingguo/xxg-wip-race
Sage Weil [Wed, 30 Mar 2016 12:22:30 +0000 (08:22 -0400)]
Merge pull request #8330 from xiexingguo/xxg-wip-race

common: fix race during optracker switches between enabled/disabled mode

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #8335 from liewegas/wip-13992
Sage Weil [Wed, 30 Mar 2016 12:21:47 +0000 (08:21 -0400)]
Merge pull request #8335 from liewegas/wip-13992

mon/MonClient: fix shutdown race

Reviewed-by: Kefu Chai <kchai@redhat.com>