]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoceph-create-keys: Don't wait if permission denied
Gary Lowell [Fri, 19 Apr 2013 18:19:05 +0000 (11:19 -0700)]
ceph-create-keys:  Don't wait if permission denied

If get or create keys returns permssion denied, exit
gracefully instead of retrying.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agodoc: Aesthetic improvements. Removed unnecessary graphic and overrode margin for...
John Wilkins [Sat, 20 Apr 2013 18:10:51 +0000 (11:10 -0700)]
doc: Aesthetic improvements. Removed unnecessary graphic and overrode margin for h3 tag.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added a scenario to PG troubleshooting.
John Wilkins [Sat, 20 Apr 2013 18:08:08 +0000 (11:08 -0700)]
doc: Added a scenario to PG troubleshooting.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Changed usage to "bucket-name". Description was okay.
John Wilkins [Sat, 20 Apr 2013 18:06:44 +0000 (11:06 -0700)]
doc: Changed usage to "bucket-name". Description was okay.

fixes: #4102

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge branch 'wip-4201' into next
David Zafman [Sat, 20 Apr 2013 01:14:28 +0000 (18:14 -0700)]
Merge branch 'wip-4201' into next

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agotools/ceph-filestore-dump: Implement remove, export and import 223/head
David Zafman [Thu, 21 Mar 2013 05:08:08 +0000 (22:08 -0700)]
tools/ceph-filestore-dump: Implement remove, export and import

Change local names to be clearer
Break real_log() into common function get_log()
Move infos_oid, biginfo_oid and log_oid to globals for general use

Feature: #4201 (osd: data loss: pg export/import/remove)

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoMerge branch 'wip_4662_clean' into next
Samuel Just [Sat, 20 Apr 2013 00:11:29 +0000 (17:11 -0700)]
Merge branch 'wip_4662_clean' into next

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoReplicatedPG::_finish_mark_all_unfound_lost: only requeue if !deleting
Samuel Just [Fri, 19 Apr 2013 17:54:11 +0000 (10:54 -0700)]
ReplicatedPG::_finish_mark_all_unfound_lost: only requeue if !deleting

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoReplicatedPG::_applied_recovered_object*: don't queue scrub if deleting
Samuel Just [Fri, 19 Apr 2013 17:52:30 +0000 (10:52 -0700)]
ReplicatedPG::_applied_recovered_object*: don't queue scrub if deleting

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: check for pg change in ~FlushState
Samuel Just [Fri, 19 Apr 2013 17:51:08 +0000 (10:51 -0700)]
PG: check for pg change in ~FlushState

Fixes: #4662
Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: bail if deleting in _finish_recovery
Samuel Just [Fri, 19 Apr 2013 17:50:43 +0000 (10:50 -0700)]
PG: bail if deleting in _finish_recovery

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoAsyncReserver: delete context in cancel_reservation
Samuel Just [Fri, 19 Apr 2013 02:38:01 +0000 (19:38 -0700)]
AsyncReserver: delete context in cancel_reservation

Fixes: #4662
Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agotools/ceph-filestore-dump: Error messages lost because stderr is closed
David Zafman [Wed, 20 Mar 2013 06:12:35 +0000 (23:12 -0700)]
tools/ceph-filestore-dump: Error messages lost because stderr is closed

Use cout instead of cerr for command errors
Use cerr for debug mode because stderr is avail
Output map_epoch in debug mode
Fix a message and only for debug mode

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd: Make clear_temp() public for use by remove
David Zafman [Thu, 18 Apr 2013 18:14:46 +0000 (11:14 -0700)]
osd: Make clear_temp() public for use by remove

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd: Add flag to force version write in _write_info()
David Zafman [Tue, 16 Apr 2013 06:40:13 +0000 (23:40 -0700)]
osd: Add flag to force version write in _write_info()

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd: Create static PG::_write_log() function
David Zafman [Sat, 6 Apr 2013 04:39:34 +0000 (21:39 -0700)]
osd: Create static PG::_write_log() function

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoOSDMonitor: pg split is no longer experimental
Samuel Just [Fri, 19 Apr 2013 20:21:01 +0000 (13:21 -0700)]
OSDMonitor: pg split is no longer experimental

Fixes: #4711
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoMerge pull request #228 from alram/next
Sage Weil [Fri, 19 Apr 2013 22:16:41 +0000 (15:16 -0700)]
Merge pull request #228 from alram/next

