]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agorgw: don't error out on empty owner when setting acls 877/head
Yehuda Sadeh [Wed, 27 Nov 2013 21:34:00 +0000 (13:34 -0800)]
rgw: don't error out on empty owner when setting acls

Fixes: #6892
Backport: dumpling, emperor
s3cmd specifies empty owner field when trying to set acls on object
/ bucket. We errored out as it didn't match the current owner name, but
with this change we ignore it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #859 from ceph/wip-pr781
Sage Weil [Tue, 26 Nov 2013 23:09:18 +0000 (15:09 -0800)]
Merge pull request #859 from ceph/wip-pr781

  fix the bug  ctypes.util.find_library to search for librados failed on...

11 years agoMerge pull request #862 from ceph/wip-6829
Josh Durgin [Tue, 26 Nov 2013 17:06:15 +0000 (09:06 -0800)]
Merge pull request #862 from ceph/wip-6829

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #871 from dmick/wip-6894
Josh Durgin [Tue, 26 Nov 2013 17:02:26 +0000 (09:02 -0800)]
Merge pull request #871 from dmick/wip-6894

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agomon: osd dump should dump pool snaps as array, not object 871/head
Dan Mick [Tue, 26 Nov 2013 05:58:39 +0000 (21:58 -0800)]
mon: osd dump should dump pool snaps as array, not object

Fixes: #6894
Signed-off-by: Dan Mick <dan.mick@inktank.com>
11 years agoMerge pull request #835 from ceph/wip-6705
Josh Durgin [Tue, 26 Nov 2013 02:03:02 +0000 (18:03 -0800)]
Merge pull request #835 from ceph/wip-6705

qa: workunits: mon: ping.py: test 'ceph ping'

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge pull request #863 from ceph/wip-6804
Sage Weil [Mon, 25 Nov 2013 15:53:03 +0000 (07:53 -0800)]
Merge pull request #863 from ceph/wip-6804

rgw: lower some debug message

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agorgw: lower some debug message 863/head
Yehuda Sadeh [Fri, 22 Nov 2013 15:04:01 +0000 (07:04 -0800)]
rgw: lower some debug message

Fixes: #6084
Backport: dumpling, emperor

Reported-by: Ron Allred <rallred@itrefined.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: initialize RGWUserAdminOpState::system_specified 862/head
Yehuda Sadeh [Thu, 21 Nov 2013 14:52:48 +0000 (06:52 -0800)]
rgw: initialize RGWUserAdminOpState::system_specified

Fixes: #6829
Backport: dumpling, emperor
We didn't init this member variable, which might cause that when
modifying user info that has this flag set the 'system' flag might
inadvertently reset.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #857 from ceph/wip-6796
Gregory Farnum [Fri, 22 Nov 2013 02:56:49 +0000 (18:56 -0800)]
Merge pull request #857 from ceph/wip-6796

mon: OSDMonitor: receive CephInt on 'osd pool set' instead on CephString

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoPendingReleaseNotes: mention 6796 and 'ceph osd pool set' behavior change 857/head
Joao Eduardo Luis [Fri, 22 Nov 2013 02:37:54 +0000 (02:37 +0000)]
PendingReleaseNotes: mention 6796 and 'ceph osd pool set' behavior change

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agodoc: rados: operations: pools: document 'osd pool set foo hashpspool'
Joao Eduardo Luis [Fri, 22 Nov 2013 02:35:10 +0000 (02:35 +0000)]
doc: rados: operations: pools: document 'osd pool set foo hashpspool'

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agomon: OSDMonitor: don't crash if formatter is invalid during osd crush dump
Joao Eduardo Luis [Fri, 22 Nov 2013 02:17:16 +0000 (02:17 +0000)]
mon: OSDMonitor: don't crash if formatter is invalid during osd crush dump

Code would assume a formatter would always be defined. If a 'plain'
formatter or even an invalid formatter were to be supplied, the monitor
would crash and burn in poor style.

