]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agomon/MonCommands: 'invalidate+forward' -> 'forward' 1124/head
Ilya Dryomov [Tue, 21 Jan 2014 22:27:09 +0000 (00:27 +0200)]
mon/MonCommands: 'invalidate+forward' -> 'forward'

Commit 4e439857a694 introduced invalidate+forward cache mode, commit
81279e3bb6e0 renamed it to forward, but missed the CLI.  Fix it.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
11 years agodoc: Fixed end string from '' to `` to stop warnings. Enforced 80 char line.
John Wilkins [Tue, 21 Jan 2014 19:51:15 +0000 (11:51 -0800)]
doc: Fixed end string from '' to `` to stop warnings. Enforced 80 char line.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1120 from xylv/wip-op-process-latency-squashed
Sage Weil [Tue, 21 Jan 2014 05:34:09 +0000 (21:34 -0800)]
Merge pull request #1120 from xylv/wip-op-process-latency-squashed

osd: Add op_process_latency in perf counter

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoosd: Add op_process_latency in perf counter 1120/head
Ray Lv [Tue, 21 Jan 2014 03:05:26 +0000 (11:05 +0800)]
osd: Add op_process_latency in perf counter

Fixes: #7167
Signed-off-by: Ray Lv <xiangyulv@gmail.com>
11 years agoMerge pull request #1117 from jcsp/wip-7187
Sage Weil [Mon, 20 Jan 2014 20:07:09 +0000 (12:07 -0800)]
Merge pull request #1117 from jcsp/wip-7187

Fix #7187: Include all summary items in JSON health output

Backport: emperor, dumpling
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoFix #7187: Include all summary items in JSON health output 1117/head
John Spray [Mon, 20 Jan 2014 11:08:27 +0000 (11:08 +0000)]
Fix #7187: Include all summary items in JSON health output

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1112 from kazhang/wip-7180
Sage Weil [Sun, 19 Jan 2014 20:00:07 +0000 (12:00 -0800)]
Merge pull request #1112 from kazhang/wip-7180

Fix #7180 in ceph_rest_api

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMissing a key for perm 'w' in permmap (src/pybin/ceph_rest_api.py:277) 1112/head
Kai Zhang [Sat, 18 Jan 2014 20:17:10 +0000 (12:17 -0800)]
Missing a key for perm 'w' in permmap (src/pybin/ceph_rest_api.py:277)
It leads to a 500 error when getting mds help info via rest api.
Changed "w" to "rw" in MonCommands.h

Fixes: #7180
Signed-off-by: Kai Zhang <kazhang2@cisco.com>
11 years agoMerge pull request #1111 from ceph/wip-osdmap-7177
Sage Weil [Sun, 19 Jan 2014 05:06:09 +0000 (21:06 -0800)]
Merge pull request #1111 from ceph/wip-osdmap-7177

OSDMap: Populate primary_temp values a little more carefully

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoOSDMap: Populate primary_temp values a little more carefully 1111/head
Greg Farnum [Sat, 18 Jan 2014 01:23:33 +0000 (17:23 -0800)]
OSDMap: Populate primary_temp values a little more carefully

In _get_temp_osds(), we populate temp_pg from the list in the OSDMap,
but we also skip anybody in the list who's down. We need to account
for those skips when setting the primary. It's easy enough to do -- just
look at the output pg_temp list instead of the OSDMap's starting one.

Fixes: #7177
Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agofixed the syntax for test maxmds=2
tamil [Fri, 17 Jan 2014 23:56:36 +0000 (15:56 -0800)]
fixed the syntax for test maxmds=2

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
11 years agofix for the test maxmds=2
tamil [Fri, 17 Jan 2014 23:41:48 +0000 (15:41 -0800)]
fix for the test maxmds=2

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
11 years agodoc: Fixed ruleset typo.
John Wilkins [Fri, 17 Jan 2014 21:33:48 +0000 (13:33 -0800)]
doc: Fixed ruleset typo.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1106 from ceph/wip-rgw-contention
Yehuda Sadeh [Fri, 17 Jan 2014 21:17:48 +0000 (13:17 -0800)]
Merge pull request #1106 from ceph/wip-rgw-contention

