]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoclient: cast m->get_client_tid() to compare to 16-bit Inode::flushing_cap_tid 2786/head
Greg Farnum [Thu, 23 Oct 2014 00:16:31 +0000 (17:16 -0700)]
client: cast m->get_client_tid() to compare to 16-bit Inode::flushing_cap_tid

m->get_client_tid() is 64 bits (as it should be), but Inode::flushing_cap_tid
is only 16 bits. 16 bits should be plenty to let the cap flush updates
pipeline appropriately, but we need to cast in the proper direction when
comparing these differently-sized versions. So downcast the 64-bit one
to 16 bits.

Fixes: #9869
Backport: giant, firefly, dumpling

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoqa: use sudo when rsyncing /usr so we can read everything
Greg Farnum [Tue, 21 Oct 2014 17:55:06 +0000 (10:55 -0700)]
qa: use sudo when rsyncing /usr so we can read everything

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2770 from ceph/wip-9857
Josh Durgin [Tue, 21 Oct 2014 23:53:27 +0000 (16:53 -0700)]
Merge pull request #2770 from ceph/wip-9857

rbd: Correct readahead divide by zero exception

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Tue, 21 Oct 2014 17:39:42 +0000 (10:39 -0700)]
Merge remote-tracking branch 'gh/giant'

10 years agoMerge pull request #2710 from yuyuyu101/keyvaluestore-clone-rmattr
Sage Weil [Tue, 21 Oct 2014 15:31:27 +0000 (08:31 -0700)]
Merge pull request #2710 from yuyuyu101/keyvaluestore-clone-rmattr

Fix Keyvaluestore clone rmattr

10 years agoMerge pull request #2761 from fgimenez/do-autogen-defaults-to-nss
Sage Weil [Tue, 21 Oct 2014 13:34:53 +0000 (06:34 -0700)]
Merge pull request #2761 from fgimenez/do-autogen-defaults-to-nss

do_autogen.sh: default configure with nss instead of cryptopp

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorbd: Correct readahead divide by zero exception 2770/head
Jason Dillaman [Tue, 21 Oct 2014 07:42:13 +0000 (03:42 -0400)]
rbd: Correct readahead divide by zero exception

When readahead is used on old-format RBD images, a divide
by zero signal will be thrown.  This was caused by initializing
the readahead alignments prior to initializing the stripe layout
of old-format RBD images.

Fixes: 9857
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoDefault configure with nss instead of cryptopp 2761/head
Federico Gimenez [Tue, 21 Oct 2014 06:44:43 +0000 (08:44 +0200)]
Default configure with nss instead of cryptopp

The -n option for nss has been changed to -c to give the
chance to pass cryptopp flag to configure

Signed-off-by: Federico Gimenez <fgimenez@coit.es>
10 years agoMerge pull request #2419 from sponce/wip-9356
Loic Dachary [Tue, 21 Oct 2014 05:45:08 +0000 (22:45 -0700)]
Merge pull request #2419 from sponce/wip-9356

Fixed seg fault described in bug 9356 by adding reference counting on an...

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoFix read performance regression in ObjectCacher
Adam Crume [Wed, 8 Oct 2014 00:45:53 +0000 (17:45 -0700)]
Fix read performance regression in ObjectCacher

The regression was introduced in commit
4fc9fffc494abedac0a9b1ce44706343f18466f1.  The problem is that the cache
thinks it's full (when it's not), so it defers the read.  This change
frees up cache space if necessary and only defers the read if enough
space cannot be freed.

Fixes: 9513
Signed-off-by: Adam Crume <adamcrume@gmail.com>
(cherry picked from commit 82175ec94acc89dc75da0154f86187fb2e4dbf5e)

10 years agoMerge pull request #2758 from ceph/wip-9820
Sage Weil [Mon, 20 Oct 2014 17:46:48 +0000 (10:46 -0700)]
Merge pull request #2758 from ceph/wip-9820

qa/workunits: cephtool: don't remove self's key on auth tests

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoqa/workunits: cephtool: don't remove self's key on auth tests 2758/head
Joao Eduardo Luis [Mon, 20 Oct 2014 17:00:15 +0000 (18:00 +0100)]
qa/workunits: cephtool: don't remove self's key on auth tests

