Commit Graph

28066 Commits

Author SHA1 Message Date
John Wilkins
a5d8605797 doc: Added trouble shooting entry. Fixed formatting.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:49:58 -07:00
John Wilkins
e3d59a2c73 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:45:24 -07:00
John Wilkins
1db0f25426 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:44:59 -07:00
John Wilkins
a38ab07a81 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:44:44 -07:00
John Wilkins
0f56e3ebb5 doc: Nomenclature update.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:44:20 -07:00
John Wilkins
ea80532d2b doc: Nomenclature update. Added topic for monitor key caps. Added default pool steps.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-08-05 13:43:21 -07:00
Sage Weil
a0929955cb mds: fix locking, use-after-free/race in handle_accept
We need to hold mds_lock here.

Normally the con also holds a reference, but an ill-timed connection reset
could drop it.

Fixes: #5883
Backport: dumpling, cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-05 12:52:44 -07:00
John Wilkins
e8d72ef040 Merge pull request #483 from ceph/wip-5881
fix invalid cluster naming in example
2013-08-05 10:31:01 -07:00
Alfredo Deza
1cd6e2e3f3 fix invalid cluster naming in example
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
2013-08-05 10:16:54 -07:00
Sage Weil
9797986697 Merge remote-tracking branch 'gh/next' 2013-08-02 11:54:53 -07:00
Sage Weil
ea1243a112 Merge remote-tracking branch 'gh/wip-rgw-leaks'
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2013-08-02 11:54:31 -07:00
Yehuda Sadeh
ef036bd4bc Merge branch 'wip-5831' into next 2013-08-01 18:27:34 -07:00
Yehuda Sadeh
60679a0a6a Merge branch 'wip-5810' into next 2013-08-01 18:27:20 -07:00
Yehuda Sadeh
ae15381347 rgw: only fetch cors info when needed
Fixes: #5831

This commit moves around the cors handling code. Beforehand
we were unnecessarily reading the cors headers for every
request whether that was needed or not. Moved that code to
be only called when needed. While at it, cleaned up the
layering a bit so that not to mix S3 specific code with
the generic functionality (except for debugging).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-01 18:27:01 -07:00
Yehuda Sadeh
b139a7cd34 rgw: don't read cors attrs if there's no bucket in operation
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-01 18:26:47 -07:00
Yehuda Sadeh
43c2712535 rgw: rename sync-type to update-type
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-01 18:26:05 -07:00
Yehuda Sadeh
bbac69ccff rgw: only check version if meta object exists
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-01 18:25:04 -07:00
Gary Lowell
ab1f4386a1 Merge pull request #478 from dalgaaf/wip-da-spec-req
Fix BuildRequires in SPEC file
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
2013-08-01 11:11:44 -07:00
Danny Al-Gaaf
caaaf2c211 ceph.spec.in: merge back JUnit handling from SUSE spec
Merge back what we have in the (open)SUSE ceph spec file for JUnit.
Add missing Requires and the package is named junit4 on some SUSE
versions.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-08-01 15:01:22 +02:00
Danny Al-Gaaf
cbf3a11cf3 ceph.spec.in: move junit BuildRequires to the cephfs-java subpackage
JUnit is only needed by cephfs-java. Move the BuildRequires to this
subpackage.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-08-01 15:00:25 +02:00
Danny Al-Gaaf
4a95796251 ceph.spec.in: use snappy-devel only on RHEL derivatives
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-08-01 15:00:22 +02:00
Erik Logtenberg
17b460c55f ceph.spec.in: add missing buildrequires for Fedora
This patch adds two buildrequires to the ceph.spec file, that are needed
to build the rpms under Fedora. Danny Al-Gaaf commented that the
snappy-devel dependency should actually be added to the leveldb-devel
package. I will try to get that fixed too, in the mean time, this patch
does make sure Ceph builds on Fedora.

Signed-off-by: Erik Logtenberg <erik@logtenberg.eu>
2013-08-01 15:00:19 +02:00
Dan Mick
bbd558ada5 Merge branch 'wip-5815' into next
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-31 23:01:03 -07:00
David Zafman
317d698235 Merge branch 'wip-5784' into next
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-07-31 21:25:20 -07:00
Dan Mick
c70e59ed74 mon/MDSMonitor: don't call all EINVALs "unrecognized command"
Some of them are valid EINVALs (like mds setmap with the wrong epochnum)

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-31 18:11:47 -07:00
Dan Mick
c9e8ff2bf1 rest/test.py: retry mds setmap in case epoch has changed
Loop 10 times retrying mds dump/getmap/setmap.

Fixes: #5815
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-31 18:11:47 -07:00
Dan Mick
dc1d95d713 rest/test.py: expect_nofail() to allow examination of reason
Also remove unused MyException

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-31 18:11:47 -07:00
Sage Weil
bf0061bf31 v0.67-rc3
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iQIcBAABAgAGBQJR+DJQAAoJEH6/3V0X7TFtDWEP/2GtRA5fhypShgnmFgFkn4Jo
 cIass+kDsAnd0w0BVxLdnuOOv6xru4yc5NBE1u+FFfIJnLXt6cfCAc0wdZ+nDzX6
 eqTL/+oB0N9mScuuo/SRSlfj3tbhivPW/WU6wj9C1w0HevAh2uS2pYsbQx7+oQt1
 LHKQRB0tCq7/ASnLw3MxeZr6rw8+TYFCl+1X/b9h+ls0GSF7Qzbrqtr6r0dFAMk8
 +BT/O9duOEbQzOtVL0kohYy9Mv1W308EQA+WvMAqXvylmQW8BV3jErQbm8miIYhK
 9RFyZ8FtlXVoXnbYS4nOV53TQaSZ0IxMvi65osB2ce+MFzlSLnvo4+5Ip2NcVDfY
 PN5omSgc5Kp5EAVAAeHHwyTjVEIQc1R5pI1sffBUzBhHp7wqsNZ3tSxwL8c4ZmEU
 /oa6K4JuTUSsVHW13KS/fVs1NHkP25itUI+jCY8VNsGDogTvGJe62BHX9WgGabzj
 oDUieTGJpSJwpH11E9uDve8qe0WQqVzeJLJb+7CXWm5l3xNE/+Gt0dOrVPqznorO
 3nEGZm2x48kSFEjlKyDhIN9LMEEgJm/+Hpx3n+QvVmlvZFku64azKf/inC9+LdPa
 4N7c3vbNsRT5bOdQLEbFfFh0GupFdUPsuYZgSun6sbfUhe9kq2t72JmOfuMcNegf
 IxXJeBxlw9UNTaWFX4uj
 =7B6k
 -----END PGP SIGNATURE-----