Wip rgw contention

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agolibrados: use rwlock for lookup pool, cache results 1106/head
Yehuda Sadeh [Thu, 5 Dec 2013 07:55:59 +0000 (23:55 -0800)]
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>
11 years agorgw: add .h file to Makefile rule
Yehuda Sadeh [Fri, 17 Jan 2014 20:34:29 +0000 (12:34 -0800)]
rgw: add .h file to Makefile rule

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #1082 from dachary/wip-ceph-disk
Sage Weil [Fri, 17 Jan 2014 19:59:00 +0000 (11:59 -0800)]
Merge pull request #1082 from dachary/wip-ceph-disk

ceph-disk: larger timeout in the test script

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1088 from christian-marie/wip-c-atomic-writes
Sage Weil [Fri, 17 Jan 2014 19:47:26 +0000 (11:47 -0800)]
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>
11 years agodoc: Added default-placement to list of placement targets. Added SSL commentary.
John Wilkins [Fri, 17 Jan 2014 19:23:40 +0000 (11:23 -0800)]
doc: Added default-placement to list of placement targets. Added SSL commentary.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added additional comment about port number.
John Wilkins [Fri, 17 Jan 2014 19:22:39 +0000 (11:22 -0800)]
doc: Added additional comment about port number.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1092 from ceph/wip-rgw-loadgen
Yehuda Sadeh [Fri, 17 Jan 2014 18:24:18 +0000 (10:24 -0800)]
Merge pull request #1092 from ceph/wip-rgw-loadgen

Wip rgw loadgen

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agorgw: loadgen, configurable num of objs, buckets 1092/head
Yehuda Sadeh [Fri, 20 Dec 2013 20:58:15 +0000 (12:58 -0800)]
rgw: loadgen, configurable num of objs, buckets

also fix request draining

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: loadgen shutdown, error out on failures
Yehuda Sadeh [Thu, 19 Dec 2013 22:49:18 +0000 (14:49 -0800)]
rgw: loadgen shutdown, error out on failures

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: sign loadgen requests
Yehuda Sadeh [Thu, 19 Dec 2013 01:03:21 +0000 (17:03 -0800)]
rgw: sign loadgen requests

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: loadgen frontend read uid, init access key
Yehuda Sadeh [Tue, 17 Dec 2013 01:05:18 +0000 (17:05 -0800)]
rgw: loadgen frontend read uid, init access key

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agorgw: add a load generation frontend
Yehuda Sadeh [Mon, 16 Dec 2013 23:30:57 +0000 (15:30 -0800)]
rgw: add a load generation frontend

Still missing some pieces, but already generates requests.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoMerge pull request #1107 from xylv/wip-osd-crash-with-leveldb-cache-set
Sage Weil [Fri, 17 Jan 2014 17:58:42 +0000 (09:58 -0800)]
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>
11 years agoMerge pull request #1109 from ceph/wip-rbd-mount_timeout
Sage Weil [Fri, 17 Jan 2014 17:36:17 +0000 (09:36 -0800)]
Merge pull request #1109 from ceph/wip-rbd-mount_timeout

rbd: expose mount_timeout map option

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoFixes: #7172 1107/head
Ray Lv [Fri, 17 Jan 2014 12:42:54 +0000 (20:42 +0800)]
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>
11 years agorbd: expose mount_timeout map option 1109/head
Ilya Dryomov [Fri, 17 Jan 2014 09:49:40 +0000 (11:49 +0200)]
rbd: expose mount_timeout map option