Fix journal partition creation

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoFix journal partition creation 228/head
Alexandre Marangone [Fri, 19 Apr 2013 22:09:28 +0000 (15:09 -0700)]
Fix journal partition creation

With OSD sharing data and journal, the previous code created the
journal partiton from the end of the device. A uint32_t is
used in sgdisk to get the last sector, with large HD, uint32_t
is too small.
The journal partition will be created backwards from the
a sector in the midlle of the disk leaving space before
and after it. The data partition will use whichever of
these spaces is greater. The remaining will not be used.

This patch creates the journal partition from the start as a workaround.

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
12 years agorbd: fix qa tests to use --allow-shrink
Sage Weil [Fri, 19 Apr 2013 21:08:51 +0000 (14:08 -0700)]
rbd: fix qa tests to use --allow-shrink

Fixes: #4763
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge pull request #227 from ceph/wip-4574
Gregory Farnum [Fri, 19 Apr 2013 21:28:18 +0000 (14:28 -0700)]
Merge pull request #227 from ceph/wip-4574

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoinit-ceph: do not stop start on first failure
Sage Weil [Fri, 19 Apr 2013 20:05:43 +0000 (13:05 -0700)]
init-ceph: do not stop start on first failure

When starting we often loop over many daemon instances.  Currently we stop
on the first error and do not try to start other daemons.

Instead, try them all, but return a failure if anything did not start.

Fixes: #2545
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
12 years agomon: Monitor: fix timechecks get_health clobbering overall status 227/head
Joao Eduardo Luis [Fri, 19 Apr 2013 19:20:12 +0000 (20:20 +0100)]
mon: Monitor: fix timechecks get_health clobbering overall status

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agomon: fix health monitor calls
Sage Weil [Fri, 19 Apr 2013 19:16:11 +0000 (12:16 -0700)]
mon: fix health monitor calls

- unconditionally call get_health, regardless of formatter *
- return a meaningful health status code

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoglobal: call observers (and start logging) in global_init
Sage Weil [Thu, 18 Apr 2013 03:11:33 +0000 (20:11 -0700)]
global: call observers (and start logging) in global_init

Call observers so that the logging infrastructure gets initailized and we
start logging.  Otherwise, unless a default log setting has been modified,
we won't start logging until we daemonize, and we won't get the nice
version banner in the log file.

Unlike the previous attempt to fix this (a3091774), we do this after all
of the lockdep initialization has completed.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosd: Create new static function PG::_write_info() for use by PG import
David Zafman [Fri, 5 Apr 2013 21:03:18 +0000 (14:03 -0700)]
osd: Create new static function PG::_write_info() for use by PG import

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd: Add OSD::make_infos_oid() as common function to create oid
David Zafman [Sat, 6 Apr 2013 00:04:14 +0000 (17:04 -0700)]
osd: Add OSD::make_infos_oid() as common function to create oid

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agofilestore, osd: Fixes to comform to programming guidelines
David Zafman [Thu, 4 Apr 2013 22:51:40 +0000 (15:51 -0700)]
filestore, osd: Fixes to comform to programming guidelines

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agomon: QuorumService: return health status on get_health()
Joao Eduardo Luis [Fri, 19 Apr 2013 18:26:51 +0000 (19:26 +0100)]
mon: QuorumService: return health status on get_health()

This allows us to return the appropriate overall health status on
Monitor::get_health().

Fixes: 4574
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoOpRequest: don't maintain history if the OSD is shutting down
Samuel Just [Fri, 19 Apr 2013 02:24:03 +0000 (19:24 -0700)]
OpRequest: don't maintain history if the OSD is shutting down

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoosd/: optionally track every pg ref
Samuel Just [Fri, 19 Apr 2013 00:54:39 +0000 (17:54 -0700)]
osd/: optionally track every pg ref

This involves three pieces:

For intrusive_ptr type references, we use TrackedIntPtr instead.  This
uses get_with_id and put_with_id to associate an id and backtrace with
each particular ref instance.

For refs taken via direct calls to get() and put(), get and put now
require a tag string.  The PG tracks individual ref counts for each tag
as well as the total.

Finally, PGs register/unregister themselves on construction/destruction
with OSDService.

As a result, on shutdown, we can check for live pgs and determine where
the references are held.

This behavior is compiled out by default, but can be included with the
--enable-pgrefdebugging flag.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agocommon/: add tracked_int_ptr.hpp
Samuel Just [Fri, 19 Apr 2013 00:39:10 +0000 (17:39 -0700)]
common/: add tracked_int_ptr.hpp

