]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agoChanged Availability section of ceph-mds.rst to reference ceph-mds, not ceph-mon. 1399/head
James Ryan Cresawn [Fri, 7 Mar 2014 05:05:15 +0000 (22:05 -0700)]
Changed Availability section of ceph-mds.rst to reference ceph-mds, not ceph-mon.
Signed-off-by: James Ryan Cresawn <jrcresawn@gmail.com>
11 years agoClient: fix build issue (lost semicolon)
Greg Farnum [Thu, 6 Mar 2014 19:32:38 +0000 (11:32 -0800)]
Client: fix build issue (lost semicolon)

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1320 from ceph/wip-libcephfs-fixes
Gregory Farnum [Thu, 6 Mar 2014 18:54:44 +0000 (10:54 -0800)]
Merge pull request #1320 from ceph/wip-libcephfs-fixes

Wip libcephfs fixes

Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1338 from dachary/wip-mailmap
Loic Dachary [Wed, 5 Mar 2014 07:55:41 +0000 (08:55 +0100)]
Merge pull request #1338 from dachary/wip-mailmap

mailmap updates

Reviewed-by: Christophe Courtaut <christophe.courtaut@gmail.com>
11 years agomailmap: Danny Al-Gaaf affiliation 1338/head
Loic Dachary [Sun, 2 Mar 2014 08:12:26 +0000 (09:12 +0100)]
mailmap: Danny Al-Gaaf affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Bjørnar Ness affiliation
Loic Dachary [Wed, 5 Mar 2014 07:46:42 +0000 (08:46 +0100)]
mailmap: Bjørnar Ness affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Ron Allred affiliation
Loic Dachary [Sun, 2 Mar 2014 08:02:18 +0000 (09:02 +0100)]
mailmap: Ron Allred affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Steve Stock affiliation
Loic Dachary [Sun, 2 Mar 2014 08:01:07 +0000 (09:01 +0100)]
mailmap: Steve Stock affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Christopher O'Connell affiliation
Loic Dachary [Sat, 1 Mar 2014 16:36:52 +0000 (17:36 +0100)]
mailmap: Christopher O'Connell affiliation

Reviewed-by: Christopher O'Connell <jwriteclub@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1370 from ceph/wip-7293
Josh Durgin [Wed, 5 Mar 2014 02:02:28 +0000 (18:02 -0800)]
Merge pull request #1370 from ceph/wip-7293

Make symlink  of librbd to qemu's folder so it can detect it.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMake symlink of librbd to qemu's folder so it can detect it. 1370/head
Sandon Van Ness [Wed, 5 Mar 2014 00:15:15 +0000 (16:15 -0800)]
Make symlink  of librbd to qemu's folder so it can detect it.

Per issue #7293.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
11 years agodoc: Improve CloudStack RBD documentation
Wido den Hollander [Tue, 4 Mar 2014 21:24:36 +0000 (22:24 +0100)]
doc: Improve CloudStack RBD documentation

11 years agomailmap: Mike Lundy affiliation
Loic Dachary [Sat, 1 Mar 2014 16:32:16 +0000 (17:32 +0100)]
mailmap: Mike Lundy affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1353 from ceph/wip-messenger-shutdown
Gregory Farnum [Tue, 4 Mar 2014 05:15:02 +0000 (21:15 -0800)]
Merge pull request #1353 from ceph/wip-messenger-shutdown

msg: Make SimpleMessenger shutdown safer

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agomsg: Make SimpleMessenger shutdown safer 1353/head
John Spray [Wed, 26 Feb 2014 16:29:20 +0000 (16:29 +0000)]
msg: Make SimpleMessenger shutdown safer

...in the case where no dispatchers were ever added, previously
we would throw an assertion in wait().

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1329 from ceph/wip-doc-cache-pool
Gregory Farnum [Mon, 3 Mar 2014 18:41:05 +0000 (10:41 -0800)]
Merge pull request #1329 from ceph/wip-doc-cache-pool

fix up docs for cache pools