Expose mount_timeout map option.  (I missed it in commit 9b7364d2450c,
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>
11 years agoPendingReleaseNotes: note ceph -s fix
Sage Weil [Fri, 17 Jan 2014 06:44:26 +0000 (22:44 -0800)]
PendingReleaseNotes: note ceph -s fix

See 790dda9c0b75fa5a59ce6187b6131dad54d6d3fe.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1104 from concubidated/master
Sage Weil [Fri, 17 Jan 2014 06:42:39 +0000 (22:42 -0800)]
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>
11 years agoMerge pull request #1097 from ceph/fix-configure-rerunning
Sage Weil [Fri, 17 Jan 2014 06:33:50 +0000 (22:33 -0800)]
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>
11 years agoMerge pull request #1103 from ceph/wip-7073
Josh Durgin [Fri, 17 Jan 2014 04:35:33 +0000 (20:35 -0800)]
Merge pull request #1103 from ceph/wip-7073

rgw: use configurable prime number for gc hash

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agodoc: Removed Calxeda example.
John Wilkins [Fri, 17 Jan 2014 01:00:38 +0000 (17:00 -0800)]
doc: Removed Calxeda example.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Removed saucy salamander reference.
John Wilkins [Fri, 17 Jan 2014 00:57:16 +0000 (16:57 -0800)]
doc: Removed saucy salamander reference.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added host resolution commentary.
John Wilkins [Fri, 17 Jan 2014 00:54:25 +0000 (16:54 -0800)]
doc: Added host resolution commentary.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added comments from #6682.
John Wilkins [Fri, 17 Jan 2014 00:51:17 +0000 (16:51 -0800)]
doc: Added comments from #6682.

fixes: #6682

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added modification to quick start.
John Wilkins [Fri, 17 Jan 2014 00:48:09 +0000 (16:48 -0800)]
doc: Added modification to quick start.

fixes: #6682

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Changed file name.
John Wilkins [Fri, 17 Jan 2014 00:11:15 +0000 (16:11 -0800)]
doc: Changed file name.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added source file for graphic.
John Wilkins [Fri, 17 Jan 2014 00:11:01 +0000 (16:11 -0800)]
doc: Added source file for graphic.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added source file for graphic.
John Wilkins [Fri, 17 Jan 2014 00:10:47 +0000 (16:10 -0800)]
doc: Added source file for graphic.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added third monitor icon.
John Wilkins [Fri, 17 Jan 2014 00:10:23 +0000 (16:10 -0800)]
doc: Added third monitor icon.

fixes: #6959

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Added additional monitor icon.
John Wilkins [Fri, 17 Jan 2014 00:09:45 +0000 (16:09 -0800)]
doc: Added additional monitor icon.

fixes: #6959

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Removed old file. Changed file name.
John Wilkins [Fri, 17 Jan 2014 00:09:07 +0000 (16:09 -0800)]
doc: Removed old file. Changed file name.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agorgw: use rwlock for cache
Yehuda Sadeh [Sat, 26 Oct 2013 00:16:34 +0000 (17:16 -0700)]
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>
11 years agoosd: OSDMap: fix output from ceph status --format=json for num_in_osds 1104/head
Concubidated [Thu, 16 Jan 2014 20:12:13 +0000 (12:12 -0800)]
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>
11 years agoMerge pull request #915 from ceph/wip-rgw-expose-bucket
Yehuda Sadeh [Thu, 16 Jan 2014 19:58:12 +0000 (11:58 -0800)]
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>
11 years agodoc: Fixed keyring command and updated for current conventions.
John Wilkins [Thu, 16 Jan 2014 19:36:39 +0000 (11:36 -0800)]
doc: Fixed keyring command and updated for current conventions.

fixes: #6692

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1094 from ceph/wip-7117-redhat
Sage Weil [Thu, 16 Jan 2014 16:23:23 +0000 (08:23 -0800)]
Merge pull request #1094 from ceph/wip-7117-redhat

packaging: ship libdir/ceph

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agomon: larger timeout for mon mkfs.sh test 1082/head
Loic Dachary [Thu, 16 Jan 2014 13:29:46 +0000 (14:29 +0100)]
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>
11 years agoceph-disk: larger timeout in the test script
Loic Dachary [Tue, 14 Jan 2014 09:18:15 +0000 (10:18 +0100)]
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>
11 years agoMerge pull request #1095 from ceph/wip-7166
Loic Dachary [Thu, 16 Jan 2014 13:21:34 +0000 (05:21 -0800)]
Merge pull request #1095 from ceph/wip-7166

osd: OSDMap: build reverse name->pool map upon decoding

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoosd: OSDMap: build reverse name->pool map upon decoding 1095/head
Joao Eduardo Luis [Thu, 16 Jan 2014 12:51:32 +0000 (12:51 +0000)]
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>
11 years ago6748: rgw: Optionally return the bucket name in a response header. 915/head
Wido den Hollander [Mon, 11 Nov 2013 15:37:40 +0000 (16:37 +0100)]
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>
11 years agoMerge pull request #1086 from ceph/wip-temp-primary
Sage Weil [Thu, 16 Jan 2014 03:04:48 +0000 (19:04 -0800)]
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>
11 years agopackaging: ship libdir/ceph 1094/head
Ken Dreyer [Wed, 15 Jan 2014 00:56:32 +0000 (17:56 -0700)]
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

11 years agodoc/release-notes: v0.76 draft notes
Sage Weil [Wed, 15 Jan 2014 06:21:44 +0000 (22:21 -0800)]
doc/release-notes: v0.76 draft notes

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agomon: favor 'mds set max_mds' over 'mds set_max_mds'
Sage Weil [Wed, 15 Jan 2014 06:07:24 +0000 (22:07 -0800)]
mon: favor 'mds set max_mds' over 'mds set_max_mds'

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1093 from kdreyer-inktank/redhat-missing-tests
Sage Weil [Thu, 16 Jan 2014 03:01:08 +0000 (19:01 -0800)]
Merge pull request #1093 from kdreyer-inktank/redhat-missing-tests

packaging: add missing test files

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agopackaging: add missing test files 1093/head
Ken Dreyer [Thu, 16 Jan 2014 02:37:50 +0000 (19:37 -0700)]
packaging: add missing test files

Two tests were inadvertantly missing from the RPM packaging:

ceph_test_c_headers was added to ceph in
ffdd30efc870eafb1047f022b16d9680d88fcc78

ceph_test_get_blkdev_size was added to ceph in
324dd54534e41598feb6169f33cfed85495fa91f

Add both of these to the packaging.

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
11 years agorgw: use configurable prime number for gc hash 1103/head
Yehuda Sadeh [Wed, 15 Jan 2014 23:57:51 +0000 (15:57 -0800)]
rgw: use configurable prime number for gc hash

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoOSDMonitor: make sure we don't send out maps with a primary_temp mapping 1086/head
Greg Farnum [Wed, 15 Jan 2014 22:51:35 +0000 (14:51 -0800)]
OSDMonitor: make sure we don't send out maps with a primary_temp mapping

Making sure a cluster supports primary_temp is complicated and we don't
have any of the machinery in place right now (nor a need to actually support
it). We don't have any mechanisms for setting it to begin with, so assert
that we never create anything with any such mapping in update_from_paxos()
to catch any errors.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agotest: add an OSDMap unittest
Greg Farnum [Sat, 11 Jan 2014 00:52:39 +0000 (16:52 -0800)]
test: add an OSDMap unittest

This is not super-sophisticated, but it does basic mapping function
consistency checks and looks at the [pg|primary]_temp manipulations. If
we want to in the future, we can do these programmatically across a range
of pgids instead of just checking hash 0.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: move temp manipulation functions out of OSDMonitor
Greg Farnum [Wed, 15 Jan 2014 23:25:49 +0000 (15:25 -0800)]
OSDMap: move temp manipulation functions out of OSDMonitor

In doing so, consolidate remove_down_pg_temp() and remove_down_primary_temp().

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: pay attention to the temp_primary in _get_temp_osds
Greg Farnum [Fri, 20 Dec 2013 23:21:18 +0000 (15:21 -0800)]
OSDMap: pay attention to the temp_primary in _get_temp_osds

Switch _get_temp_osds to use pointers instead of references, and force callers
to check the out params instead of relying on a return code for if anything
was set (trying to use the return code when there are two possible outputs
does not provide useable semantics). For the new temp_primary out param, fill it
in from temp_primary if set, or from the pg_temp list if it's set, or leave
it blank if neither are.

Also, don't use pointers to heap elements. Just put the ints and vectors on
the stack, and assign/swap the out parameters with them. This is less
confusing and should be a bit faster in general.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: add primary out params to _pg_to_osds and _raw_to_up_osds
Greg Farnum [Fri, 20 Dec 2013 22:43:03 +0000 (14:43 -0800)]
OSDMap: add primary out params to _pg_to_osds and _raw_to_up_osds

Switch to use pointers for the out parameters instead of references.

These functions are still just pointing at the front of the generated
lists for the "primary" params, but now that all their callers respect
these outputs we can add programmatic leader assignment with just these
two functions.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: add primary out params to internal _pg_to_up_acting_osds function
Greg Farnum [Thu, 19 Dec 2013 22:39:05 +0000 (14:39 -0800)]
OSDMap: add primary out params to internal _pg_to_up_acting_osds function

And use pointers instead of references for out params.

Now pg_to_up_acting_osds and pg_to_acting_osds can plug in to this slightly
more real implementation, instead of making up their own. (We are still
just using the first member anyway, but we're about to plug it into
the bottom layer of functions.)

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMonitor: implement remove_down_primary_temp()
Greg Farnum [Thu, 19 Dec 2013 01:40:11 +0000 (17:40 -0800)]
OSDMonitor: implement remove_down_primary_temp()

Same as remove_down_pg_temp()

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMonitor: make remove_redundant_pg_temp clear primary, too
Greg Farnum [Wed, 15 Jan 2014 23:24:38 +0000 (15:24 -0800)]
OSDMonitor: make remove_redundant_pg_temp clear primary, too

So that this works with future CRUSH changes, we copy the map and clear
out the primary_temp, then compare its output with the real map's output. If
they match, remove the primary_temp from the real map.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMonitor: remove primary_temp entries when you remove their pool
Greg Farnum [Thu, 19 Dec 2013 01:53:51 +0000 (17:53 -0800)]
OSDMonitor: remove primary_temp entries when you remove their pool

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: expose the primary_temp in print()
Greg Farnum [Thu, 19 Dec 2013 01:53:28 +0000 (17:53 -0800)]
OSDMap: expose the primary_temp in print()

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: dedup the primary_temp
Greg Farnum [Thu, 19 Dec 2013 01:53:11 +0000 (17:53 -0800)]
OSDMap: dedup the primary_temp

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: add primary_temp to apply_incremental()
Greg Farnum [Thu, 19 Dec 2013 01:41:54 +0000 (17:41 -0800)]
OSDMap: add primary_temp to apply_incremental()

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: add [new_]primary_temp to the map and Incremental
Greg Farnum [Fri, 13 Dec 2013 01:21:38 +0000 (17:21 -0800)]
OSDMap: add [new_]primary_temp to the map and Incremental

It's not used actively yet, but there it is.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: update Incremental encode/decode to match the full map's
Greg Farnum [Thu, 12 Dec 2013 23:35:51 +0000 (15:35 -0800)]
OSDMap: update Incremental encode/decode to match the full map's

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: add a CEPH_FEATURE_OSDMAP_ENC feature, and use new encoding
Greg Farnum [Thu, 12 Dec 2013 23:35:23 +0000 (15:35 -0800)]
OSDMap: add a CEPH_FEATURE_OSDMAP_ENC feature, and use new encoding

Bring our OSDMap encoding into the modern Ceph world! :) This is
fairly straightforward, but has a few rough edges:
Previously we had a "struct_v" which went at the beginning of the
OSDMap encoding, and then later on an ev "extended version" which
was used to store the more-frequently-changed OSDMap pieces. There
was no size information stored explicitly to let clients skip this,
but osd maps were always encoded into their own bufferlist before
being sent to clients, which had the same effect.
We now use the modern ENCODE_START three times:
1) for the overall OSDMap encoding,
2) for the client-usable portion of the map,
3) for the "extended" portion of the map

