]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agoPGLog: create interface allowing interface user to cleanup/rollback
Samuel Just [Mon, 9 Dec 2013 03:36:51 +0000 (19:36 -0800)]
PGLog: create interface allowing interface user to cleanup/rollback

We need to be able to allow the PGLog interface user to provide
logic for rolling back and trimming log entries.  To that end,
serveral PGLog methods now take a LogEntryHander.

In PGLog::merge_old_entry, if prior_version > info.log_tail and
the object is not missing, we must have rolled back the prior
log entry.  Thus, we don't skip the entry.

To simplify the code, _merge_old_entry has been split out as
a const helper.  This way, proc_replica_log can be reexpressed
as merging the divergent replica log entries with the fully
merged authoritative log.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: Fill in rollback info for log events
Samuel Just [Wed, 4 Dec 2013 00:14:55 +0000 (16:14 -0800)]
ReplicatedPG: Fill in rollback info for log events

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd/: introduce xattr caching for ec pools
Samuel Just [Mon, 25 Nov 2013 23:33:57 +0000 (15:33 -0800)]
osd/: introduce xattr caching for ec pools

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGBackend,ReplicatedBackend: add support for rolling back log entries
Samuel Just [Wed, 4 Dec 2013 00:25:07 +0000 (16:25 -0800)]
PGBackend,ReplicatedBackend: add support for rolling back log entries

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd_types: add a can_rollback_to line to pg_log_t
Samuel Just [Wed, 4 Dec 2013 00:24:40 +0000 (16:24 -0800)]
osd_types: add a can_rollback_to line to pg_log_t

This allows us to determine how far back the log can be rolled.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd_types: add ObjectModDesc into pg_log_entry_t
Samuel Just [Wed, 4 Dec 2013 00:23:50 +0000 (16:23 -0800)]
osd_types: add ObjectModDesc into pg_log_entry_t

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd_types: ObjectModDesc
Samuel Just [Wed, 4 Dec 2013 00:22:53 +0000 (16:22 -0800)]
osd_types: ObjectModDesc

Contains information needed to roll back a pg_log_entry_t.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoosd/: move client op handling into ReplicatedBackend
Samuel Just [Thu, 21 Nov 2013 00:17:36 +0000 (16:17 -0800)]
osd/: move client op handling into ReplicatedBackend

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGBackend: allow queue_transaction to specify an op
Samuel Just [Fri, 15 Nov 2013 22:34:55 +0000 (14:34 -0800)]
PGBackend: allow queue_transaction to specify an op

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: factor out should_send_op
Samuel Just [Mon, 14 Oct 2013 17:50:03 +0000 (10:50 -0700)]
ReplicatedPG: factor out should_send_op

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedPG: split out op_applied_replica
Samuel Just [Sat, 12 Oct 2013 01:00:53 +0000 (18:00 -0700)]
ReplicatedPG: split out op_applied_replica

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPG/ReplicatedPG: move snap map management into append_log
Samuel Just [Fri, 11 Oct 2013 00:12:48 +0000 (17:12 -0700)]
PG/ReplicatedPG: move snap map management into append_log

Both the replica and the primary should use the same append_log
mechanism to update the snap map.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend: implement RPGTransaction
Samuel Just [Thu, 10 Oct 2013 23:12:10 +0000 (16:12 -0700)]
ReplicatedBackend: implement RPGTransaction

RPGTransaction is essentially a wrapped ObjectStore::Transaction.
The coll_t argument is elided, tempness is instead encoded in the
hobject.  RPGTransaction tracks which temp objects are created and
cleared so we can update the ReplicatedBackend tracking and possibly
create the temp collection as needed.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agohobject_t/ReplicatedPG: tempness is now an hobject thing
Samuel Just [Thu, 10 Oct 2013 23:10:36 +0000 (16:10 -0700)]
hobject_t/ReplicatedPG: tempness is now an hobject thing