These are definitely not complete, but they bring a few of the commands more up to date with current syntax.

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agomailmap: Mouad Benchchaoui affiliation
Loic Dachary [Sat, 1 Mar 2014 16:29:32 +0000 (17:29 +0100)]
mailmap: Mouad Benchchaoui affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Andrey Kuznetsov affiliation
Loic Dachary [Sat, 1 Mar 2014 16:28:04 +0000 (17:28 +0100)]
mailmap: Andrey Kuznetsov affiliation

Reviewed-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Wang, Yaguang affiliation
Loic Dachary [Sat, 1 Mar 2014 16:26:10 +0000 (17:26 +0100)]
mailmap: Wang, Yaguang affiliation

and name normalization

Reviewed-by: Wang, Yaguang <yaguang.wang@intel.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1345 from leseb/wip-ceph-disk-typo
Loic Dachary [Sun, 2 Mar 2014 23:07:59 +0000 (00:07 +0100)]
Merge pull request #1345 from leseb/wip-ceph-disk-typo

Fix typo ceph-disk

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoFix typo ceph-disk 1345/head
Sébastien Han [Sun, 2 Mar 2014 22:51:17 +0000 (23:51 +0100)]
Fix typo ceph-disk

Fix typo

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
11 years agomailmap: The Linux Box affiliations
Loic Dachary [Sat, 1 Mar 2014 16:20:43 +0000 (17:20 +0100)]
mailmap: The Linux Box affiliations

Matt Benjamin, Adam C. Emerson and Casey Bodley are with The Linux Box

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1334 from kazhang/wip-get-hit_set-parameter
Sage Weil [Sat, 1 Mar 2014 09:21:37 +0000 (01:21 -0800)]
Merge pull request #1334 from kazhang/wip-get-hit_set-parameter

OSDMonitor: enable getting hit set parameters

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoOSDMonitor: enable getting hit set parameters 1334/head
Kai Zhang [Sat, 1 Mar 2014 08:22:14 +0000 (00:22 -0800)]
OSDMonitor: enable getting hit set parameters
We would like to get the hit set parameters: hit_set_type |
hit_set_period | hit_set_count | hit_set_fpp via OSDMonitor

Signed-off-by: Kai Zhang <zakir.exe@gmail.com>
11 years agoMerge pull request #1333 from ceph/wip-s3radoscheck-wusui
Yehuda Sadeh [Sat, 1 Mar 2014 05:57:25 +0000 (21:57 -0800)]
Merge pull request #1333 from ceph/wip-s3radoscheck-wusui

Use pgrep radosgw to determine if rados gateway is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoUse pgrep radosgw to determine if rados gateway is running. 1333/head
Warren Usui [Sat, 1 Mar 2014 05:43:31 +0000 (21:43 -0800)]
Use pgrep radosgw to determine if rados gateway is running.
Fixes: 7528
Signed-off-by: Warren Usui <warren.usui@inktank.com>
11 years agoclient: fix Client::trim_caps() 1320/head
Yan, Zheng [Mon, 24 Feb 2014 08:02:57 +0000 (16:02 +0800)]
client: fix Client::trim_caps()

allow trimming non-auth caps if the issued auth caps include all
caps client wants/uses.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: update dirfragtree/fragmap according to mds request reply
Yan, Zheng [Mon, 24 Feb 2014 03:02:23 +0000 (11:02 +0800)]
client: update dirfragtree/fragmap according to mds request reply

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: choose hash function according to dir layout
Yan, Zheng [Fri, 21 Feb 2014 07:51:16 +0000 (15:51 +0800)]
client: choose hash function according to dir layout

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: check inode's cap when looking up dentry
Yan, Zheng [Fri, 21 Feb 2014 06:37:51 +0000 (14:37 +0800)]
client: check inode's cap when looking up dentry

Some inodes in readdir reply may have no caps. Getattr mds request
for these inodes can return -ESTALE. The fix is consider dentry that
links to inode with no caps as invalid. Invalid dentry causes a
lookup request to send to the mds, the MDS will send caps back.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: add flushing inode to proper list when auth mds changes
Yan, Zheng [Fri, 21 Feb 2014 05:32:21 +0000 (13:32 +0800)]
client: add flushing inode to proper list when auth mds changes