Suites run with CEPH_TEST_CLI_DUP_COMMAND=1, which will send a duplicate
command for every command issued with the 'ceph' tool.  Behavior is to
get a reply from the command and then send a duplicate, looking for the
same outcome (guaranteeing idempotency of the operations).  However, it
so happens that if you remove the entity's own key from the keyring and
you happen to be unlucky enough so that the client's connection gets
failed (we also run tests with connection failure injections), the
'ceph' tool won't be able to reconnect to the cluster to send the
duplicate command (as it's entity no longer exists in the cluster's
keyring).

We rewrite the test instead of resorting to ugly hacks to work around
this behavior, simply having a new 'role-definer' added by the existing
'role-definer' (which we weren't testing anyway, so bonus points for
that) and then have one removing the other (to test the procedure) and
finally using 'client.admin' to remove the last 'role-definer'.

Fixes: #9820
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoAdded missing semaphore in libradosstriper AIO tests leading to potential memory... 2419/head
Sebastien Ponce [Thu, 9 Oct 2014 13:44:06 +0000 (15:44 +0200)]
Added missing semaphore in libradosstriper AIO tests leading to potential memory corruption and thus test failures

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoFixed remaining part of the seg fault described in bug 9356 by adding reference count...
Sebastien Ponce [Wed, 15 Oct 2014 14:05:00 +0000 (16:05 +0200)]
Fixed remaining part of the seg fault described in bug 9356 by adding reference counting to CompletionData

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoFixed part of the seg fault described in bug 9356 by adding reference counting on...
Sebastien Ponce [Mon, 8 Sep 2014 12:23:03 +0000 (14:23 +0200)]
Fixed part of the seg fault described in bug 9356 by adding reference counting on RadosReadCompletionData

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoFixed part of the seg fault described in bug 9356 by cleaning reference counting...
Sebastien Ponce [Thu, 16 Oct 2014 09:56:52 +0000 (11:56 +0200)]
Fixed part of the seg fault described in bug 9356 by cleaning reference counting on MultiAioCompletionImpl

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoCleanup up useless method release in MultiAioCompletionImpl. It was exactly equivalen...
Sebastien Ponce [Wed, 15 Oct 2014 13:50:35 +0000 (15:50 +0200)]
Cleanup up useless method release in MultiAioCompletionImpl. It was exactly equivalent to put

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoMerge pull request #2757 from fgimenez/update-pool-names-in-dev-guide
Sage Weil [Mon, 20 Oct 2014 15:34:45 +0000 (08:34 -0700)]
Merge pull request #2757 from fgimenez/update-pool-names-in-dev-guide

doc: updated names of default pools created at startup

10 years agoUpdated names of default pools created at startup 2757/head
fgimenez [Mon, 20 Oct 2014 11:43:56 +0000 (13:43 +0200)]
Updated names of default pools created at startup

10 years agoMerge pull request #2751 from dachary/wip-warnings
John Spray [Mon, 20 Oct 2014 08:42:37 +0000 (09:42 +0100)]
Merge pull request #2751 from dachary/wip-warnings

client: fix signed/unsigned compilation warnings

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoKeyValueStore: Add clone op detect to promote error 2710/head
Haomai Wang [Thu, 16 Oct 2014 02:03:42 +0000 (10:03 +0800)]
KeyValueStore: Add clone op detect to promote error

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoclient: fix signed/unsigned compilation warnings 2751/head
Loic Dachary [Sun, 19 Oct 2014 16:04:02 +0000 (09:04 -0700)]
client: fix signed/unsigned compilation warnings

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2744 from ceph/wip-9794
Loic Dachary [Sat, 18 Oct 2014 15:43:40 +0000 (08:43 -0700)]
Merge pull request #2744 from ceph/wip-9794

mon: MDSMonitor: wait for osdmon to be writable when requesting proposal

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2746 from ceph/wip-adamcrume
Loic Dachary [Fri, 17 Oct 2014 22:13:28 +0000 (15:13 -0700)]
Merge pull request #2746 from ceph/wip-adamcrume

osdc: Fix compiler warning

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoosdc: Fix compiler warning 2746/head
Adam Crume [Fri, 17 Oct 2014 19:09:44 +0000 (12:09 -0700)]
osdc: Fix compiler warning

Was getting:

./osdc/ObjectCacher.h:169:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       uint64_t overlap_start = MAX(start, ex.start);
                                                   ^