PGBackend implmentations will have complete control over the temp
collection.  Rather than specifying the collection when sending
ops into the PGBackend, hobjects themselves will be temp or not.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGBackend: add PGTransaction
Samuel Just [Thu, 10 Oct 2013 23:08:53 +0000 (16:08 -0700)]
PGBackend: add PGTransaction

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend: update the collection_list mechanisms to skip stashed objects
Samuel Just [Wed, 4 Dec 2013 20:09:22 +0000 (12:09 -0800)]
ReplicatedBackend: update the collection_list mechanisms to skip stashed objects

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd/: verify length of buffer returned in read
Samuel Just [Sun, 8 Dec 2013 03:46:54 +0000 (19:46 -0800)]
test/osd/: verify length of buffer returned in read

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd/TestRados.cc: skip 0 weight ops
Samuel Just [Fri, 6 Dec 2013 19:02:04 +0000 (11:02 -0800)]
test/osd/TestRados.cc: skip 0 weight ops

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd: add append support to WriteOp
Samuel Just [Thu, 5 Dec 2013 02:23:17 +0000 (18:23 -0800)]
test/osd: add append support to WriteOp

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd: adapt RadosModel to not do omap ops on ec_pools
Samuel Just [Thu, 5 Dec 2013 02:42:49 +0000 (18:42 -0800)]
test/osd: adapt RadosModel to not do omap ops on ec_pools

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd: restructure Object/RadosModel in prep for append
Samuel Just [Thu, 5 Dec 2013 00:06:17 +0000 (16:06 -0800)]
test/osd: restructure Object/RadosModel in prep for append

Attribute handling no longer has special support in ContentsGenerator.
The most recent operation information is now stored in a special
attr rather than at the beginning of the object.  ObjectDesc layers
include their own ContentsGenerators to allow more flexibility.

Also, writes truncate to the new object size rather than simply
causing reads to stop at that object size.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agotest/osd/Object: create encoders for ContDesc
Samuel Just [Wed, 4 Dec 2013 22:34:13 +0000 (14:34 -0800)]
test/osd/Object: create encoders for ContDesc

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agosrc/test/osd: remove tmap test
Samuel Just [Wed, 4 Dec 2013 22:37:54 +0000 (14:37 -0800)]
src/test/osd: remove tmap test

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog: allow for empty pg log in update_range if log_tail == eversion_t()
Samuel Just [Mon, 9 Dec 2013 17:09:45 +0000 (09:09 -0800)]
PGLog: allow for empty pg log in update_range if log_tail == eversion_t()

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agocommon: add option to disable filestore sharded object check
Samuel Just [Thu, 5 Dec 2013 21:57:44 +0000 (13:57 -0800)]
common: add option to disable filestore sharded object check

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoFileStore::lfn_link: handle link within a collection
Samuel Just [Thu, 5 Dec 2013 22:55:18 +0000 (14:55 -0800)]
FileStore::lfn_link: handle link within a collection

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPG: prefer older last_update for ec_pool
Samuel Just [Sat, 7 Dec 2013 04:51:28 +0000 (20:51 -0800)]
PG: prefer older last_update for ec_pool

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoOSDMonitor: add debug_fake_ec_pool
Samuel Just [Fri, 22 Nov 2013 19:20:23 +0000 (11:20 -0800)]
OSDMonitor: add debug_fake_ec_pool

This flag will cause ReplicatedPG to act as though the
pool were actually an EC pool in that operations will
be restricted to operations which can be locally rolled
back thereby allowing us to test the ReplicatedPG local
log rollback mechanisms independent of EC.  It will also
cause ReplicatedPG to use the async read mechanism on
the PGBackend implementation once it is implemented.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog::rewind_divergent_log: we can rewind to tail, fix assert
Samuel Just [Fri, 13 Dec 2013 20:43:00 +0000 (12:43 -0800)]
PGLog::rewind_divergent_log: we can rewind to tail, fix assert

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoPGLog: don't move up log.tail
Samuel Just [Sat, 7 Dec 2013 21:19:49 +0000 (13:19 -0800)]
PGLog: don't move up log.tail