add flushing inode to the new auth MDS' flushing caps list

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: add imported caps when handling cap export message
Yan, Zheng [Fri, 21 Feb 2014 04:51:37 +0000 (12:51 +0800)]
client: add imported caps when handling cap export message

Version 3 cap export message includes information about the imported
caps. It allows us to add the imported caps if the corresponding cap
import message still hasn't been received.

This allow us to handle situation that the importer MDS crashes and
the cap import message is missing.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: remove exported caps when handling cap import message
Yan, Zheng [Fri, 21 Feb 2014 02:13:00 +0000 (10:13 +0800)]
client: remove exported caps when handling cap import message

Version 3 cap import message includes the ID of the exported
caps. It allow us to remove the exported caps if we still haven't
received the corresponding cap export message.

We remove the exported caps because they are stale, keeping them
can compromise consistence.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: use ceph_seq_cmp() to compare cap seq/mseq
Yan, Zheng [Fri, 21 Feb 2014 03:07:35 +0000 (11:07 +0800)]
client: use ceph_seq_cmp() to compare cap seq/mseq

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: don't send cap release when removing exported cap
Yan, Zheng [Fri, 21 Feb 2014 02:06:29 +0000 (10:06 +0800)]
client: don't send cap release when removing exported cap

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoMerge pull request #1323 from ceph/wip-requests-dependencies
Sage Weil [Fri, 28 Feb 2014 16:34:14 +0000 (08:34 -0800)]
Merge pull request #1323 from ceph/wip-requests-dependencies

Fix python-requests package dependencies.

Backport: firefly
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agodoc/dev/cache-pool: fix notes 1329/head
Sage Weil [Fri, 28 Feb 2014 16:11:57 +0000 (08:11 -0800)]
doc/dev/cache-pool: fix notes

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoclient: clear migrate seq when MDS restarts
Yan, Zheng [Thu, 20 Feb 2014 08:11:03 +0000 (16:11 +0800)]
client: clear migrate seq when MDS restarts

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: fix race between cap issue and revoke
Yan, Zheng [Thu, 20 Feb 2014 08:09:57 +0000 (16:09 +0800)]
client: fix race between cap issue and revoke

If we receive new caps from the auth MDS and the non-auth MDS is
revoking the newly issued caps, we should release the caps from
the non-auth MDS. The scenario is filelock's state changes from
SYNC to LOCK. Non-auth MDS revokes Fc cap, the client gets Fc cap
from the auth MDS at the same time.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: check mds_wanted for imported cap
Yan, Zheng [Thu, 20 Feb 2014 07:31:40 +0000 (15:31 +0800)]
client: check mds_wanted for imported cap

The MDS may have incorrect wanted caps after importing caps. So the
client should check the value mds has and send cap update if necessary.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: allow revoking duplicated caps issued by non-auth MDS
Yan, Zheng [Thu, 20 Feb 2014 07:05:46 +0000 (15:05 +0800)]
client: allow revoking duplicated caps issued by non-auth MDS

Allow revoking duplicated caps issued by non-auth MDS if these caps
are also issued by auth MDS.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: call handle_cap_grant() for cap import message
Yan, Zheng [Thu, 20 Feb 2014 06:59:46 +0000 (14:59 +0800)]
client: call handle_cap_grant() for cap import message

If client sends cap message that requests new max size during
exporting caps, the exporting MDS will drop the message quietly.
So the client may wait for the reply that updates the max size
forever. call handle_cap_grant() for cap import message can
avoid this issue.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoclient: don't update i_max_size when handle reply from non-auth MDS
Yan, Zheng [Thu, 20 Feb 2014 06:43:56 +0000 (14:43 +0800)]
client: don't update i_max_size when handle reply from non-auth MDS