TrackedIntPtr acts like intrusive_ptr, but is able to
track a ref id.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoReplicatedPG: use the ReplicatedPGRef typedef
Samuel Just [Wed, 17 Apr 2013 21:13:11 +0000 (14:13 -0700)]
ReplicatedPG: use the ReplicatedPGRef typedef

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoReplicatedPG: use ReplicatedPGRef for C_PG_MarkUnfoundLost
Samuel Just [Wed, 17 Apr 2013 21:08:39 +0000 (14:08 -0700)]
ReplicatedPG: use ReplicatedPGRef for C_PG_MarkUnfoundLost

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoReplicatedPG: use ReplicatedPGRef for C_OSD_OpCommit
Samuel Just [Wed, 17 Apr 2013 21:05:18 +0000 (14:05 -0700)]
ReplicatedPG: use ReplicatedPGRef for C_OSD_OpCommit

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoReplicatedPG: use ReplicatedPGRef for C_OSD_OpApplied
Samuel Just [Wed, 17 Apr 2013 21:05:02 +0000 (14:05 -0700)]
ReplicatedPG: use ReplicatedPGRef for C_OSD_OpApplied

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD: use PGRef in handle_pg_remove
Samuel Just [Fri, 19 Apr 2013 00:55:25 +0000 (17:55 -0700)]
OSD: use PGRef in handle_pg_remove

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD: use PGRef in handle_pg_stats_ack
Samuel Just [Fri, 19 Apr 2013 00:55:03 +0000 (17:55 -0700)]
OSD: use PGRef in handle_pg_stats_ack

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: use PGRef in QueuePeeringEvt
Samuel Just [Fri, 19 Apr 2013 00:41:48 +0000 (17:41 -0700)]
PG: use PGRef in QueuePeeringEvt

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD: use PGRef in consume_map
Samuel Just [Fri, 19 Apr 2013 00:40:12 +0000 (17:40 -0700)]
OSD: use PGRef in consume_map

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: use PGRef for FlushState
Samuel Just [Wed, 17 Apr 2013 20:52:13 +0000 (13:52 -0700)]
PG: use PGRef for FlushState

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: use PGRef for C_PG_FinishRecovery
Samuel Just [Wed, 17 Apr 2013 20:51:36 +0000 (13:51 -0700)]
PG: use PGRef for C_PG_FinishRecovery

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: use PGRef in C_PG_ActivateCommitted
Samuel Just [Wed, 17 Apr 2013 20:50:52 +0000 (13:50 -0700)]
PG: use PGRef in C_PG_ActivateCommitted

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: do not put() in scrub() if pg is deleting
Samuel Just [Thu, 18 Apr 2013 00:14:07 +0000 (17:14 -0700)]
PG: do not put() in scrub() if pg is deleting

scrub() no longer handles the put, this call
must have been missed.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG,ReplicatedPG: move intrusive_ptr declarations to top
Samuel Just [Fri, 19 Apr 2013 00:41:18 +0000 (17:41 -0700)]
PG,ReplicatedPG: move intrusive_ptr declarations to top

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoReplicatedPG: add ReplicatedPGRef
Samuel Just [Wed, 17 Apr 2013 20:57:50 +0000 (13:57 -0700)]
ReplicatedPG: add ReplicatedPGRef

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoFileStore::_do_copy_range: read(2) might return EINTR
Samuel Just [Wed, 10 Apr 2013 21:55:13 +0000 (14:55 -0700)]
FileStore::_do_copy_range: read(2) might return EINTR

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoFileStore::_do_clone_range: _do_copy_range encodes error in return, not errno
Samuel Just [Wed, 10 Apr 2013 21:53:55 +0000 (14:53 -0700)]
FileStore::_do_clone_range: _do_copy_range encodes error in return, not errno

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoMerge pull request #224 from ceph/wip-mon-crush
Sage Weil [Fri, 19 Apr 2013 17:20:18 +0000 (10:20 -0700)]
Merge pull request #224 from ceph/wip-mon-crush

Wip mon crush

Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agoconfig: clarify 'mon osd down out subtree limit'
Sage Weil [Fri, 19 Apr 2013 16:27:55 +0000 (09:27 -0700)]
config: clarify 'mon osd down out subtree limit'