This will let us independently rev everything, which may come in
useful if we want to (for instance) add a "monitor" portion to the
map that the OSDs don't care about. It also makes adding new
client information a lot easier since older clients will still
be able to decode the map as a whole.

We may want to merge this OSDMAP_ENC feature with one of the others
we are creating during this cycle, since they're all very closely
related. That will also let us protect more naturally against old
clients getting a map they need to understand but can't (because
we only need the new map features-to-come when used with erasure-encoded
PGs, etc).

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: add primary out param to pg_to_raw_up, and use pointers instead of refs
Greg Farnum [Fri, 20 Dec 2013 21:45:38 +0000 (13:45 -0800)]
OSDMap: add primary out param to pg_to_raw_up, and use pointers instead of refs

The only user is in the OSDMonitor, and it's going to want that
information anyway.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: add primary-specifying pg_to_acting_osds
Greg Farnum [Fri, 20 Dec 2013 23:26:11 +0000 (15:26 -0800)]
OSDMap: add primary-specifying pg_to_acting_osds

This works the same as pg_to_up_acting_osds

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agomon, osdmaptool: switch to primary-specifying pg_to_up_acting_osds
Greg Farnum [Sat, 14 Dec 2013 00:28:05 +0000 (16:28 -0800)]
mon, osdmaptool: switch to primary-specifying pg_to_up_acting_osds

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: implement pg_to_up_acting_osds with primary interface
Greg Farnum [Fri, 20 Dec 2013 21:35:28 +0000 (13:35 -0800)]
OSDMap: implement pg_to_up_acting_osds with primary interface