caps from non-auth mds don't have meaningful max_size

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
11 years agoFix python-requests package dependencies. 1323/head
Dan Mick [Thu, 27 Feb 2014 01:11:05 +0000 (17:11 -0800)]
Fix python-requests package dependencies.

python-ceph does not require requests, but ceph-common does (for ceph-brag).

Signed-off-by: Dan Mick <dan.mick@inktank.com>
11 years agoMerge pull request #1263 from ceph/wip-mds-dumper
Gregory Farnum [Wed, 26 Feb 2014 18:30:57 +0000 (10:30 -0800)]
Merge pull request #1263 from ceph/wip-mds-dumper

mds: Dumper improvements

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agomds: Add dump-journal-entries 1263/head
John Spray [Thu, 13 Feb 2014 12:59:00 +0000 (12:59 +0000)]
mds: Add dump-journal-entries

This adds a somewhat-human-readable peer to
the 'dump-journal' command.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agomds: Create MDSUtility as base for Dumper/Resetter
John Spray [Wed, 12 Feb 2014 12:19:57 +0000 (12:19 +0000)]
mds: Create MDSUtility as base for Dumper/Resetter

These classes has lots of similar functionality and we may
want to add more similar things in the future.

Also, get a copy of the MDS map at startup
to learn the ID of the metadata pool instead of
assuming it's the default.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agomds: Fix Dumper shutdown
John Spray [Tue, 11 Feb 2014 23:48:33 +0000 (23:48 +0000)]
mds: Fix Dumper shutdown

It was shutting down messenger before monclient.  This
caused a sometimes-assertion when monclient tried to
reconnect in response to ms_handle_reset.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1283 from ceph/wip-7485
Gregory Farnum [Wed, 26 Feb 2014 17:46:31 +0000 (09:46 -0800)]
Merge pull request #1283 from ceph/wip-7485

mon/MDSMonitor: Cope with failures during creation

Reviewed-by: Greg Farnum <greg@inktank.com
11 years agoMerge pull request #1264 from ceph/wip-mds-dencoder
Gregory Farnum [Wed, 26 Feb 2014 05:26:58 +0000 (21:26 -0800)]
Merge pull request #1264 from ceph/wip-mds-dencoder

mds: Add encode/decode/dump for use with dencoder

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1280 from ceph/wip-7374-wusui
Yehuda Sadeh [Wed, 26 Feb 2014 02:00:37 +0000 (18:00 -0800)]
Merge pull request #1280 from ceph/wip-7374-wusui

Fix sub check() to not exit if rgw is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #1279 from ceph/wip-7375-wusui
Yehuda Sadeh [Wed, 26 Feb 2014 01:59:51 +0000 (17:59 -0800)]
Merge pull request #1279 from ceph/wip-7375-wusui

Fixed sub check() to say okay if rgw is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoFixed get_status() to find client.radosgw fields inside of ps output. 1279/head
Warren Usui [Fri, 21 Feb 2014 05:07:53 +0000 (21:07 -0800)]
Fixed get_status() to find client.radosgw fields inside of ps output.
Fixes: 7375
Signed-off-by: Warren Usui <warren.usui@inktank.com>
11 years agoFix get_status() to find client.rados text inside of ps command results. 1280/head
Warren Usui [Fri, 21 Feb 2014 05:11:45 +0000 (21:11 -0800)]
Fix get_status() to find client.rados text inside of ps command results.
Added port (fixed value for right now in teuthology) to hostname.
Fixes: 7374
Signed-off-by: Warren Usui <warren.usui@inktank.com>
11 years agomds: add mds_kill_create_at for testing 1283/head
John Spray [Mon, 24 Feb 2014 12:14:59 +0000 (12:14 +0000)]
mds: add mds_kill_create_at for testing

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1303 from ceph/port/temp-failure-retry
Sage Weil [Mon, 24 Feb 2014 03:59:00 +0000 (19:59 -0800)]
Merge pull request #1303 from ceph/port/temp-failure-retry