./osdc/ObjectCacher.h:170:59: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       uint64_t overlap_end = MIN(end, ex.start + ex.length);
                                                           ^

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agomon: MDSMonitor: wait for osdmon to be writable when requesting proposal 2744/head
Joao Eduardo Luis [Fri, 17 Oct 2014 18:08:20 +0000 (19:08 +0100)]
mon: MDSMonitor: wait for osdmon to be writable when requesting proposal

Otherwise we may end up requesting the osdmon to propose while it is
mid-proposal.  We can't simply return EAGAIN to the user either because
then we would have to expect the user to be able to successfully race
with the whole cluster in finding a window in which 'mds fs new' command
would succeed -- which is not a realistic expectation.  Having the
command to osdmon()->wait_for_writable() guarantees that the command
will be added to a queue and that we will, eventually, tend to it.

Fixes: #9794
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: MDSMonitor: have management_command() returning int instead of bool
Joao Eduardo Luis [Fri, 17 Oct 2014 17:59:51 +0000 (18:59 +0100)]
mon: MDSMonitor: have management_command() returning int instead of bool

We can more easily differentiate between errors we get out of this
function, which makes the code a bit more versatile and readable.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2708 from ceph/wip-9718
Samuel Just [Fri, 17 Oct 2014 17:38:43 +0000 (10:38 -0700)]
Merge pull request #2708 from ceph/wip-9718

osd/osd_types: consider CRUSH_ITEM_NONE in check_new_interval() min_size

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2711 from guangyy/wip-9614-followup
Samuel Just [Fri, 17 Oct 2014 17:38:30 +0000 (10:38 -0700)]
Merge pull request #2711 from guangyy/wip-9614-followup

Follow-up fix for 9614

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agomon: MDSMonitor: don't return -EINVAL if function is bool
Joao Eduardo Luis [Fri, 17 Oct 2014 17:01:05 +0000 (18:01 +0100)]
mon: MDSMonitor: don't return -EINVAL if function is bool

Returning -EINVAL on a function that expects bool and the error code to
be in a variable 'r' can only achieve one thing: if this path is ever
touched, instead of returning an error as it was supposed to, we're
returning 'true' with 'r = 0' and, for no apparent reason, the user will
think everything went smoothly but with no new fs created.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: MDSMonitor: check all conditions are met *before* osdmon proposal
Joao Eduardo Luis [Fri, 17 Oct 2014 16:43:33 +0000 (17:43 +0100)]
mon: MDSMonitor: check all conditions are met *before* osdmon proposal

We should not allow ourselves to request the osdmon to propose before we
know for sure that we meet the required conditions to go through with
our own state change.  Even if we still can't guarantee that our
proposal is going to be committed, we shouldn't just change the osdmon's
state just because we can.  This way, at least, we make sure that our
checks hold up before doing anything with side-effects.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: MDSMonitor: return if fs exists on 'fs new'
Joao Eduardo Luis [Fri, 17 Oct 2014 16:37:03 +0000 (17:37 +0100)]
mon: MDSMonitor: return if fs exists on 'fs new'

We were just setting return code to -EINVAL, while allowing the logic to
continue regardless.  If we are to return error, then we should abort
the operation as well and let the user know it went wrong instead of
continuing as if nothing had happened.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2736 from dachary/wip-backfill-documentation
Loic Dachary [Fri, 17 Oct 2014 16:02:10 +0000 (09:02 -0700)]
Merge pull request #2736 from dachary/wip-backfill-documentation

doc: updates on Backfill Reservation

Reviewed-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
10 years agoMerge pull request #2740 from ceph/giant-unknown-locktype
Sage Weil [Fri, 17 Oct 2014 15:21:16 +0000 (08:21 -0700)]
Merge pull request #2740 from ceph/giant-unknown-locktype

mds: reply -EOPNOTSUPP for unknown lock type

10 years agoMerge pull request #2743 from ceph/wip-mds-coverity
Sage Weil [Fri, 17 Oct 2014 15:16:18 +0000 (08:16 -0700)]
Merge pull request #2743 from ceph/wip-mds-coverity

mds: fix null dereference

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2738 from majianpeng/fix1
Sage Weil [Fri, 17 Oct 2014 15:11:45 +0000 (08:11 -0700)]
Merge pull request #2738 from majianpeng/fix1