Use our pointer calling conventions instead of a reference for the
new version of the function.

Right now we're just setting the primaries equal to the first member
of up and acting (or -1 if none), but very shortly we'll modify our
private OSDMap functions to export them based on the contents of temp_primary.
While in general anybody querying for the mapping information will
need to pay attention to whom the primary is as well, we have lots
of callers who will need real code changes to do so. To serve them,
we keep a version that does not export the primary, but asserts
that the primary matches the first entry in its list.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: switch pg_to_osds to have an explicit primary param
Greg Farnum [Fri, 20 Dec 2013 21:30:40 +0000 (13:30 -0800)]
OSDMap: switch pg_to_osds to have an explicit primary param

Use pointers instead of references for the out params, too!

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: rename _raw_to_temp_osds() -> _get_temp_osds()
Greg Farnum [Thu, 19 Dec 2013 02:14:15 +0000 (18:14 -0800)]
OSDMap: rename _raw_to_temp_osds() -> _get_temp_osds()

This function does not (and never has!) used the raw vector, so remove it
and don't use a name which implies it is doing any sort of conversion.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: unify the pg_to_acting_osds and pg_to_up_acting_osds implementations
Greg Farnum [Fri, 13 Dec 2013 21:55:31 +0000 (13:55 -0800)]
OSDMap: unify the pg_to_acting_osds and pg_to_up_acting_osds implementations