compat: avoid unused warn with TEMP_FAILURE_RETRY

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agocompat: avoid unused warn with TEMP_FAILURE_RETRY 1303/head
Noah Watkins [Sun, 23 Feb 2014 19:14:00 +0000 (11:14 -0800)]
compat: avoid unused warn with TEMP_FAILURE_RETRY

The version of TEMP_FAILURE_RETRY found on Linux has a GNU extension
that squashes the unused return value warning where applicable. This
adds a VOID_TEMP_FAILURE_RETRY to make the case explicit, casting the
expression value to void to avoid the warning.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #1287 from kdreyer-inktank/redhat-files
Sage Weil [Sun, 23 Feb 2014 17:49:27 +0000 (09:49 -0800)]
Merge pull request #1287 from kdreyer-inktank/redhat-files

packaging: file list adjustments

Tested-by: Huang Jun <hjwsm1989@gmail.com>
11 years agoMerge pull request #1265 from ceph/wip-mds-misc
Sage Weil [Sun, 23 Feb 2014 17:45:55 +0000 (09:45 -0800)]
Merge pull request #1265 from ceph/wip-mds-misc

MDS misc. cleanup

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoos/ObjectStore: fix rebase errors
Sage Weil [Sun, 23 Feb 2014 17:00:27 +0000 (09:00 -0800)]
os/ObjectStore: fix rebase errors

These were goofed by d74f1282cd268b4b04cfd9e90ddeac6d1dc6be7e.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoREADME: add build dep
Sage Weil [Sun, 23 Feb 2014 16:17:58 +0000 (08:17 -0800)]
README: add build dep

Technically it's a 'make check' dep, but close enough.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge remote-tracking branch 'gh/firefly'
Sage Weil [Sun, 23 Feb 2014 15:38:43 +0000 (07:38 -0800)]
Merge remote-tracking branch 'gh/firefly'

11 years agoMerge pull request #1290 from ceph/wip-os-doc
Sage Weil [Sun, 23 Feb 2014 15:37:55 +0000 (07:37 -0800)]
Merge pull request #1290 from ceph/wip-os-doc

os/ObjectStore: document interface

11 years agoos/ObjectStore: document interface 1290/head
Allen Samuels [Sun, 23 Feb 2014 15:29:05 +0000 (07:29 -0800)]
os/ObjectStore: document interface

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge pull request #1294 from ceph/wip-librados-object-iterator
Sage Weil [Sun, 23 Feb 2014 15:25:13 +0000 (07:25 -0800)]
Merge pull request #1294 from ceph/wip-librados-object-iterator

fix bugs in librados::ObjectIterator

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1295 from yuyuyu101/keyvaluestore-enhance
Sage Weil [Sun, 23 Feb 2014 15:24:43 +0000 (07:24 -0800)]
Merge pull request #1295 from yuyuyu101/keyvaluestore-enhance

Keyvaluestore enhance(backport to firely)

Pulling this into firefly because it doesn't (substantiatively) touch anything outside of KeyValueStore.

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1297 from ceph/wip-ec-bugs
Sage Weil [Sun, 23 Feb 2014 15:12:40 +0000 (07:12 -0800)]
Merge pull request #1297 from ceph/wip-ec-bugs

Wip ec bugs

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agounittest_ecbackend: fix signed/unsigned warnings
Sage Weil [Sun, 23 Feb 2014 06:00:55 +0000 (22:00 -0800)]
unittest_ecbackend: fix signed/unsigned warnings

In file included from test/osd/TestECBackend.cc:20:0:
../src/gtest/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int]’:
../src/gtest/include/gtest/gtest.h:1300:30: required from ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int; T2 = int; bool lhs_is_null_literal = false]’
test/osd/TestECBackend.cc:30:281: required from here
warning: ../src/gtest/include/gtest/gtest.h:1263:3: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1301 from ceph/wip-scrub-primary
Sage Weil [Sun, 23 Feb 2014 05:56:53 +0000 (21:56 -0800)]
Merge pull request #1301 from ceph/wip-scrub-primary

mon/PGMonitor: fix primary osd check on deep-scrub

gitbuilders are now passing