Clarify the description; this is the subtree type that we won't mark out
if it is all down, but anything less than it will be.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: Trimmed toc depth for nicer visual appearance.
John Wilkins [Thu, 18 Apr 2013 21:23:47 +0000 (14:23 -0700)]
doc: Trimmed toc depth for nicer visual appearance.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added new PG troubleshooting use case.
John Wilkins [Thu, 18 Apr 2013 21:08:43 +0000 (14:08 -0700)]
doc: Added new PG troubleshooting use case.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated title.
John Wilkins [Thu, 18 Apr 2013 21:08:10 +0000 (14:08 -0700)]
doc: Updated title.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added PG troubleshooting to toctree.
John Wilkins [Thu, 18 Apr 2013 21:07:56 +0000 (14:07 -0700)]
doc: Added PG troubleshooting to toctree.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Bifurcating OSD and PG Troubleshooting. Updated hyperlink.
John Wilkins [Thu, 18 Apr 2013 20:30:50 +0000 (13:30 -0700)]
doc: Bifurcating OSD and PG Troubleshooting. Updated hyperlink.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Bifurcating OSD and PG Troubleshooting. Added PG troubleshooting doc.
John Wilkins [Thu, 18 Apr 2013 20:30:05 +0000 (13:30 -0700)]
doc: Bifurcating OSD and PG Troubleshooting. Added PG troubleshooting doc.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Bifurcating OSD and PG Troubleshooting. Removed PG section.
John Wilkins [Thu, 18 Apr 2013 20:29:16 +0000 (13:29 -0700)]
doc: Bifurcating OSD and PG Troubleshooting. Removed PG section.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agomon: ensure 'osd crush rule ...' commands are idempotent 224/head
Sage Weil [Thu, 18 Apr 2013 18:19:56 +0000 (11:19 -0700)]
mon: ensure 'osd crush rule ...' commands are idempotent

Ensure that we return 0 for these cases.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: make 'osd crush link ...' idempotent
Sage Weil [Thu, 18 Apr 2013 18:17:30 +0000 (11:17 -0700)]
mon: make 'osd crush link ...' idempotent

We fixed move in f5ba0fbbe73e11418634bc95e1fc36d17edccf37 but missed this
one.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorgw_bucket: Fix dump_index_check.
caleb miles [Thu, 18 Apr 2013 18:09:17 +0000 (14:09 -0400)]
rgw_bucket: Fix dump_index_check.

Signed-off-by caleb miles <caleb.miles@inktank.com>

12 years agoMerge branch 'wip-max_size-3637' into next
Greg Farnum [Thu, 18 Apr 2013 17:39:03 +0000 (10:39 -0700)]
Merge branch 'wip-max_size-3637' into next

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomds: journal the projected root xattrs in add_root()
Kuan Kai Chiu [Thu, 18 Apr 2013 06:43:26 +0000 (14:43 +0800)]
mds: journal the projected root xattrs in add_root()

In EMetaBlob::add_root(), we should log the projected root xattrs
instead of original ones to reflect xattr changes.

Signed-off-by: Kuan Kai Chiu <big.chiu@bigtera.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomds: fix setting/removing xattrs on root
Kuan Kai Chiu [Thu, 18 Apr 2013 06:43:25 +0000 (14:43 +0800)]
mds: fix setting/removing xattrs on root

MDS crashes while journaling dirty root inode in handle_client_setxattr
and handle_client_removexattr. We should use journal_dirty_inode to
safely log root inode here.

Signed-off-by: Kuan Kai Chiu <big.chiu@bigtera.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agodebian/control: Fix typo in libboost version number
Gary Lowell [Thu, 18 Apr 2013 15:47:49 +0000 (08:47 -0700)]
debian/control:  Fix typo in libboost version number

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agobuild: Add new package dependencies
Gary Lowell [Wed, 17 Apr 2013 04:14:18 +0000 (21:14 -0700)]
build:  Add new package dependencies