These were the same except for a call to _raw_to_up_osds(). Move the
existing pg_to_up_acting_osds into a private function taking a pointer,
only fill in the up vector if it's a non-NULL pointer, and call it via
the obvious header implementations.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: remove get_pg_primary() function
Greg Farnum [Fri, 13 Dec 2013 21:28:42 +0000 (13:28 -0800)]
OSDMap: remove get_pg_primary() function

This was used only by SyntheticClient, and that wants get_pg_acting_primary()
anyway. Delete the easily-misused get_pg_primary() and switch.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoOSDMap: doc the different pg->OSD mapping functions
Greg Farnum [Fri, 13 Dec 2013 21:36:23 +0000 (13:36 -0800)]
OSDMap: doc the different pg->OSD mapping functions

Some of these look like what you should use for mapping and they absolutely
are not suitable for that. Make it clearer.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoosd: do not misuse calc_pg_role
Greg Farnum [Tue, 14 Jan 2014 22:56:31 +0000 (14:56 -0800)]
osd: do not misuse calc_pg_role

We've been using the role returned from this to determine if we're
the primary or not. Don't.
This is mostly about removing a few asserts; while in there I also
redirected some calls to use static dereference instead of going through
the osdmap lookup path.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoPG: do not use role == 0 as a determinant of primacy
Greg Farnum [Fri, 13 Dec 2013 22:48:51 +0000 (14:48 -0800)]
PG: do not use role == 0 as a determinant of primacy