Fixes: 6820
Backport: emperor

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agomon: OSDMonitor: receive CephInt on 'osd pool set' instead on CephString
Joao Eduardo Luis [Fri, 22 Nov 2013 02:10:35 +0000 (02:10 +0000)]
mon: OSDMonitor: receive CephInt on 'osd pool set' instead on CephString

This partially reverts 2fe0d0d9 in order to allow Emperor monitors to
forward mon command messages to Dumpling monitors without breaking a
cluster.

The need for this patch became obvious after issue #6796 was triggered.
Basically, in a mixed cluster of Emperor/Dumpling monitors, if a client
happens to obtain the command descriptions from an Emperor monitor and
then issue an 'osd pool set' this can turn out in one of two ways:

1. client msg gets forwarded to an Emperor leader and everything's a-okay;
2. client msg gets forwarded to a Dumpling leader and the string fails to
be interpreted without the monitor noticing, thus leaving the monitor with
an uninitialized variable leading to trouble.

If 2 is triggered, a multitude of bad things can happen, such as thousands
of pg splits, due to a simple 'osd set pool foo pg_num 128' turning out
to be interpreted as 109120394 or some other random number.

This patch is such that we make sure the client sends an integer instead
of a string. We also make sure to interpret anything the client sends as
possibly being a string, or an integer.

Fixes: 6796
Backport: emperor

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agomon: OSDMonitor: drop cmdval_get() for unused variable
Joao Eduardo Luis [Tue, 19 Nov 2013 23:21:11 +0000 (23:21 +0000)]
mon: OSDMonitor: drop cmdval_get() for unused variable

We don't ever use any value as a float, so just drop obtaining it.  This
makes it easier to partially revert 2fe0d0d9 in an upcoming patch.

Backport: emperor

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agoqa: workunits: mon: ping.py: test 'ceph ping' 835/head
Joao Eduardo Luis [Fri, 22 Nov 2013 01:43:06 +0000 (01:43 +0000)]
qa: workunits: mon: ping.py: test 'ceph ping'

Basic testing by forcing each monitor out of quorum at a time and making
sure they still reply to ping requests.

Fixes: #6705
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agotest: use older names for module setup/teardown
Josh Durgin [Thu, 21 Nov 2013 02:35:34 +0000 (18:35 -0800)]
test: use older names for module setup/teardown

setUp and tearDown require nosetests 0.11, but 0.10.4 is the latest on
centos. Rename to use the older aliases, which still work with newer
versions of nosetests as well.

Fixes: #6368
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
11 years agoMerge pull request #854 from ceph/wip-osd-bench-size
Dan Mick [Tue, 19 Nov 2013 23:41:11 +0000 (15:41 -0800)]
Merge pull request #854 from ceph/wip-osd-bench-size

osd: fix bench block size

Reviewed-by: Dan Mick <dan.mick@inktank.com>
11 years agoosd: fix bench block size 854/head
Josh Durgin [Mon, 18 Nov 2013 22:39:12 +0000 (14:39 -0800)]
osd: fix bench block size

The command was declared to take 'size' in dumpling, but was trying to
read 'bsize' instead, so it always used the default of 4MiB. Change
the bench command to read 'size', so it matches what existing clients
are sending.

Fixes: #6795
Backport: emperor, dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoRevert "JounralingObjectStore: journal->committed_thru after replay"
Samuel Just [Mon, 18 Nov 2013 20:57:39 +0000 (12:57 -0800)]
Revert "JounralingObjectStore: journal->committed_thru after replay"

committed_thru can race with the sync thread.

This reverts commit d8d27f13e11dcaefd3aa1c049b97c980283da575.
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoceph-filestore-tool: add tool for fixing lost objects
Samuel Just [Wed, 13 Nov 2013 22:39:26 +0000 (14:39 -0800)]
ceph-filestore-tool: add tool for fixing lost objects

Used to repair: #6761
Backport: emperor
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoosd_types: fix object_info_t backwards compatibility
Samuel Just [Wed, 13 Nov 2013 21:24:10 +0000 (13:24 -0800)]
osd_types: fix object_info_t backwards compatibility