Merge tag 'v0.67-rc3' into next

v0.67-rc3
2013-07-31 18:08:08 -07:00
David Zafman
4a6eff88aa Verify that deleting op never in check_latest_map_ops map
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-07-31 17:04:09 -07:00
David Zafman
600e6aca2c osdc: op left in check_lastest_map_ops
Call op_cancel_map_check before cancel_op() in send_linger()

Fixes: #5784

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-07-31 15:51:13 -07:00
Sage Weil
b4ed4e2ebd qa/workunits/cephtool/test_daemon.sh: sudo
Fixes: #5814
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-31 13:46:12 -07:00
David Zafman
d651658d17 osdc: Add asserts that client_lock is held
Clarify locking by indicating that client_lock is held

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-07-31 12:04:23 -07:00
David Zafman
5bd061c039 test: Fix valgrind found "Mismatched free() / delete / delete []"
Use delete[] in set_argv() so that valgrind runs clean

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-07-31 12:04:23 -07:00
David Zafman
c48644d811 qa: Add workunit that hangs for manual thrasher testing
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-07-31 12:04:23 -07:00
Sage Weil
00dc634451 ceph: developer mode: set PATH, too
Otherwise the call to ceph-conf may fail if it is not installed on the
local machine.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-30 23:08:58 -07:00
Sage Weil
e70e08c060 cephtool/test.sh: add tests for mon daemon command
[Also move into a separatate test script; validate result -sage]

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-30 23:04:41 -07:00
Dan Mick
47d0d64d5c Make all AdminSocket commands use argparse/cmdmap.
Fixes regression in daemon commands with arguments; also resolves
reported bug with existing daemon code for arguments with
embedded spaces.

Fixes: #5503
Fixes: #5800

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-30 22:28:36 -07:00
Sage Weil
3fa1cd20b5 Merge remote-tracking branch 'gh/next' 2013-07-30 16:55:21 -07:00
Yehuda Sadeh
736d6a1bde rgw: fix set_buckets_enabled(), set_bucket_owner()
Fixes: 5808

We cannot call get_bucket_instance_info() at that point,
as the bucket structure wasn't initialized, so we don't
have the bucket instance location information. Just calling
get_bucket_info().

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-07-30 16:03:12 -07:00
Samuel Just
0e125e0e86 Objecter: set c->session to NULL if acting is empty
Otherwise, we might leave a session attached to the
CommandOp for an down OSD.  handle_osd_map will then
delete the session for the down OSD.  tick() will then
attempt to follow the invalid pointer to find a
connection over which to send a MPing.

Fixes: #5798
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-30 15:52:38 -07:00
Gary Lowell
16adb916cd v0.67-rc3 2013-07-30 14:37:56 -07:00
Sage Weil
e747fa8e32 Revert "Use dh_installinit to install upstart job files"
This reverts commit 251a6a498d.

This includes /etc/init.d/radosgw in the ceph package, which makes it
conflict with radosgw.
2013-07-30 13:31:35 -07:00
Sage Weil
60cbed3fcd Merge remote-tracking branch 'gh/wip-mon' into next
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-07-30 12:40:55 -07:00
Sage Weil
ebab04e018 mon: add missing state name
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-29 22:19:39 -07:00
Sage Weil
b8af38b6fc mon: allow others to sync from us across bootstrap calls
If someone is syncing from us and there is an election, they currently get
reset and have to restart their sync.  This can lead to situations where
they can never finish, e.g., when the load from them syncing makes us time
out commits and call elections.

There is nothing that changes during bootstrap that would prevent a sync
from proceeding.  The only time we need to stop providing is when we
ourselves decide to sync from someone else; modify that reset call to
reset provider state.  All other resets become requester resets.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-29 17:14:57 -07:00
Sage Weil
634dcf3362 mon: drop useless sync_reset() calls
These are both right before bootstrap(), which also resets.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-29 17:10:09 -07:00
Sage Weil
f7d1902ccf mon/Paxos: be more vocal about calling elections
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-29 16:09:06 -07:00
Yehuda Sadeh
eb6e6da1a9 rgw: keep a region connection map
Fixes: #5793

Beforehand all remote copies were going to the master region
which was awfully wrong.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-07-29 15:11:41 -07:00
Yehuda Sadeh
f10c2e746e rgw: cors subresource needs to be in canonical auth header
Fixes: #5789

This was fixed before, however, might have been lost due to
recent refactoring + merge.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-07-29 15:11:37 -07:00
Sage Weil
3f5352ac67 Merge pull request #463 from toabctl/upstart-handling
Use dh_installinit to install upstart job files

Reviewed-by: Gaudenz Steinlin <gaudenz@debian.org>
2013-07-29 15:09:19 -07:00