Fix1 compile warning

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomds: fix null dereference 2743/head
Yan, Zheng [Fri, 17 Oct 2014 14:07:33 +0000 (22:07 +0800)]
mds: fix null dereference

Server::handle_client_file_setlock() should return after calling
reply_request()

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: reply -EOPNOTSUPP for unknown lock type 2740/head
Yan, Zheng [Tue, 14 Oct 2014 14:02:41 +0000 (22:02 +0800)]
mds: reply -EOPNOTSUPP for unknown lock type

Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 675392335c53ff7879031fb9184e4f35bcc90fe2)

10 years agotest: fix compile warning in bufferlist.cc 2738/head
Jianpeng Ma [Fri, 17 Oct 2014 06:04:40 +0000 (14:04 +0800)]
test: fix compile warning in bufferlist.cc

test/bufferlist.cc: In member function ‘virtual void
Buffer_constructors_Test::TestBody()’:
test/bufferlist.cc:154:36: warning: ignoring return value of ‘int
system(const char*)’, declared with attribute warn_unused_result
[-Wunused-result]
     ::system("echo ABC > testfile");
                                    ^
test/bufferlist.cc: In member function ‘virtual void
TestRawPipe::SetUp()’:
test/bufferlist.cc:182:36: warning: ignoring return value of ‘int
system(const char*)’, declared with attribute warn_unused_result
[-Wunused-result]
     ::system("echo ABC > testfile");
                                    ^
test/bufferlist.cc: In member function ‘virtual void
BufferList_read_file_Test::TestBody()’:
test/bufferlist.cc:1768:53: warning: ignoring return value of ‘int
system(const char*)’, declared with attribute warn_unused_result
[-Wunused-result]
   ::system("echo ABC > testfile ; chmod 0 testfile");
                                                     ^
test/bufferlist.cc:1770:32: warning: ignoring return value of ‘int
system(const char*)’, declared with attribute warn_unused_result
[-Wunused-result]
   ::system("chmod +r testfile");
                                ^
test/bufferlist.cc: In member function ‘virtual void
BufferList_read_fd_Test::TestBody()’:
test/bufferlist.cc:1781:34: warning: ignoring return value of ‘int
system(const char*)’, declared with attribute warn_unused_result
[-Wunused-result]
   ::system("echo ABC > testfile");

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agolibrbd: fix compile warning in librbd/internal.cc.
Jianpeng Ma [Fri, 17 Oct 2014 05:19:59 +0000 (13:19 +0800)]
librbd: fix compile warning in librbd/internal.cc.

librbd/internal.cc: In function 'void
librbd::readahead(librbd::ImageCtx*, const std::vector<std::pair<long
unsigned int, long unsigned int> >&, const md_config_t*)':
librbd/internal.cc:3150:38: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
       ictx->total_bytes_read > conf->rbd_readahead_disable_after_bytes;
                                      ^

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agodoc: updates on Backfill Reservation 2736/head
Loic Dachary [Thu, 16 Oct 2014 23:23:17 +0000 (16:23 -0700)]
doc: updates on Backfill Reservation

The logic was changed by:

0985ae71bce32c4d9e0e9e9f68bed38eb3c26897
osd: prioritize backfill based on *how* degraded

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge remote-tracking branch 'origin/wip-rbd-readahead'
Josh Durgin [Thu, 16 Oct 2014 21:33:42 +0000 (14:33 -0700)]
Merge remote-tracking branch 'origin/wip-rbd-readahead'

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Conflicts:
src/client/Fh.h

10 years agoMerge pull request #2588 from xinxinsh/wip-9595
Josh Durgin [Thu, 16 Oct 2014 20:15:33 +0000 (13:15 -0700)]
Merge pull request #2588 from xinxinsh/wip-9595

Fix #9595

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2628 from ceph/wip-client-flock
Gregory Farnum [Thu, 16 Oct 2014 13:57:34 +0000 (06:57 -0700)]
Merge pull request #2628 from ceph/wip-client-flock

Wip client flock

Add support for file locking to the userspace client, and improve blocked-lock cancellation so that it doesn't remove locks that succeeded when racing.

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2732 from dachary/wip-9526-crush-rename-bucket
Loic Dachary [Thu, 16 Oct 2014 03:22:02 +0000 (20:22 -0700)]
Merge pull request #2732 from dachary/wip-9526-crush-rename-bucket