11 years agomon/PGMonitor: fix primary osd check on deep-scrub 1301/head
Sage Weil [Sun, 23 Feb 2014 05:31:48 +0000 (21:31 -0800)]
mon/PGMonitor: fix primary osd check on deep-scrub

s/!=/==/.  Logic was reversed.

Broken in 40bdcb88504aea6288d461d29d24d5b0bf7aeebc.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1300 from ceph/wip-7513
Samuel Just [Sun, 23 Feb 2014 01:35:46 +0000 (17:35 -0800)]
Merge pull request #1300 from ceph/wip-7513

PGLog::activate_not_complete typo

Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoPGLog::activate_not_complete: fix log.complete_to increment typo 1300/head
Samuel Just [Sun, 23 Feb 2014 00:38:46 +0000 (16:38 -0800)]
PGLog::activate_not_complete: fix log.complete_to increment typo

info.last_complete should be the entry before log.complete_to.

This appears to have been a typo introduced in
dd71051a8f6ec611b3559f8e2aff3c001be37792.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1298 from ceph/wip-subscribe
Samuel Just [Sun, 23 Feb 2014 01:18:55 +0000 (17:18 -0800)]
Merge pull request #1298 from ceph/wip-subscribe

osd: fix off-by-one is boot subscription

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1299 from ceph/wip-repair
David Zafman [Sat, 22 Feb 2014 22:55:08 +0000 (14:55 -0800)]
Merge pull request #1299 from ceph/wip-repair

osd/PG: fix assert when a shallow repair has fixed all errors.

Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoosd/PG: fix assert when deep repair finds no errors 1299/head
David Zafman [Sat, 22 Feb 2014 21:51:03 +0000 (13:51 -0800)]
osd/PG: fix assert when deep repair finds no errors

If there are no deep repairs, we don't want to assert.
Fixes:

    -1> 2014-02-21 21:13:56.393087 7f0258ff9700  0 log [INF] : 0.0 repair ok, 0 fixed
     0> 2014-02-21 21:13:56.428703 7f0258ff9700 -1 osd/PG.cc: In function 'void PG::scrub_finish()' thread 7f0258ff9700 time 2014-02-21 21:13:56.393127
osd/PG.cc: 4294: FAILED assert(deep_scrub)

Signed-off-by: David Zafman <david.zafman@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoPGLog: test for missing using the correct shard value 1296/head 1297/head
Samuel Just [Fri, 21 Feb 2014 21:25:36 +0000 (13:25 -0800)]
PGLog: test for missing using the correct shard value

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoOSD: fix query for ec pgs
Samuel Just [Fri, 21 Feb 2014 21:25:17 +0000 (13:25 -0800)]
OSD: fix query for ec pgs

We need to parse a pg_t and translate it into an spg_t.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoObjecter: make is_pg_changed static and const for old/newacting
Samuel Just [Fri, 21 Feb 2014 20:00:06 +0000 (12:00 -0800)]
Objecter: make is_pg_changed static and const for old/newacting

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoOSDMap: make calc_pg_rank/role const for acting
Samuel Just [Fri, 21 Feb 2014 19:59:16 +0000 (11:59 -0800)]
OSDMap: make calc_pg_rank/role const for acting

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoObjecter: resend op if primary role changed
Samuel Just [Fri, 21 Feb 2014 19:59:04 +0000 (11:59 -0800)]
Objecter: resend op if primary role changed

Fixes: #7508
Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoECTransaction: require hash_infos for deleted objects
Samuel Just [Fri, 21 Feb 2014 17:34:15 +0000 (09:34 -0800)]
ECTransaction: require hash_infos for deleted objects

Otherwise, an append preceded by a delete may not see the
correct HashInfo state since it won't have been cached
until the delete is applied.

