Commit Graph

30906 Commits

Author SHA1 Message Date
Noah Watkins
aae47009ba libc++: use ceph::shared_ptr in installed header
librados.hpp uses std::tr1::shared_ptr which may not be available such
as in libc++. This switches the use to ceph::shared_ptr and as a result
also ships include/memory.h for the definition.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2014-01-18 14:03:54 -08:00
Noah Watkins
4c4e1d0d47 libc++: use ceph:: namespaced data types
Switches the implemetnation of smart pointers and unordered map/set to
use the ceph:: versions.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2014-01-18 14:03:20 -08:00
Noah Watkins
8e8672047c libc++: create portable smart ptr / hash_map/set
Creates ceph:: namespaced versions of smart pointers and unordered map
and sets.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2014-01-18 14:03:15 -08:00
tamil
47bc71a7b4 fixed the syntax for test maxmds=2
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2014-01-17 15:56:36 -08:00
tamil
a13ebd370a fix for the test maxmds=2
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2014-01-17 15:41:48 -08:00
John Wilkins
ad203d5988 doc: Fixed ruleset typo.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-17 13:33:48 -08:00
Yehuda Sadeh
6a19daa2a5 Merge pull request #1106 from ceph/wip-rgw-contention
Wip rgw contention

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-17 13:17:48 -08:00
Yehuda Sadeh
6b7f27c015 librados: use rwlock for lookup pool, cache results
Use rwlock to read cahed results, only use regular lock if
results are not cached.
Invalidate cache on new osdmap.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-17 12:52:02 -08:00
Yehuda Sadeh
4b31456b81 rgw: add .h file to Makefile rule
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-17 12:34:29 -08:00
Sage Weil
7f61d2492f Merge pull request #1082 from dachary/wip-ceph-disk
ceph-disk: larger timeout in the test script

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-17 11:59:00 -08:00
Sage Weil
be5ac2b7c2 Merge pull request #1088 from christian-marie/wip-c-atomic-writes
librados: Add C API coverage for atomic write operations

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-17 11:47:26 -08:00
John Wilkins
d1de32cfb5 doc: Added default-placement to list of placement targets. Added SSL commentary.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-17 11:23:40 -08:00
John Wilkins
80212eaaf4 doc: Added additional comment about port number.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-17 11:22:39 -08:00
Yehuda Sadeh
184e64d073 Merge pull request #1092 from ceph/wip-rgw-loadgen
Wip rgw loadgen

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-17 10:24:18 -08:00
Yehuda Sadeh
021534214a rgw: loadgen, configurable num of objs, buckets
also fix request draining

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-17 10:16:09 -08:00
Yehuda Sadeh
7c867645ac rgw: loadgen shutdown, error out on failures
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-17 10:14:43 -08:00
Yehuda Sadeh
85267cf6af rgw: sign loadgen requests
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-17 10:14:42 -08:00
Yehuda Sadeh
e8a4b307f9 rgw: loadgen frontend read uid, init access key
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-17 10:14:42 -08:00
Yehuda Sadeh
57137cb4b0 rgw: add a load generation frontend
Still missing some pieces, but already generates requests.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-17 10:14:37 -08:00
Sage Weil
b04d26ae41 Merge pull request #1107 from xylv/wip-osd-crash-with-leveldb-cache-set
osd: OSD failed to start with osd_leveldb_cache_size > 0

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-17 09:58:42 -08:00
Sage Weil
65d3348425 Merge pull request #1109 from ceph/wip-rbd-mount_timeout
rbd: expose mount_timeout map option

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-17 09:36:17 -08:00
Ray Lv
f01202de89 Fixes: #7172
To ensure LevelDBStore::db is destroyed before dependent LevelDBStore::db_cache and LevelDBStore::filterpolicy.

Signed-off-by: Signed-off-by: Ray Lv <xiangyulv@gmail.com>
2014-01-17 20:42:54 +08:00
Ilya Dryomov
b1a853e433 rbd: expose mount_timeout map option
Expose mount_timeout map option.  (I missed it in commit 9b7364d245,
which added -o / --options option and among other options exposed
osdkeepalive and osd_idle_ttl timeouts.)

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-01-17 11:53:38 +02:00
Sage Weil
8ec7fa85ab PendingReleaseNotes: note ceph -s fix
See 790dda9c0b.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-01-16 22:44:26 -08:00
Sage Weil
d6b2f87e20 Merge pull request #1104 from concubidated/master
osd: OSDMap: fix output from ceph status --format=json for num_in_osds

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-16 22:42:39 -08:00
Sage Weil
f29ffa2836 Merge pull request #1097 from ceph/fix-configure-rerunning
avoid re-running configure after initial 'make' invocation