ceph osd crush rename-bucket srcname dstname

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2731 from dachary/wip-9790-display-auid
Loic Dachary [Thu, 16 Oct 2014 03:15:29 +0000 (20:15 -0700)]
Merge pull request #2731 from dachary/wip-9790-display-auid

auth: add display of auid to auth get / list when it is not the default

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomon: unit tests for osd crush rename-bucket 2732/head
Loic Dachary [Thu, 16 Oct 2014 00:21:44 +0000 (17:21 -0700)]
mon: unit tests for osd crush rename-bucket

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomon: add the osd crush rename-bucket command
Loic Dachary [Thu, 16 Oct 2014 00:14:53 +0000 (17:14 -0700)]
mon: add the osd crush rename-bucket command

The synopsis is:

 osd crush rename-bucket name1 name2

It is made idempotent by interpreting -EALREADY as returned by
CrushWrapper::rename_bucket return as success.

The crush_rename_bucket method first checks for errors with
CrushWrapper::can_rename_bucket if there is no pending crush so that it
can return early and avoid the creation of a pending crush map.

If renaming is possible, CrushWrapper::rename_bucket is called on the
pending crush map (and creates it indirectly if it does not already
exists).

http://tracker.ceph.com/issues/9526 Fixes: #9526

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocrush: unit tests for CrushWrapper rename item/bucket methods
Loic Dachary [Thu, 16 Oct 2014 00:11:46 +0000 (17:11 -0700)]
crush: unit tests for CrushWrapper rename item/bucket methods

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocrush: add CrushWrapper::rename_bucket and can_rename_bucket
Loic Dachary [Thu, 16 Oct 2014 00:08:13 +0000 (17:08 -0700)]
crush: add CrushWrapper::rename_bucket and can_rename_bucket

Rename a bucket and return -ENOTDIR if trying to rename an item. The
behavior is otherwise the same as rename_item and can_rename_item.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocrush: add CrushWrapper::rename_item and can_rename_item
Loic Dachary [Thu, 16 Oct 2014 00:06:12 +0000 (17:06 -0700)]
crush: add CrushWrapper::rename_item and can_rename_item

The can_rename_item is a const method checking if renaming an item could
succeed. If not it returns a unique -errno code and a human readable
message message.

Trying to rename a non existent item into an existent item returns
-EALREADY which can be treated as success if renaming is to be
idempotent.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoadd unittest for Striper::get_num_objects 2588/head
xinxin shu [Wed, 15 Oct 2014 23:32:09 +0000 (07:32 +0800)]
add unittest for Striper::get_num_objects

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agocrush: improve constness of CrushWrapper methods
Loic Dachary [Thu, 16 Oct 2014 00:02:58 +0000 (17:02 -0700)]
crush: improve constness of CrushWrapper methods

A number of CrushWrapper get methods or predicates were not const
because they need to maintain transparently the rmaps. Make the rmaps
mutable and update the constness of the methods to match what the caller
would expect.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agowhen non-default striping is used, internal methods can operate on extra objects
xinxin shu [Sat, 27 Sep 2014 19:57:20 +0000 (03:57 +0800)]
when non-default striping is used, internal methods can operate on extra objects

Fixes: #9595
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoMerge pull request #2712 from lpabon/bug-8766
Sage Weil [Wed, 15 Oct 2014 22:18:48 +0000 (15:18 -0700)]
Merge pull request #2712 from lpabon/bug-8766

Update vstart to setup users for s3-tests

10 years agoMerge pull request #2705 from xinxinsh/master
Sage Weil [Wed, 15 Oct 2014 22:16:00 +0000 (15:16 -0700)]
Merge pull request #2705 from xinxinsh/master

return value of handle_message for MSG_OSD_SUBOP/MSG_OSD_SUBOPREPLY shou...

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoauth: unit tests for auid display 2731/head
Loic Dachary [Wed, 15 Oct 2014 20:15:34 +0000 (13:15 -0700)]
auth: unit tests for auid display

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoqa/workunits/rbd/import_export.sh: be case insensitive
Sage Weil [Wed, 15 Oct 2014 19:26:00 +0000 (12:26 -0700)]
qa/workunits/rbd/import_export.sh: be case insensitive

Stop tripping over this change (from dumpling).

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoauth: add display auid to KeyServer::encode_secrets
Loic Dachary [Wed, 15 Oct 2014 18:30:32 +0000 (11:30 -0700)]
auth: add display auid to KeyServer::encode_secrets