Shipping an object_info_t to a replica with the dirty
flag set would cause the replica to interpret that
object as being lost.  Instead, we always encode
lost into the slot where dumpling expects to find
it and add another field at the end of the encoding.

Backport: emperor
Fixes: #6761
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoCephContext: unregister lockdep after stopping service thread
Samuel Just [Thu, 14 Nov 2013 19:49:58 +0000 (11:49 -0800)]
CephContext: unregister lockdep after stopping service thread

Fixes: #6769
Fixes: #6674
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoReplicatedPG: test for missing head before find_object_context
Samuel Just [Tue, 12 Nov 2013 23:15:26 +0000 (15:15 -0800)]
ReplicatedPG: test for missing head before find_object_context

find_object_context doesn't return EAGAIN for a missing head.
I chose not to change that behavior since it might hide bugs
in the future.  All other callers check for missing on head
before calling into find_object_context because we potentially
need head or snapdir to map a snapid onto a clone.

Backport: emperor
Fixes: 6758
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoJounralingObjectStore: journal->committed_thru after replay
Samuel Just [Tue, 12 Nov 2013 21:39:04 +0000 (13:39 -0800)]
JounralingObjectStore: journal->committed_thru after replay

It's possible that the osd stopped between when the filestore
op_seq file was updated and when the journal was trimmed.  In
that case, it's possible that on boot the journal might be
full, and yet not be trimmed because commit_start assumes
there is no work to do.  Calling committed_thru on the journal
ensures that the journal matches committed_seq.

Backport: emperor dumpling
Fixes: 6756
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoMerge branch 'next'
Gary Lowell [Fri, 8 Nov 2013 05:19:11 +0000 (05:19 +0000)]
Merge branch 'next'

11 years agomon: Monitor: make 'quorum enter/exit' available through the admin socket
Joao Eduardo Luis [Fri, 8 Nov 2013 00:26:42 +0000 (00:26 +0000)]
mon: Monitor: make 'quorum enter/exit' available through the admin socket

If we don't have at least 'quorum enter' available through the admin
socket, then we can never tell a monitor to go back into quorum after
exiting, since it will not handle the command that forces it back in due
to not being in the quorum.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
11 years agov0.72 v0.72
Gary Lowell [Thu, 7 Nov 2013 20:27:35 +0000 (20:27 +0000)]
v0.72

11 years agorgw: deny writes to a secondary zone by non-system users
Yehuda Sadeh [Tue, 5 Nov 2013 22:54:20 +0000 (14:54 -0800)]
rgw: deny writes to a secondary zone by non-system users

Fixes: #6678
We don't want to allow regular users to write to secondary zones,
otherwise we'd end up with data inconsistencies.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #830 from ceph/port/gtest-death-tests
Sage Weil [Thu, 7 Nov 2013 13:47:33 +0000 (05:47 -0800)]
Merge pull request #830 from ceph/port/gtest-death-tests

test: Only build death tests on platforms that support them

11 years agodoc/release-notes: note crush update timeout on startup change
Sage Weil [Thu, 7 Nov 2013 04:02:09 +0000 (20:02 -0800)]
doc/release-notes: note crush update timeout on startup change

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoosdmaptool: fix cli tests
Sage Weil [Thu, 7 Nov 2013 03:59:56 +0000 (19:59 -0800)]
osdmaptool: fix cli tests

From c22c84a88c22688b6044ab37f65a3fe40dfe1983.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoCeph: Fix memory leak in chain_flistxattr()
Li Wang [Thu, 7 Nov 2013 02:44:30 +0000 (10:44 +0800)]
Ceph: Fix memory leak in chain_flistxattr()

Free allocated memory before return.

Signed-off-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoReplicatedPG: don't skip missing if sentries is empty on pgls
Samuel Just [Wed, 6 Nov 2013 22:33:03 +0000 (14:33 -0800)]
ReplicatedPG: don't skip missing if sentries is empty on pgls

Formerly, if sentries is empty, we skip missing.  In general,
we need to continue adding items from missing until we get
to next (returned from collection_list_partial) to avoid
missing any objects.