This appears to pass the gitbuilders (and the multiple runs of configure have been irritating me for ages). Yay!

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-16 22:33:50 -08:00
Josh Durgin
f61491058b Merge pull request #1103 from ceph/wip-7073
rgw: use configurable prime number for gc hash

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-01-16 20:35:33 -08:00
John Wilkins
6e931326b0 doc: Removed Calxeda example.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 17:00:38 -08:00
John Wilkins
dd4a9e1875 doc: Removed saucy salamander reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:57:16 -08:00
John Wilkins
e7d28a72e6 doc: Added host resolution commentary.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:54:25 -08:00
John Wilkins
22e9a75690 doc: Added comments from #6682.
fixes: #6682

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:51:17 -08:00
John Wilkins
6e37b7a81f doc: Added modification to quick start.
fixes: #6682

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:48:09 -08:00
John Wilkins
742d425fca doc: Changed file name.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:11:15 -08:00
John Wilkins
f7f9bedf48 doc: Added source file for graphic.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:11:01 -08:00
John Wilkins
26aa60212a doc: Added source file for graphic.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:10:47 -08:00
John Wilkins
c30b1387a6 doc: Added third monitor icon.
fixes: #6959

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:10:23 -08:00
John Wilkins
add59b836f doc: Added additional monitor icon.
fixes: #6959

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:09:45 -08:00
John Wilkins
4b03326bad doc: Removed old file. Changed file name.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 16:09:07 -08:00
Yehuda Sadeh
a84cf15f64 rgw: use rwlock for cache
Use a window for cache lru updates, so that we don't need to get the
writer lock every read.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-16 13:32:33 -08:00
Concubidated
790dda9c0b osd: OSDMap: fix output from ceph status --format=json for num_in_osds
num_up_osds returns as an int value, while num_in_osds returns as a string.
Since only an int can be returned from get_num_in_osds(), num_in_osds should
should also be an int to remain consistant with num_up_osds.

Fixes: 7159

Signed-off-by: Tyler Brekke <tyler.brekke@inktank.com>
2014-01-16 12:12:13 -08:00
Yehuda Sadeh
27590c7a32 Merge pull request #915 from ceph/wip-rgw-expose-bucket
6748: rgw: Optionally return the bucket name in a response header.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2014-01-16 11:58:12 -08:00
John Wilkins
3194d66d23 doc: Fixed keyring command and updated for current conventions.
fixes: #6692

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-01-16 11:36:39 -08:00
Sage Weil
d4160fdec3 Merge pull request #1094 from ceph/wip-7117-redhat
packaging: ship libdir/ceph

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-16 08:23:23 -08:00
Loic Dachary
ac5a9fecc7 mon: larger timeout for mon mkfs.sh test
Otherwise slow machines may timeout just because they are slow and not
because the process is blocked by an actual problem.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-01-16 14:32:15 +01:00
Loic Dachary
50808af942 ceph-disk: larger timeout in the test script
Otherwise slow machines may timeout just because they are slow and not
because the process is blocked by an actual problem.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-01-16 14:32:15 +01:00
Loic Dachary
d27731fece Merge pull request #1095 from ceph/wip-7166
osd: OSDMap: build reverse name->pool map upon decoding

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-01-16 05:21:34 -08:00
Joao Eduardo Luis
1aa2601818 osd: OSDMap: build reverse name->pool map upon decoding
Commit 3d7c69fb09 introduced a new OSDMap encoding/decoding scheme.
However, while the classic decoding function still kept building the
reverse name->pool map, the new decoding function did not, causing the
monitor to be unable to map pool names to pool ids.

This patch fixes this, by factoring out the loop responsible for
populating the 'name_pool' map, as well as calling 'calc_num_osds()', to
OSDMap::post_decode() and having this function called from both the
classic and the new decode functions.

Fixes: 7166

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
2014-01-16 12:51:32 +00:00
Wido den Hollander
f97264d484 6748: rgw: Optionally return the bucket name in a response header.
This can be useful in situations where accounting of traffic is done externally
when for example HTTP traffic is cached by a reverse proxy like Varnish.

Since not all traffic reaches the RGW daemon it can't fully account all traffic
and this the caching proxy needs to be aware of which bucket the request came for.

Signed-off-by: Wido den Hollander <wido@42on.com>
2014-01-16 10:02:50 +01:00
Sage Weil
3b696f28d6 Merge pull request #1086 from ceph/wip-temp-primary
Add a "primary temp" to go with "pg temp"

Reviewed-by: Sage Weil <sage@inktank.com>
2014-01-15 19:04:48 -08:00
Ken Dreyer
2d0d48b829 packaging: ship libdir/ceph
Automake puts ceph_common.sh into libdir/ceph, but the Red Hat packaging
was not capturing this file.

Add the libdir/ceph location to the RPM packaging.

Fixes #7117
2014-01-15 20:02:48 -07:00