http://tracker.ceph.com/issues/9790 Fixes: #9790

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoauth: add display auid to KeyRing::encode_formatted
Loic Dachary [Wed, 15 Oct 2014 18:07:19 +0000 (11:07 -0700)]
auth: add display auid to KeyRing::encode_formatted

http://tracker.ceph.com/issues/9790 Fixes: #9790

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2702 from ceph/wip-9706
Yehuda Sadeh [Wed, 15 Oct 2014 15:58:16 +0000 (08:58 -0700)]
Merge pull request #2702 from ceph/wip-9706

objecter: fix session locking, use after frees (#9706)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #2726 from CzBiX/wip-doc-radosgw-federated-config
Loic Dachary [Wed, 15 Oct 2014 13:50:50 +0000 (06:50 -0700)]
Merge pull request #2726 from CzBiX/wip-doc-radosgw-federated-config

doc: correct command of `config push`

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agodoc: correct command of `config push` 2726/head
VRan Liu [Wed, 15 Oct 2014 09:03:49 +0000 (17:03 +0800)]
doc: correct command of `config push`

Signed-off-by: VRan Liu <gliuwr@gmail.com>
10 years agoqa/workunits/fs/misc: Add a workunit for file lock interruption 2628/head
Yan, Zheng [Wed, 15 Oct 2014 04:00:58 +0000 (12:00 +0800)]
qa/workunits/fs/misc: Add a workunit for file lock interruption

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix neighbor lock check
Yan, Zheng [Wed, 15 Oct 2014 04:03:46 +0000 (12:03 +0800)]
mds: fix neighbor lock check

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #2721 from wyllys66/wip-8942
Sage Weil [Tue, 14 Oct 2014 21:49:43 +0000 (14:49 -0700)]
Merge pull request #2721 from wyllys66/wip-8942

librados: osd: Fixed JSON output for stray OSDs

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agodoc/dev/sepia: notes about sepia email list and irc channels
Sage Weil [Tue, 14 Oct 2014 21:40:17 +0000 (14:40 -0700)]
doc/dev/sepia: notes about sepia email list and irc channels

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agodoc/release-notes: v0.80.7
Sage Weil [Tue, 14 Oct 2014 21:40:03 +0000 (14:40 -0700)]
doc/release-notes: v0.80.7

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2719 from ceph/wip-inotable-init
Gregory Farnum [Tue, 14 Oct 2014 20:38:50 +0000 (13:38 -0700)]
Merge pull request #2719 from ceph/wip-inotable-init

mds: fix inotable initialization/reset

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2704 from almightybeeij/master
Gregory Farnum [Tue, 14 Oct 2014 18:49:26 +0000 (11:49 -0700)]
Merge pull request #2704 from almightybeeij/master

libcephfs.h libcephfs.cc : Defined error codes for the mount function

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agodoc: update lab notes
Sage Weil [Tue, 14 Oct 2014 17:57:37 +0000 (10:57 -0700)]
doc: update lab notes

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2720 from ceph/wip-5977
Josh Durgin [Tue, 14 Oct 2014 17:29:24 +0000 (10:29 -0700)]
Merge pull request #2720 from ceph/wip-5977

librbdpy: Added missing method docstrings

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agolibrbdpy: Added missing method docstrings 2720/head
Jason Dillaman [Tue, 14 Oct 2014 15:09:09 +0000 (11:09 -0400)]
librbdpy: Added missing method docstrings

Several methods were missing docstrings, preventing the methods
from appearing in the generated documentation.  Ensured all methods
now have appropriate docstrings.

Fixes: 5977
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agomds: reply -EOPNOTSUPP for unknown lock type
Yan, Zheng [Tue, 14 Oct 2014 14:02:41 +0000 (22:02 +0800)]
mds: reply -EOPNOTSUPP for unknown lock type

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomds: fix inotable initialization/reset 2719/head
Henry C Chang [Tue, 14 Oct 2014 02:06:04 +0000 (10:06 +0800)]
mds: fix inotable initialization/reset

interval_set::insert takes arguments start and len, not end.

Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
(cherry picked from commit c95bb5943450be95e4302e35b3e2df68a6fc34bd)

10 years agoMerge pull request #2718 from henrycc/wip-henrycc-inotable
Yan, Zheng [Tue, 14 Oct 2014 06:54:32 +0000 (14:54 +0800)]
Merge pull request #2718 from henrycc/wip-henrycc-inotable

mds: fix inotable initialization/reset

10 years agomds: fix inotable initialization/reset 2718/head
Henry C Chang [Tue, 14 Oct 2014 02:06:04 +0000 (10:06 +0800)]
mds: fix inotable initialization/reset

interval_set::insert takes arguments start and len, not end.

Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com>
10 years agoMerge pull request #2707 from ceph/wip-9731
Sage Weil [Mon, 13 Oct 2014 18:17:17 +0000 (11:17 -0700)]
Merge pull request #2707 from ceph/wip-9731

PGLog::IndexedLog::trim(): rollback_info_trimmed_to_riter may be log.ren...

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2714 from ceph/wip-9730
John Wilkins [Mon, 13 Oct 2014 15:46:08 +0000 (08:46 -0700)]
Merge pull request #2714 from ceph/wip-9730

doc: `ceph-deploy mon create-initial` doesn't take arguments

Reviewed-by: John Wilkins <jowilkin@redhat.com>
10 years agorpm: 95-ceph-osd-alt.rules is not needed for centos7 / rhel7
Loic Dachary [Sat, 11 Oct 2014 16:20:36 +0000 (18:20 +0200)]
rpm: 95-ceph-osd-alt.rules is not needed for centos7 / rhel7

The || instead of && had it always installed. That was fixed in EPEL
already.

http://tracker.ceph.com/issues/9747 Fixes: #9747

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 5ff4a850a0d809b3f25988c6cceb82c35095ef84)