Fixes: #7506
Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoECUtil: clear() should reset hashes to -1, not 0
Samuel Just [Fri, 21 Feb 2014 17:33:05 +0000 (09:33 -0800)]
ECUtil: clear() should reset hashes to -1, not 0

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG::cancel_pull: ECBackend might cancel_pull on a non-missing object
Samuel Just [Fri, 21 Feb 2014 02:32:08 +0000 (18:32 -0800)]
ReplicatedPG::cancel_pull: ECBackend might cancel_pull on a non-missing object

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoECBackend::filter_read_op: clean up read state properly
Samuel Just [Fri, 21 Feb 2014 02:31:35 +0000 (18:31 -0800)]
ECBackend::filter_read_op: clean up read state properly

Fixes: #7494
Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd: fix off-by-one is boot subscription 1298/head
Sage Weil [Sat, 22 Feb 2014 16:08:37 +0000 (08:08 -0800)]
osd: fix off-by-one is boot subscription

If we have osdmap N, we want to onetime subscribe
starting at N+1.  Among other things, it means we
hear when the NOUP flag is cleared.

This appears to have broken somewhere around
3c76b81f2f96b790b72f2088164ed8e9d5efbba1.

Fixes: #7511
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoRename keyvaluestore_check_backend to keyvaluestore_debug_check_backend 1282/head 1295/head
Haomai Wang [Sat, 22 Feb 2014 15:57:02 +0000 (23:57 +0800)]
Rename keyvaluestore_check_backend to keyvaluestore_debug_check_backend

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd KeyValueStore op thread options
Haomai Wang [Fri, 21 Feb 2014 14:48:00 +0000 (22:48 +0800)]
Add KeyValueStore op thread options

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove eio inject codes in KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:44:39 +0000 (22:44 +0800)]
Remove eio inject codes in KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd config tracker to KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:35:10 +0000 (22:35 +0800)]
Add config tracker to KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd backend check option to KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:33:58 +0000 (22:33 +0800)]
Add backend check option to KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove filestore_inject_stall
Haomai Wang [Fri, 21 Feb 2014 14:14:52 +0000 (22:14 +0800)]
Remove filestore_inject_stall

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove m_eio in KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 14:10:17 +0000 (22:10 +0800)]
Remove m_eio in KeyValueStore

KeyValueStore use kv backend to detect errors and nearly can't know the actual
reason for error.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMake SequencePosition sync by each transaction
Haomai Wang [Fri, 21 Feb 2014 13:59:42 +0000 (21:59 +0800)]
Make SequencePosition sync by each transaction

Each object modify will increase SequencePosition and sync it to disk

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoImplement collection_rename interface in KeyValueStore
Haomai Wang [Fri, 21 Feb 2014 13:36:48 +0000 (21:36 +0800)]
Implement collection_rename interface in KeyValueStore

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoRemove unnecessary "check_coll" check
Haomai Wang [Fri, 21 Feb 2014 12:55:19 +0000 (20:55 +0800)]
Remove unnecessary "check_coll" check

The goal of "check_coll" is aimed to ensure the collection is exists. But
the create and delete of collection already ensured by OSD, just remove check.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoOptimize write call add enhance error detect
Haomai Wang [Fri, 21 Feb 2014 08:46:53 +0000 (16:46 +0800)]
Optimize write call add enhance error detect

A single write call may need several keys in the backend kv store. Let get these
keys one time.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoUnify object level lock in GenericObjectMap
Haomai Wang [Fri, 21 Feb 2014 06:44:48 +0000 (14:44 +0800)]
Unify object level lock in GenericObjectMap

Before we copy lock implementation from DBObjectMap which provide with two locks
for header. Here just unify it to make ease.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoFix incorrect read and truncate
Haomai Wang [Fri, 21 Feb 2014 04:23:10 +0000 (12:23 +0800)]
Fix incorrect read and truncate

If the first chunk of object is not read entirely, the current implementation
will contain it entirely which make wrong.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoReturn 0 when the offset of read exceed the length of object
Haomai Wang [Fri, 21 Feb 2014 04:22:24 +0000 (12:22 +0800)]
Return 0 when the offset of read exceed the length of object

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoAdd read/write operation to store_test.cc
Haomai Wang [Thu, 20 Feb 2014 08:57:34 +0000 (16:57 +0800)]
Add read/write operation to store_test.cc

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>