Fixes: #6633
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoMerge pull request #827 from ceph/port/bootstrap
Sage Weil [Thu, 7 Nov 2013 01:32:11 +0000 (17:32 -0800)]
Merge pull request #827 from ceph/port/bootstrap

Port/bootstrap

11 years agoMerge pull request #831 from ceph/port/func-name
Sage Weil [Thu, 7 Nov 2013 01:31:28 +0000 (17:31 -0800)]
Merge pull request #831 from ceph/port/func-name

assert: choose function-var name on non-gnu

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #819 from xinglin/coverity-fixes
Sage Weil [Thu, 7 Nov 2013 01:14:40 +0000 (17:14 -0800)]
Merge pull request #819 from xinglin/coverity-fixes

Coverity fixes

Reviewed-by; Sage Weil <sage@inktank.com>

11 years agoassert: choose function-var name on non-gnu 831/head
Noah Watkins [Sun, 21 Jul 2013 01:41:38 +0000 (18:41 -0700)]
assert: choose function-var name on non-gnu

Selects __PRETTY_FUNCTION__ or __func__. Linux assumes GNU, and chooses
__PRETTY_FUNCTION__ if gcc/g++ versions are favorable.

This also includes a fix in ax_c_var_func.m4:

AC_TRY_COMPILE will wrap the test in main{}, and then GCC will complain
about nested functions. Just use the original main{} body.