10 years agoMerge pull request #2706 from dachary/wip-9747-ceph-spec
Sage Weil [Mon, 13 Oct 2014 15:16:14 +0000 (08:16 -0700)]
Merge pull request #2706 from dachary/wip-9747-ceph-spec

rpm: 95-ceph-osd-alt.rules is not needed for centos7 / rhel7

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agodoc: remove node requirement from 'mon create-initial' 2714/head
Alfredo Deza [Mon, 13 Oct 2014 15:10:10 +0000 (11:10 -0400)]
doc: remove node requirement from 'mon create-initial'

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
10 years agodoc: remove whitespace
Alfredo Deza [Mon, 13 Oct 2014 15:09:38 +0000 (11:09 -0400)]
doc: remove whitespace

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
10 years agoUpdate vstart to setup users for s3-tests 2712/head
Luis Pabón [Wed, 8 Oct 2014 05:04:07 +0000 (01:04 -0400)]
Update vstart to setup users for s3-tests

vstart.sh now creates the users for the default configuration
for the s3-tests, available on https://github.com/ceph/s3-tests.

Also updated the documentation to show the correct RadosGW port.

Signed-off-by: Luis Pabón <lpabon@redhat.com>
10 years agoMerge pull request #2591 from majianpeng/fix2
Sage Weil [Mon, 13 Oct 2014 13:01:22 +0000 (06:01 -0700)]
Merge pull request #2591 from majianpeng/fix2

os/FileStore: using FIEMAP_FLAGS_SYNC instead of fsync() before call fiemap

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoclient: use finisher to abort MDS request
Yan, Zheng [Mon, 13 Oct 2014 03:34:18 +0000 (11:34 +0800)]
client: use finisher to abort MDS request

When a request is interrupted, libfuse first locks an internal mutex,
then calls the interrupt callback. libfuse need to lock the same mutex
when unregistering interrupt callback. We unregister interrupt callback
while client_lock is locked, so we can't acquiring the client_lock in
the interrupt callback.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: use atomic variable to track reference of MetaRequeset
Yan, Zheng [Thu, 9 Oct 2014 05:16:18 +0000 (13:16 +0800)]
client: use atomic variable to track reference of MetaRequeset

this allow us to increase reference count of MetaRequest while not holding
the client_lock

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: allow interrupting blocked file lock operation
Yan, Zheng [Mon, 13 Oct 2014 02:44:46 +0000 (10:44 +0800)]
client: allow interrupting blocked file lock operation

This commit introduce two new types of setfilelock request. Unlike
setfilelock (UNLOCK) request, these two new types of setfilelock request
do not drop locks that have alread been acquired, they only interrupt
blocked setfilelock request.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: register callback for fuse interrupt
Yan, Zheng [Thu, 9 Oct 2014 01:42:08 +0000 (09:42 +0800)]
client: register callback for fuse interrupt