Add libboost-system-dev (bug #4725).

Add hdparm to rpm installation requirements.  The hdparm
command is used to determin if write-caching is enabled on
the journal device.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agodoc: Removed legacy man page index. Generates warning otherwise.
John Wilkins [Thu, 18 Apr 2013 01:34:54 +0000 (18:34 -0700)]
doc: Removed legacy man page index. Generates warning otherwise.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Clarified that admin-socket is accessed from same host.
John Wilkins [Thu, 18 Apr 2013 01:34:27 +0000 (18:34 -0700)]
doc: Clarified that admin-socket is accessed from same host.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated hyperlinks to new tshooting section.
John Wilkins [Thu, 18 Apr 2013 01:33:28 +0000 (18:33 -0700)]
doc: Updated hyperlinks to new tshooting section.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed this doc. Nothing referenced it, and parent directory echoes content.
John Wilkins [Thu, 18 Apr 2013 01:32:59 +0000 (18:32 -0700)]
doc: Removed this doc. Nothing referenced it, and parent directory echoes content.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Revised top-level ops page.
John Wilkins [Thu, 18 Apr 2013 01:32:10 +0000 (18:32 -0700)]
doc: Revised top-level ops page.

Consolidated authentication into high-level operations. Added a
troubleshooting section. Collapsed toc trees to make the appearance
cleaner.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed link to nowhere. Otherwise generates a warning.
John Wilkins [Thu, 18 Apr 2013 01:30:31 +0000 (18:30 -0700)]
doc: Removed link to nowhere. Otherwise generates a warning.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed top-level tshoot page, and created new index.
John Wilkins [Thu, 18 Apr 2013 01:29:41 +0000 (18:29 -0700)]
doc: Removed top-level tshoot page, and created new index.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Excised community from OSD tshoot, made it stand alone.
John Wilkins [Thu, 18 Apr 2013 01:28:50 +0000 (18:28 -0700)]
doc: Excised community from OSD tshoot, made it stand alone.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Moved monitor troubleshooting to troubleshooting section.
John Wilkins [Thu, 18 Apr 2013 01:28:16 +0000 (18:28 -0700)]
doc: Moved monitor troubleshooting to troubleshooting section.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Moved troubleshooting OSD to troubleshooting section.
John Wilkins [Thu, 18 Apr 2013 01:27:40 +0000 (18:27 -0700)]
doc: Moved troubleshooting OSD to troubleshooting section.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added extraneous rgw settings to rgw conf.
John Wilkins [Thu, 18 Apr 2013 01:26:33 +0000 (18:26 -0700)]
doc: Added extraneous rgw settings to rgw conf.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Moved memory profiling from operations to troubleshooting.
John Wilkins [Thu, 18 Apr 2013 01:25:51 +0000 (18:25 -0700)]
doc: Moved memory profiling from operations to troubleshooting.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Moved CPU profiling from operations to troubleshooting.
John Wilkins [Thu, 18 Apr 2013 01:25:06 +0000 (18:25 -0700)]
doc: Moved CPU profiling from operations to troubleshooting.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Set toc depth to 1 level, and added troubleshooting so it appears in sidebar.
John Wilkins [Thu, 18 Apr 2013 01:24:24 +0000 (18:24 -0700)]
doc: Set toc depth to 1 level, and added troubleshooting so it appears in sidebar.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Moved journal discussion to OSD ref from Ceph config.
John Wilkins [Thu, 18 Apr 2013 01:23:46 +0000 (18:23 -0700)]
doc: Moved journal discussion to OSD ref from Ceph config.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Reordered deployment tools in toc.
John Wilkins [Thu, 18 Apr 2013 01:22:18 +0000 (18:22 -0700)]
doc: Reordered deployment tools in toc.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed logging from config index. Set depth to 1 for clean appearance.
John Wilkins [Thu, 18 Apr 2013 01:21:35 +0000 (18:21 -0700)]
doc: Removed logging from config index. Set depth to 1 for clean appearance.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed logging. Added references. Reorganized and edited.
John Wilkins [Thu, 18 Apr 2013 01:20:51 +0000 (18:20 -0700)]
doc: Removed logging. Added references. Reorganized and edited.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed. Not in toc, and otherwise generates a warning.
John Wilkins [Thu, 18 Apr 2013 01:19:34 +0000 (18:19 -0700)]
doc: Removed. Not in toc, and otherwise generates a warning.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated hyperlink.
John Wilkins [Thu, 18 Apr 2013 01:18:46 +0000 (18:18 -0700)]
doc: Updated hyperlink.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed fragmented logging info. Consolidated into one doc.
John Wilkins [Thu, 18 Apr 2013 01:18:10 +0000 (18:18 -0700)]
doc: Removed fragmented logging info. Consolidated into one doc.

Logging was variously described in the ceph configuration document,
a configuration reference, and a section in operations. Since
logging and debugging are generally used with troubleshooting,
I consolidated the docs and placed them in the troubleshooting
section. Also fixed the example and provided additional detail.

fixes: #3804

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agorbd: Only allow shrinking an image when --allow-shrink flag is passed
Wido den Hollander [Mon, 8 Apr 2013 13:18:32 +0000 (15:18 +0200)]
rbd: Only allow shrinking an image when --allow-shrink flag is passed

Signed-off-by: Wido den Hollander <wido@widodh.nl>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoclient: disable invalidate callbacks :(
Greg Farnum [Wed, 17 Apr 2013 22:41:19 +0000 (15:41 -0700)]
client: disable invalidate callbacks :(

See #4746; it deadlocks right now.

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoMerge pull request #219 from ceph/wip-rbd-progress
Josh Durgin [Wed, 17 Apr 2013 22:37:11 +0000 (15:37 -0700)]
Merge pull request #219 from ceph/wip-rbd-progress

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorbd: add --no-progress switch 219/head
Sage Weil [Wed, 17 Apr 2013 22:31:36 +0000 (15:31 -0700)]
rbd: add --no-progress switch

Disable progress output to stderr.t

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoleveldbstore: handle old versions of leveldb
Greg Farnum [Wed, 17 Apr 2013 20:21:04 +0000 (13:21 -0700)]
leveldbstore: handle old versions of leveldb

The filter_policy (bloom filter) stuff is fairly new in LevelDB's life,
and it turns out that precise's version is too old for it. Add conditional
compilation for those members in order to build and work properly.

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-4521-fix' into next
Sage Weil [Wed, 17 Apr 2013 22:03:03 +0000 (15:03 -0700)]
Merge remote-tracking branch 'gh/wip-4521-fix' into next

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomds: change XLOCK/XLOCKDONE's next state to LOCK
Yan, Zheng [Fri, 12 Apr 2013 08:11:11 +0000 (16:11 +0800)]
mds: change XLOCK/XLOCKDONE's next state to LOCK

For simplelock and filelock, XLOCK/XLOCKDONE's next state is SYNC.
But filelock in XLOCK/XLOCKDONE state allow Fb caps, filelock in
SYNC state does not. So filelock can be stuck in XLOCK/XLOCKDONE
state forever if there are Fb caps issued.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agomds: pass proper mask to CInode::get_caps_issued
Yan, Zheng [Fri, 12 Apr 2013 08:11:09 +0000 (16:11 +0800)]
mds: pass proper mask to CInode::get_caps_issued

There is a total of 22 cap bits and file lock uses 8 cap bits.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomon: Monitor: convert osdmap_full as well 220/head 221/head
Joao Eduardo Luis [Thu, 4 Apr 2013 17:19:02 +0000 (18:19 +0100)]
mon: Monitor: convert osdmap_full as well

Store conversion wasn't converting the osdmap_full/ versions, only the
incrementals under osdmap/ and the latest full version stashed.  This
would lead to some serious problems during OSDMonitor's update_from_paxos
when the latest stashed didn't correspond to the first available
incremental.

Fixes: #4521
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agomon: PaxosService: add helper function to check if a given version exists
Joao Eduardo Luis [Thu, 4 Apr 2013 17:17:21 +0000 (18:17 +0100)]
mon: PaxosService: add helper function to check if a given version exists

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoosd/PG.cc: initialize PG::flushed in constructor
Danny Al-Gaaf [Tue, 16 Apr 2013 16:14:49 +0000 (18:14 +0200)]
osd/PG.cc: initialize PG::flushed in constructor

Initialize PG::flushed in constructor with false as
described in doc/dev/osd_internals/pg.rst .

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit fb840c8ff75b0c66dfeed48e8558542fe3da4c24)

12 years agoMerge pull request #215 from ceph/wip-leveldb-config
Sage Weil [Wed, 17 Apr 2013 16:49:11 +0000 (09:49 -0700)]
Merge pull request #215 from ceph/wip-leveldb-config

os: bring leveldbstore options up to date

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoFix policy handling for RESTful admin api.
caleb miles [Wed, 17 Apr 2013 15:11:21 +0000 (11:11 -0400)]
Fix policy handling for RESTful admin api.

Signed-off-by caleb miles <caleb.miles@inktank.com>

12 years agoqa: pull qemu-iotests from ceph.com mirror
Sage Weil [Tue, 16 Apr 2013 23:39:17 +0000 (16:39 -0700)]
qa: pull qemu-iotests from ceph.com mirror

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