diff --git a/m4/ax_c_var_func.m4 b/m4/ax_c_var_func.m4
index 0ad7d2b..8b57563 100644
--- a/m4/ax_c_var_func.m4
+++ b/m4/ax_c_var_func.m4
@@ -57,9 +57,9 @@ AC_DEFUN([AX_C_VAR_FUNC],
 [AC_REQUIRE([AC_PROG_CC])
 AC_CACHE_CHECK(whether $CC recognizes __func__, ac_cv_c_var_func,
 AC_TRY_COMPILE(,
-[int main() {
+[
 char *s = __func__;
-}],
+],
 AC_DEFINE(HAVE_FUNC,,
 [Define if the C complier supports __func__]) ac_cv_c_var_func=yes,
 ac_cv_c_var_func=no) )

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agotest: Only build death tests on platforms that support them 830/head
Alan Somers [Fri, 11 Oct 2013 20:45:47 +0000 (13:45 -0700)]
test: Only build death tests on platforms that support them

googletest does not support death tests on FreeBSD.  I've submitted a
patch upstream that trivially enables support, but in the meantime we
can't compile death tests for Ceph on FreeBSD.

https://groups.google.com/forum/#!topic/googletestframework/tjY6UjWgNOw

Signed-off-by: Alan Somers <asomers@gmail.com>
11 years agoPG: fix operator<<,log_wierdness log bound warning
Samuel Just [Wed, 6 Nov 2013 05:48:53 +0000 (21:48 -0800)]
PG: fix operator<<,log_wierdness log bound warning

Split may cause holes such that head != tail and yet
log.empty().

Fixes: #6722
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoPGLog::rewind_divergent_log: log may not contain newhead
Samuel Just [Wed, 6 Nov 2013 01:47:48 +0000 (17:47 -0800)]
PGLog::rewind_divergent_log: log may not contain newhead

Due to split, there may be a hole at newhead.

Fixes: #6722
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoosd/ErasureCodePlugin: close library before return on error 819/head
Xing Lin [Tue, 5 Nov 2013 05:25:42 +0000 (22:25 -0700)]
osd/ErasureCodePlugin: close library before return on error

close and free resources for library before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agoosd/erasurecode: free allocated memory before return NULL
Xing Lin [Tue, 5 Nov 2013 05:03:08 +0000 (22:03 -0700)]
osd/erasurecode: free allocated memory before return NULL

free memory space pointed by row_ids and ind_to_row before return

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agomon/MDSMonitor: remove unnecessary assignment
Xing Lin [Sun, 3 Nov 2013 17:35:33 +0000 (10:35 -0700)]
mon/MDSMonitor: remove unnecessary assignment

epocharg is not initialized, so it does not make any difference
to assign its value to epoch.

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agoosd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()
Xing Lin [Sun, 3 Nov 2013 01:13:42 +0000 (19:13 -0600)]
osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()

When bitmatrix is NULL, this function returns NULL.

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
11 years agoMerge remote-tracking branch 'gh/wip-doc-radosgw'
Sage Weil [Wed, 6 Nov 2013 16:06:11 +0000 (08:06 -0800)]
Merge remote-tracking branch 'gh/wip-doc-radosgw'

11 years agoRevert "doc: radosgw workaround for OpenStack Horizon bug"
Sage Weil [Wed, 6 Nov 2013 16:06:09 +0000 (08:06 -0800)]
Revert "doc: radosgw workaround for OpenStack Horizon bug"

This reverts commit c3c962eb7d2fb5ceea829924af08f8a1471f7acf.

11 years agoMerge pull request #799 from ceph/wip-doc-install
Sage Weil [Wed, 6 Nov 2013 15:57:23 +0000 (07:57 -0800)]
Merge pull request #799 from ceph/wip-doc-install

Wip doc install

Reviewed-by: Neil Levine <neil.levine@inktank.com>
11 years agoMerge pull request #821 from ceph/port/missing-headers
Sage Weil [Wed, 6 Nov 2013 15:51:02 +0000 (07:51 -0800)]
Merge pull request #821 from ceph/port/missing-headers

add missing headers

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #822 from ceph/port/rgw
Sage Weil [Wed, 6 Nov 2013 15:50:20 +0000 (07:50 -0800)]
Merge pull request #822 from ceph/port/rgw

portability patches in rgw

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #824 from dmick/next
Sage Weil [Wed, 6 Nov 2013 15:46:02 +0000 (07:46 -0800)]
Merge pull request #824 from dmick/next

osdmaptool: don't put progress on stdout

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #825 from ceph/port/utime
Sage Weil [Wed, 6 Nov 2013 15:45:17 +0000 (07:45 -0800)]
Merge pull request #825 from ceph/port/utime

utime: use to_timespec for conversion

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoRadosModel: use sharedptr_registry for snaps_in_use
Samuel Just [Tue, 5 Nov 2013 23:40:29 +0000 (15:40 -0800)]
RadosModel: use sharedptr_registry for snaps_in_use

There might be two concurrent rollback ops each of which
adds snap x to snaps_in_use.  Between when the first
completes and the second completes, snap x may be removed
since the first would have removed snap x from snaps_in_use.
Using sharedptr_registry here avoids this by ensuring that
the snap won't be removed from snaps_in_use until all refs
are gone.

This patch also adds size() to sharedptr_registry.

Fixes: #6719
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
11 years agoosdmaptool: don't put progress on stdout 824/head
Dan Mick [Wed, 6 Nov 2013 00:11:10 +0000 (16:11 -0800)]
osdmaptool: don't put progress on stdout

If one requests JSON output, the progress message pollutes the output;
don't do that, send it to stderr instead

Signed-off-by: Dan Mick <dan.mick@inktank.com>
11 years agorgw: add compat file for name service macros 822/head
Noah Watkins [Sun, 4 Aug 2013 19:09:19 +0000 (12:09 -0700)]
rgw: add compat file for name service macros

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agorgw: avoid sighandler_t in favor of sig_t
Noah Watkins [Sun, 4 Aug 2013 19:11:01 +0000 (12:11 -0700)]
rgw: avoid sighandler_t in favor of sig_t

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agocrush: add mising header for count 821/head
Noah Watkins [Tue, 29 Oct 2013 18:50:24 +0000 (11:50 -0700)]
crush: add mising header for count

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoauth: add missing header for list
Noah Watkins [Tue, 29 Oct 2013 18:50:10 +0000 (11:50 -0700)]
auth: add missing header for list

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agomon: add missing header for std::find
Noah Watkins [Mon, 4 Nov 2013 21:12:41 +0000 (13:12 -0800)]
mon: add missing header for std::find

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoauth: add missing header file for std::replace
Noah Watkins [Mon, 4 Nov 2013 20:42:57 +0000 (12:42 -0800)]
auth: add missing header file for std::replace

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #811 from dmsimard/wip_6710
Yehuda Sadeh [Tue, 5 Nov 2013 20:25:20 +0000 (12:25 -0800)]
Merge pull request #811 from dmsimard/wip_6710

Be more verbose in radosgw init script issues, return the right exit codes

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoutime: use to_timespec for conversion 825/head
Noah Watkins [Sun, 21 Jul 2013 01:41:39 +0000 (18:41 -0700)]
utime: use to_timespec for conversion

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoAdd a verbose argument and some verbosity 811/head
David Moreau Simard [Tue, 5 Nov 2013 17:02:47 +0000 (12:02 -0500)]
Add a verbose argument and some verbosity

This allows a user to use "-v|--verbose" to get some insight as to
what could be preventing radosgw from starting properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
11 years agoVerify that radosgw started, return appropriate exit code
David Moreau Simard [Tue, 5 Nov 2013 16:40:31 +0000 (11:40 -0500)]
Verify that radosgw started, return appropriate exit code

Changed "/etc/init.d/radosgw status" into a function that now
returns the appropriate exit code.
We now also verify that radosgw actually started properly.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
11 years agoWe should exit 1 if radosgw is not executable
David Moreau Simard [Tue, 5 Nov 2013 16:32:58 +0000 (11:32 -0500)]
We should exit 1 if radosgw is not executable

An exit 0 means everything went okay - we should exit 1 if there is a problem in
starting radosgw.

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
11 years agoautogen.sh: use glibtoolize when available 827/head
Noah Watkins [Sun, 21 Jul 2013 01:41:38 +0000 (18:41 -0700)]
autogen.sh: use glibtoolize when available

libtoolize is called glibtoolize on osx.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoautogen: set exit on error
Noah Watkins [Tue, 5 Nov 2013 16:06:05 +0000 (08:06 -0800)]
autogen: set exit on error

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #816 from ceph/wip-fadvise
Sage Weil [Tue, 5 Nov 2013 13:31:57 +0000 (05:31 -0800)]
Merge pull request #816 from ceph/wip-fadvise

wbthrottle: use posix_fadvise if available

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #815 from ceph/wip-static-cast
Sage Weil [Tue, 5 Nov 2013 13:29:54 +0000 (05:29 -0800)]
Merge pull request #815 from ceph/wip-static-cast

assert: use feature test for static_cast

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #813 from ceph/wip-blkdev
Sage Weil [Tue, 5 Nov 2013 13:27:40 +0000 (05:27 -0800)]
Merge pull request #813 from ceph/wip-blkdev

support blkdev size query on osx/freebsd

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoFileStore::_collection_move_rename: handle missing dst dir on replay
Samuel Just [Mon, 4 Nov 2013 19:25:31 +0000 (11:25 -0800)]
FileStore::_collection_move_rename: handle missing dst dir on replay

In case of a replay, a missing destination directory indicates that
the destination object and directory have been removed by a later
transaction.  Thus, we need to remove the src object and return
0.

Fixes: #6714
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #803 from ceph/wip-6698
Sage Weil [Tue, 5 Nov 2013 02:37:59 +0000 (18:37 -0800)]
Merge pull request #803 from ceph/wip-6698

upstart: fix ceph-crush-location default

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #814 from ceph/wip-da-fix-galois-warning
Loic Dachary [Tue, 5 Nov 2013 00:36:32 +0000 (16:36 -0800)]
Merge pull request #814 from ceph/wip-da-fix-galois-warning

galois.c: fix compiler warning

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agopdatedoc: Added index link to new install doc. Requires merge of wip-doc-install... 800/head
John Wilkins [Mon, 4 Nov 2013 23:11:49 +0000 (15:11 -0800)]
pdatedoc: Added index link to new install doc. Requires merge of wip-doc-install to work.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Deleted old manual install doc.
John Wilkins [Mon, 4 Nov 2013 23:11:05 +0000 (15:11 -0800)]
doc: Deleted old manual install doc.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Mentioned that install procedure is for manual deployments, not ceph-deploy... 799/head
John Wilkins [Mon, 4 Nov 2013 22:57:41 +0000 (14:57 -0800)]
doc: Mentioned that install procedure is for manual deployments, not ceph-deploy or others.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Changed text for ceph-extras. Made it required. Mentioned newer versions.
John Wilkins [Mon, 4 Nov 2013 22:57:07 +0000 (14:57 -0800)]
doc: Changed text for ceph-extras. Made it required. Mentioned newer versions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agogalois.c: fix compiler warning 814/head
Danny Al-Gaaf [Mon, 4 Nov 2013 22:30:47 +0000 (23:30 +0100)]
galois.c: fix compiler warning

galois_create_split_w8_tables() takes no parameter, remove '8' passed
to the function in one case.

osd/ErasureCodePluginJerasure/galois.c: In function 'galois_w32_region_multiply':
osd/ErasureCodePluginJerasure/galois.c:696:5: warning: call to function 'galois_create_split_w8_tables' without a real prototype [-Wunprototyped-calls]
In file included from osd/ErasureCodePluginJerasure/galois.c:53:0:
osd/ErasureCodePluginJerasure/galois.h:71:12: note: 'galois_create_split_w8_tables' was declared here

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
11 years agoassert: use feature test for static_cast 815/head
Noah Watkins [Sun, 21 Jul 2013 01:41:38 +0000 (18:41 -0700)]
assert: use feature test for static_cast

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agowbthrottle: use posix_fadvise if available 816/head
Noah Watkins [Sun, 21 Jul 2013 01:41:39 +0000 (18:41 -0700)]
wbthrottle: use posix_fadvise if available

Only adding information about data usage. This won't effect correctness.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agodoc: Added DNS and SSL dialog.
John Wilkins [Mon, 4 Nov 2013 20:50:30 +0000 (12:50 -0800)]
doc: Added DNS and SSL dialog.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoOSD: allow project_pg_history to handle a missing map
Samuel Just [Mon, 4 Nov 2013 05:02:36 +0000 (21:02 -0800)]
OSD: allow project_pg_history to handle a missing map

If we get a peering message for an old map we don't have, we
can throwit out: the sending OSD will learn about the newer
maps and update itself accordingly, and we don't have the
information to know if the message is valid. This situation
can only happen if the sender was down for a long enough time
to create a map gap and its PGs have not yet advanced from
their boot-up maps to the current ones, so we can rely on it

Fixes: #6712
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoOSD: don't clear peering_wait_for_split in advance_map()
Samuel Just [Sun, 3 Nov 2013 19:06:10 +0000 (11:06 -0800)]
OSD: don't clear peering_wait_for_split in advance_map()

I really don't know why I added this...  Ops can be discarded from the
waiting_for_pg queue if we aren't primary simply because there must have
been an exchange of peering events before subops will be sent within a
particular epoch.  Thus, any events in the waiting_for_pg queue must be
client ops which should only be seen by the primary.  Peering events, on
the other hand, should only be discarded if we are in a new interval,
and that check might as well be performed in the peering wq.

Fixes: #6681
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir
Samuel Just [Sat, 2 Nov 2013 20:54:51 +0000 (13:54 -0700)]
ReplicatedPG::recover_backfill: adjust last_backfill to HEAD if snapdir

Otherwise, if last_backfill_started is a snapdir, we will fail to send a
transaction for a client IO creating the head object and removing the
snapdir object.  The result will be that head will eventually be
backfilled, but the snapdir object will erroneously not be removed.

Fixes: #6685
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agotest: test helper for get_block_device_size 813/head
Noah Watkins [Mon, 4 Nov 2013 16:28:23 +0000 (08:28 -0800)]
test: test helper for get_block_device_size

This is the start of a potential unit test for get_block_device_size. An
actual unit test will probably need to be run as root, and either find a
device, have one specified, or create one (e.g. ramdisk)  in a platform
agnostic way. In the mean time, this tool can be run by hand, or called
for a bash script.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoblkdev: support blkdev size query on osx
Noah Watkins [Sun, 21 Jul 2013 01:41:39 +0000 (18:41 -0700)]
blkdev: support blkdev size query on osx

Support OSX, add checks for platform specific headers.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agodoc: Implemented changes suggested from feedback.
John Wilkins [Mon, 4 Nov 2013 17:54:58 +0000 (09:54 -0800)]
doc: Implemented changes suggested from feedback.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #812 from ceph/revert-struct-init
Sage Weil [Mon, 4 Nov 2013 15:58:49 +0000 (07:58 -0800)]
Merge pull request #812 from ceph/revert-struct-init

Revert "fix -Wgnu-designator warnings"

11 years agoRevert "fix -Wgnu-designator warnings" 812/head
Noah Watkins [Mon, 4 Nov 2013 14:18:45 +0000 (06:18 -0800)]
Revert "fix -Wgnu-designator warnings"

Struct initialization using dot notation as in C99, but that happens to
not be valid C++, although apparently in C++11 it is valid. We'll need a
way to keep clang from throwing warnings at this initialization style,
either using some macros to detect the comiler environment, or perhaps
moving struct initialization to a C file rather than C++.

This reverts commit 6efc2b54d5ce85fcb4b66237b051bcbb5072e6a3.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #809 from ceph/wip-pgmap
Gregory Farnum [Sun, 3 Nov 2013 17:25:28 +0000 (09:25 -0800)]
Merge pull request #809 from ceph/wip-pgmap

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agotest/libcephfs: free cmount after tests finishes
Xing Lin [Sun, 3 Nov 2013 06:05:58 +0000 (00:05 -0600)]
test/libcephfs: free cmount after tests finishes

unmount and release cmount at the end of tests

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoosd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()
Xing Lin [Sun, 3 Nov 2013 01:24:22 +0000 (19:24 -0600)]
osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()

When bitmatrix is NULL, this function returns NULL.

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #790 from ceph/wip-warnings
Sage Weil [Sun, 3 Nov 2013 05:17:46 +0000 (22:17 -0700)]
Merge pull request #790 from ceph/wip-warnings

ease clang's anxieties

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #793 from ceph/wip-pipe
Sage Weil [Sun, 3 Nov 2013 05:16:18 +0000 (22:16 -0700)]
Merge pull request #793 from ceph/wip-pipe

pipe: use pipe2 feature test; check fcntl retval

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agomon/PGMap: use const ref, not pass-by-value 809/head
Sage Weil [Sat, 2 Nov 2013 06:56:45 +0000 (23:56 -0700)]
mon/PGMap: use const ref, not pass-by-value

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #806 from jdurgin/wip-xfstests
Sage Weil [Sat, 2 Nov 2013 06:32:26 +0000 (23:32 -0700)]
Merge pull request #806 from jdurgin/wip-xfstests

Don't run racy xfstest 008

11 years agoMerge pull request #807 from jdurgin/wip-rbd-map-rw
Sage Weil [Sat, 2 Nov 2013 06:31:44 +0000 (23:31 -0700)]
Merge pull request #807 from jdurgin/wip-rbd-map-rw

rbd: omit 'rw' option during map

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #804 from jdurgin/wip-rgw-replica-log-next
Yehuda Sadeh [Sat, 2 Nov 2013 04:00:24 +0000 (21:00 -0700)]
Merge pull request #804 from jdurgin/wip-rgw-replica-log-next

rgw: don't turn 404 into 400 for the replicalog api

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorbd: omit 'rw' option during map 807/head
Josh Durgin [Sat, 2 Nov 2013 02:02:29 +0000 (19:02 -0700)]
rbd: omit 'rw' option during map

The ro and rw options were added in linux 3.7. To be compatible with
older kernels, don't specify rw. The default will probably always be
rw, so this should not present any problems in the future.

Reported-by: nicolasc <nicolas.canceill@surfsara.nl>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoqa: don't run racy xfstest 008 806/head
Josh Durgin [Sat, 2 Nov 2013 01:41:02 +0000 (18:41 -0700)]
qa: don't run racy xfstest 008

This test attempts to generate a random number of holes within a
particular range, but may fail because hole placement is random.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>