We already have an is_primary() function to use instead.

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #978 from ceph/wip-3454
Josh Durgin [Wed, 15 Jan 2014 23:28:31 +0000 (15:28 -0800)]
Merge pull request #978 from ceph/wip-3454

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoradosgw-admin: add temp url params to usage 978/head
Yehuda Sadeh [Wed, 15 Jan 2014 23:12:40 +0000 (15:12 -0800)]
radosgw-admin: add temp url params to usage

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agoautogen: re-run aclocal after libtoolize 1097/head
Noah Watkins [Wed, 15 Jan 2014 18:43:49 +0000 (10:43 -0800)]
autogen: re-run aclocal after libtoolize

This seems to prevent configure from re-running after the first
invocation of 'make' following ./autogen.sh. The autoreconf script also
does this.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
11 years agoMerge pull request #1089 from dachary/wip-mailmap
athanatos [Wed, 15 Jan 2014 18:25:28 +0000 (10:25 -0800)]
Merge pull request #1089 from dachary/wip-mailmap

mailmap: add athanatos <sam.just@inktank.com>

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #963 from dachary/wip-erasure-code-api
athanatos [Wed, 15 Jan 2014 18:22:47 +0000 (10:22 -0800)]
Merge pull request #963 from dachary/wip-erasure-code-api

erasure code interface helpers

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agodoc: Updated paths for OSDs using the OS disk.
John Wilkins [Wed, 15 Jan 2014 18:08:28 +0000 (10:08 -0800)]
doc: Updated paths for OSDs using the OS disk.

fixes: #6682

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agolibrados: Add C API coverage for atomic write operations 1088/head
Christian Marie [Wed, 15 Jan 2014 04:55:11 +0000 (15:55 +1100)]
librados: Add C API coverage for atomic write operations

Signed-off-by: Christian Marie <christian@ponies.io>
11 years agomailmap: add athanatos <sam.just@inktank.com> 1089/head
Loic Dachary [Wed, 15 Jan 2014 08:23:09 +0000 (09:23 +0100)]
mailmap: add athanatos <sam.just@inktank.com>

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1084 from dachary/wip-cephtool-test
Sage Weil [Wed, 15 Jan 2014 05:57:48 +0000 (21:57 -0800)]
Merge pull request #1084 from dachary/wip-cephtool-test

qa: cleanup cephtool/test.sh tmp files

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1085 from dachary/ceph-master
Gregory Farnum [Tue, 14 Jan 2014 23:12:34 +0000 (15:12 -0800)]
Merge pull request #1085 from dachary/ceph-master

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agocommon: fix bufferlist::append(istream) test 1085/head
Loic Dachary [Tue, 14 Jan 2014 17:25:55 +0000 (18:25 +0100)]
common: fix bufferlist::append(istream) test

bufferlist::append(istream) now filters out empty lines; reflect this in
the test

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agodoc/release-notes: v0.75
Sage Weil [Tue, 14 Jan 2014 17:37:41 +0000 (09:37 -0800)]
doc/release-notes: v0.75

Signed-off-by: Sage Weil <sage@inktank.com>