libfuse allows program to reigster a callback for interrupt. When a file
system operation is interrupted, the fuse kernel driver sends interupt
request to libfuse. libfuse calls the interrupt callback when receiving
interrupt request.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoFileStore:Round offset of fiemap down aligned with CEPH_PAGE_SIZE. 2591/head
Jianpeng Ma [Mon, 13 Oct 2014 05:33:38 +0000 (13:33 +0800)]
FileStore:Round offset of fiemap down aligned with CEPH_PAGE_SIZE.

There is a bug on xfs about fiemap. If offset unsigned, the result of
fiemap will leak some data.
Kernel commit eedf32bfcace7d8e20cc66757d74fc68f3439ff7 fix this bug.
To avoid this bug on kernel which don't apply this commit, in ceph we
make the offset down aligned with CEPH_PAGE_SIZE.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoThe fix for issue 9614 was not completed, as a result, for those erasure coded PGs... 2711/head
Guang Yang [Mon, 13 Oct 2014 04:18:45 +0000 (04:18 +0000)]
The fix for issue 9614 was not completed, as a result, for those erasure coded PGs with one OSD down, the state was wrongly marked as active+clean+degraded. This patch makes sure the clean flag is not set for such PG.
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
10 years agoKeyValueStore: Make clone error message more friendly
Haomai Wang [Mon, 13 Oct 2014 02:14:25 +0000 (10:14 +0800)]
KeyValueStore: Make clone error message more friendly

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoGenericObjectMap: sync transaction avoid lookup_parent failed
Haomai Wang [Mon, 13 Oct 2014 02:02:08 +0000 (10:02 +0800)]
GenericObjectMap: sync transaction avoid lookup_parent failed

Now rm_keys after clone in one transaction will lead to "lookup_parent"
in rm_keys failed because of nonexisting parent header.

We need to sync clone transaction in advance.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoStoreTest: Add clone xattr test
Haomai Wang [Mon, 13 Oct 2014 01:39:32 +0000 (09:39 +0800)]
StoreTest: Add clone xattr test

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoosd/osd_types: consider CRUSH_ITEM_NONE in check_new_interval() min_size check 2708/head
Sage Weil [Sun, 12 Oct 2014 17:05:51 +0000 (10:05 -0700)]
osd/osd_types: consider CRUSH_ITEM_NONE in check_new_interval() min_size check

Fixes: #9718
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agorpm: 95-ceph-osd-alt.rules is not needed for centos7 / rhel7 2706/head
Loic Dachary [Sat, 11 Oct 2014 16:20:36 +0000 (18:20 +0200)]
rpm: 95-ceph-osd-alt.rules is not needed for centos7 / rhel7

The || instead of && had it always installed. That was fixed in EPEL
already.

http://tracker.ceph.com/issues/9747 Fixes: #9747

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agolibcephfs.h libcephfs.cc : Defined error codes for the mount function 2704/head
BJ Lougee [Sat, 11 Oct 2014 07:44:17 +0000 (02:44 -0500)]
libcephfs.h libcephfs.cc : Defined error codes for the mount function
Used new error codes from libcephfs.h to replace the magic numbers in the mount functon found in libcephfs.cc.

Signed-off-by: BJ Lougee <almightybeeij@gmail.com>
10 years agoMerge pull request #2701 from ceph/wip-9716
Josh Durgin [Sat, 11 Oct 2014 03:51:33 +0000 (20:51 -0700)]
Merge pull request #2701 from ceph/wip-9716

librados: Fix function prototypes in librados.h

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2678 from ceph/wip-8983
Josh Durgin [Sat, 11 Oct 2014 03:41:27 +0000 (20:41 -0700)]
Merge pull request #2678 from ceph/wip-8983

rados: Parse command-line arguments strictly

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoreturn value of handle_message for MSG_OSD_SUBOP/MSG_OSD_SUBOPREPLY should be true 2705/head
xinxin shu [Sat, 11 Oct 2014 01:29:42 +0000 (09:29 +0800)]
return value of handle_message for MSG_OSD_SUBOP/MSG_OSD_SUBOPREPLY should be true

if the return value is true , it will skip unnecessary checks

Signed-off-by: xinxin shu <xinxin.shu@intel.com>