Moving up log.tail unnecessarily risks backfilling
a replica after a split.  Also, it disrupts the
property that replicas from the most recent interval
which performed writes must have overlapping logs.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend: remove pushing entry for each object as it completes
Samuel Just [Thu, 2 Jan 2014 15:20:18 +0000 (07:20 -0800)]
ReplicatedBackend: remove pushing entry for each object as it completes

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoFileStore::_collection_move_rename: remove source before closing guard
Samuel Just [Sun, 8 Dec 2013 22:44:48 +0000 (14:44 -0800)]
FileStore::_collection_move_rename: remove source before closing guard

Fixes a bug in _collection_move_rename replays.

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoReplicatedBackend.h: don't need to be active for pushes
Samuel Just [Tue, 15 Oct 2013 00:54:17 +0000 (17:54 -0700)]
ReplicatedBackend.h: don't need to be active for pushes

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoObjectStore: improve name of the queue_transaction which cleans up the transaction
Samuel Just [Tue, 15 Oct 2013 02:13:19 +0000 (19:13 -0700)]
ObjectStore: improve name of the queue_transaction which cleans up the transaction

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agohobject: admit that gen_t is actually version_t
Samuel Just [Fri, 22 Nov 2013 00:33:23 +0000 (16:33 -0800)]
hobject: admit that gen_t is actually version_t

Signed-off-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1079 from ceph/wip-tier-bits
Gregory Farnum [Wed, 22 Jan 2014 21:44:46 +0000 (13:44 -0800)]
Merge pull request #1079 from ceph/wip-tier-bits

osd: a few tiering fixes

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1126 from ceph/wip-osdmapenc-fix
Sage Weil [Wed, 22 Jan 2014 16:20:08 +0000 (08:20 -0800)]
Merge pull request #1126 from ceph/wip-osdmapenc-fix

MOSDMap: reencode maps if target doesn't have OSDMAP_ENC

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMOSDMap: reencode maps if target doesn't have OSDMAP_ENC 1126/head
Ilya Dryomov [Wed, 22 Jan 2014 15:33:39 +0000 (17:33 +0200)]
MOSDMap: reencode maps if target doesn't have OSDMAP_ENC

Reencode both full and incremental maps if target doesn't know how to
decode OSDMAP_ENC maps (CEPH_FEATURE_OSDMAP_ENC bit is not set).  This
fixes a compatibility bug that was introduced in 3d7c69fb0986 ("OSDMap:
add a CEPH_FEATURE_OSDMAP_ENC feature, and use new encoding").

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
11 years agoremoving rgw_tests.sh
tamil [Wed, 22 Jan 2014 02:44:57 +0000 (18:44 -0800)]
removing rgw_tests.sh

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
11 years agoMerge branch 'master' of github.com:ceph/ceph
tamil [Wed, 22 Jan 2014 01:50:22 +0000 (17:50 -0800)]
Merge branch 'master' of github.com:ceph/ceph

11 years agomodified the port to 7280 in the script instead of the default 80
tamil [Wed, 22 Jan 2014 01:50:00 +0000 (17:50 -0800)]
modified the port to 7280 in the script instead of the default 80

Signed-off-by: tamil <tamil@tamil-VirtualBox.(none)>
11 years agoMerge pull request #1124 from ceph/wip-cache-mode-fix
Sage Weil [Wed, 22 Jan 2014 01:30:34 +0000 (17:30 -0800)]
Merge pull request #1124 from ceph/wip-cache-mode-fix

mon/MonCommands: 'invalidate+forward' -> 'forward'

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoscript for rgw bucket quota testing
tamil [Tue, 21 Jan 2014 23:56:37 +0000 (15:56 -0800)]
script for rgw bucket quota testing

Signed-off-by: tamil <tamil@tamil-VirtualBox.(none)>
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