]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Sage Weil [Fri, 22 Mar 2013 17:06:13 +0000 (10:06 -0700)]
Merge pull request #117 from ceph/wip-ceph-disk
ceph-disk-* refactor
Sage Weil [Fri, 22 Mar 2013 16:15:52 +0000 (09:15 -0700)]
Merge branch 'next'
Sage Weil [Tue, 19 Mar 2013 21:01:08 +0000 (14:01 -0700)]
osd: reenable 'journal aio = true'
Now that #4079 is resolved. Reverts
1cfc3ae0 .
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 19 Mar 2013 21:26:16 +0000 (14:26 -0700)]
os/FileJournal: fix aio self-throttling deadlock
This block of code tries to limit the number of aios in flight by waiting
for the amount of data to be written to grow relative to a function of the
number of aios. Strictly speaking, the condition we are waiting for is a
function of both aio_num and the write queue, but we are only woken by
changes in aio_num, and were (in rare cases) waiting when aio_num == 0 and
there was no possibility of being woken.
Fix this by verifying that aio_num > 0, and restructuring the loop to
recheck that condition on each wakeup.
Fixes: #4079
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Fri, 22 Mar 2013 15:46:31 +0000 (08:46 -0700)]
Merge pull request #137 from dalgaaf/wip-da-cleanup-includes
Cleanup some twice included header
Reviewed-by: Sage Weil <sage@inktank.com>
Danny Al-Gaaf [Fri, 22 Mar 2013 15:03:22 +0000 (16:03 +0100)]
test/test_snap_mapper.cc: remove twice included <tr1/memory>
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Fri, 22 Mar 2013 15:02:55 +0000 (16:02 +0100)]
mon/MDSMonitor.cc: remove twice included MonitorDBStore.h
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Fri, 22 Mar 2013 15:02:23 +0000 (16:02 +0100)]
mon/LogMonitor.cc: remove twice included <sstream>
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Fri, 22 Mar 2013 15:01:53 +0000 (16:01 +0100)]
mon/AuthMonitor.cc: remove twice included <sstream>
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Fri, 22 Mar 2013 15:01:15 +0000 (16:01 +0100)]
common/Formatter.h: remove twice included <list>
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Samuel Just [Fri, 22 Mar 2013 01:46:50 +0000 (18:46 -0700)]
Merge remote-tracking branch 'upstream/wip_osd_shutdown_notification'
Fixes: #1857
Fixes: #4267
Reviewed-by: Sage Weil <sage@inktank.com>
Samuel Just [Thu, 21 Mar 2013 19:16:43 +0000 (12:16 -0700)]
Makefile: add MOSDMarkMeDown
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Thu, 21 Mar 2013 18:19:45 +0000 (11:19 -0700)]
OSD: notify mon prior to shutdown
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 20 Mar 2013 21:30:49 +0000 (14:30 -0700)]
Monitor: add MOSDMarkMeDown support
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 20 Mar 2013 21:30:29 +0000 (14:30 -0700)]
OSDMonitor: factor out check_source helper
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 20 Mar 2013 20:43:31 +0000 (13:43 -0700)]
messages: add MOSDMarkMeDown
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 20 Mar 2013 18:49:29 +0000 (11:49 -0700)]
OSD: clear OpHistory on shutdown
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 20 Mar 2013 18:49:03 +0000 (11:49 -0700)]
OpRequest: use OpRequestRef for OpHistory
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 20 Mar 2013 18:06:59 +0000 (11:06 -0700)]
FileStore::stat: valgrind: don't read *st on error
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Tue, 19 Mar 2013 21:46:20 +0000 (14:46 -0700)]
shared_cache: clear lru in destructor
Otherwise, the live references will attempt to extricate
themselves from a disolving SharedLRU instance as the
member destructors run.
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Tue, 19 Mar 2013 21:44:59 +0000 (14:44 -0700)]
ceph_osd: clear client_throttler prior to putting g_ceph_context
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Thu, 21 Mar 2013 18:19:33 +0000 (11:19 -0700)]
OSD: reorder OSD::shutdown
Reorder teardown:
- pgs
- queues/threadpools
- persist superblock
- filestore
- timers
- messengers
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Tue, 19 Mar 2013 16:55:19 +0000 (09:55 -0700)]
OSD: check for is_stopping after locking osd_lock or heartbeat_lock
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 18 Mar 2013 23:42:57 +0000 (16:42 -0700)]
OSD: lookup_lock_raw_pg is dead
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 18 Mar 2013 23:17:29 +0000 (16:17 -0700)]
OSD: rename timer to tick_timer
Only used for scheduling ticks - we should keep it
that way.
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 18 Mar 2013 23:14:35 +0000 (16:14 -0700)]
OSD: move backfill_request_timer cleanup to OSDService::shutdown
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 18 Mar 2013 20:45:40 +0000 (13:45 -0700)]
ReplicatedPG,OSD: move dequeueing into on_shutdown
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 18 Mar 2013 20:32:05 +0000 (13:32 -0700)]
PG: clarify PG::deleting comment
Signed-off-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Fri, 22 Mar 2013 01:25:01 +0000 (18:25 -0700)]
Merge pull request #135 from ceph/wip-4519
mon: AuthMonitor: delete auth_handler while increasing max_global_id
Reviewed-by: Sage Weil <sage@inktank.com>
Joao Eduardo Luis [Fri, 22 Mar 2013 00:49:28 +0000 (00:49 +0000)]
mon: AuthMonitor: delete auth_handler while increasing max_global_id
By not deleting and setting NULL the session's auth_handler, we could
hit a scenario in which we'd end up dispatching a previously-wait-listed
auth message and we wouldn't start its auth session.
This only happened when increasing max_global_id via Paxos (in which case
we would wait-list the message) and would only be noticeable when running
with cephx disabled.
Fixes: #4519
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Samuel Just [Tue, 19 Mar 2013 21:45:41 +0000 (14:45 -0700)]
FileJournal: quieter debugging on journal scanning
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
(cherry picked from commit
6740d512ac12263f7bee370bc14b1179f83af5be )
Samuel Just [Tue, 19 Mar 2013 21:45:41 +0000 (14:45 -0700)]
FileJournal: quieter debugging on journal scanning
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
John Wilkins [Fri, 22 Mar 2013 00:04:54 +0000 (17:04 -0700)]
doc: Fixed some typos.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Josh Durgin [Thu, 21 Mar 2013 23:41:34 +0000 (16:41 -0700)]
Merge pull request #128 from dalgaaf/wip-da-pylint
Fix some python issues
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Thu, 21 Mar 2013 23:16:31 +0000 (16:16 -0700)]
Merge pull request #132 from ceph/wip-libcephfs-fix
libcephfs: fix ceph_get_osd_crush_location
Reviewed-by: Sage Weil <sage@inktank.com>
Noah Watkins [Thu, 21 Mar 2013 22:30:41 +0000 (15:30 -0700)]
libcephfs: fix ceph_get_osd_crush_location
(a) Allow NULL buffer when length is zero to get the target buffer
length. (b) fix edge case where buffer length is the exact size
required.
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
John Wilkins [Thu, 21 Mar 2013 18:21:05 +0000 (11:21 -0700)]
Merge pull request #127 from alram/master
[doc] undisplayed notes, tips, and important sections
Reviewed-by: John Wilkins <john.wilkins@inktank.com>
Sage Weil [Thu, 21 Mar 2013 18:14:29 +0000 (11:14 -0700)]
Merge pull request #120 from ceph/wip-msgr-acks
msg/Pipe: fix seq handshake on reconnect
Reviewed-by: Greg Farnum <greg@inktank.com>
Danny Al-Gaaf [Thu, 21 Mar 2013 17:47:46 +0000 (18:47 +0100)]
rados.py: remove unnecessary semicolon
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 21 Mar 2013 17:46:16 +0000 (18:46 +0100)]
rados.py: fix bad indention
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 21 Mar 2013 17:43:48 +0000 (18:43 +0100)]
rados.py: remove lenght modifier 'l' on format string
Remove length modifier 'l' since it's ignored for python.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 21 Mar 2013 17:23:25 +0000 (18:23 +0100)]
rados.py: fix 'Rados' has no member 'name'
Lets store rados_id from __init__ and use this instead of 'name'.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 21 Mar 2013 16:14:02 +0000 (17:14 +0100)]
rados.py: add missing space after ','
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 21 Mar 2013 16:02:11 +0000 (17:02 +0100)]
ceph-create-keys: rename log to LOG since it's a constants
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Gary Lowell [Thu, 21 Mar 2013 07:40:16 +0000 (00:40 -0700)]
Merge branch 'next'
Sage Weil [Thu, 21 Mar 2013 05:11:15 +0000 (22:11 -0700)]
doc/release-notes: v0.59
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 21 Mar 2013 04:52:21 +0000 (21:52 -0700)]
msg/Pipe: fix seq handshake on reconnect
We go to the trouble to exchange our seq numbers during the handshake, but
the bit that then avoids resending old messages was broken because we
already requeue_sent() before we get to this point. Fix it by discarding
queued items (in the high prio slot) that we don't need to resend, and
adjust out_seq as needed.
Drop the optional arg to requeue_sent() now that it is unused.
Signed-off-by: Sage Weil <sage@inktank.com>
Alexandre Marangone [Thu, 21 Mar 2013 04:17:53 +0000 (21:17 -0700)]
Fix tips in documentation
Use of .. tip: instead of .. tip:: resulting in content not
being displayed.
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Thu, 21 Mar 2013 04:15:08 +0000 (21:15 -0700)]
Fix important in documentation
Use of .. important: instead of .. important:: resulting in content
not being displayed.
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Thu, 21 Mar 2013 04:10:55 +0000 (21:10 -0700)]
Fix notes in documentation
Use of .. note: instead of .. note:: resulting in content not
being displayed
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Sage Weil [Thu, 21 Mar 2013 00:07:11 +0000 (17:07 -0700)]
Merge pull request #126 from alram/master
Update Chef deployment documentation
Reviewed-by: Sage Weil <sage@inktank.com>
Alexandre Marangone [Wed, 20 Mar 2013 21:23:06 +0000 (14:23 -0700)]
Update Chef deployment documentation
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Sage Weil [Wed, 20 Mar 2013 23:17:51 +0000 (16:17 -0700)]
Merge pull request #124 from ceph/wip-4509
mon: DataHealthService: shutdown mon if failed to obtain disk stats
Reviewed-by: Sage Weil <sage@inktank.com>
Joao Eduardo Luis [Wed, 20 Mar 2013 20:51:06 +0000 (20:51 +0000)]
mon: DataHealthService: log to derr instead if we're about to shutdown
Otherwise the message would -- or could -- be lost.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Wed, 20 Mar 2013 20:49:20 +0000 (20:49 +0000)]
mon: DataHealthService: shutdown mon if failed to obtain disk stats
Being unable to run a ::statfs() may be a symptom of something bigger.
We want to cleanly shutdown the monitor ASAP if such thing happens.
Fixes: #4509
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Sage Weil [Wed, 20 Mar 2013 17:12:06 +0000 (10:12 -0700)]
Merge pull request #123 from dalgaaf/wip-da-sca-misc-1
Some smaller misc fixes
Reviewed-by: Sage Weil <sage@inktank.com>
Danny Al-Gaaf [Wed, 20 Mar 2013 16:08:42 +0000 (17:08 +0100)]
client/Client.cc: handle error if _lookup() fails
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 15:56:03 +0000 (16:56 +0100)]
qa/workunits/direct_io/test_sync_io.c: add proper error handling
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 15:37:37 +0000 (16:37 +0100)]
test_short_dio_read.c: add proper error handling
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 15:15:06 +0000 (16:15 +0100)]
mds/Locker.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 19 Mar 2013 12:09:08 +0000 (13:09 +0100)]
mount/mount.ceph.c: remove unused variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Wed, 20 Mar 2013 13:48:36 +0000 (06:48 -0700)]
Merge pull request #122 from dalgaaf/wip-da-ceph-disk-1
More fixes for ceph-disk
Reviewed-by: Sage Weil <sage@inktank.com>
Danny Al-Gaaf [Wed, 20 Mar 2013 13:36:58 +0000 (14:36 +0100)]
ceph-disk: cast output of subprocess.Popen() to str()
Cast output of subprocess.Popen() to str() to be able to use
str.split() and str.splitlines() without warnings from pylint.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Wed, 20 Mar 2013 13:33:18 +0000 (06:33 -0700)]
Merge pull request #121 from ceph/wip-4448
mon: Monitor: clearer output on error during attempt to convert store
Reviewed-by: Sage Weil <sage@inktank.com>
Joao Eduardo Luis [Wed, 20 Mar 2013 13:31:14 +0000 (13:31 +0000)]
mon: Monitor: clearer output on error during attempt to convert store
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Danny Al-Gaaf [Wed, 20 Mar 2013 13:02:28 +0000 (14:02 +0100)]
ceph-disk: fix adjust_symlink() replace 'journal' with 'target'
Replace 'journal' variable with 'target' since journal doesn't
exist in this function.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 13:01:02 +0000 (14:01 +0100)]
ceph-disk: fix adjust_symlink() replace 'canonical' with 'path'
Replace 'canonical' variable with 'path' since canonical doesn't
exist in this function.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 12:56:23 +0000 (13:56 +0100)]
ceph-disk: there is no os.path.lstat use os.lstat
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 12:30:21 +0000 (13:30 +0100)]
ceph-disk: remove unused variable key from prepare_journal_dev()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 12:27:27 +0000 (13:27 +0100)]
ceph-disk: fix except to catch OSError
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 12:15:36 +0000 (13:15 +0100)]
ceph-disk: add missing space after >> operator
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 11:33:09 +0000 (12:33 +0100)]
fix: Redefining name 'uuid' from outer scope (line 14)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 11:17:45 +0000 (12:17 +0100)]
ceph-disk: remove unused variables from list_partitions()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 20 Mar 2013 11:10:22 +0000 (12:10 +0100)]
ceph-disk: fix /dev/dm-[0-9] handling list_all_partitions()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Gary Lowell [Wed, 20 Mar 2013 05:27:13 +0000 (22:27 -0700)]
v0.59
Sage Weil [Tue, 19 Mar 2013 21:53:23 +0000 (14:53 -0700)]
Merge pull request #106 from ceph/wip-crush
crush: update weights properly for DAG (not tree) maps
Reviewed-by: caleb miles <caleb.miles@inktank.com>
Sage Weil [Tue, 19 Mar 2013 21:17:01 +0000 (14:17 -0700)]
Merge pull request #119 from dalgaaf/wip-da-ceph-disk
Cleanup and fixes for wip-ceph-disk
Danny Al-Gaaf [Tue, 19 Mar 2013 21:07:36 +0000 (22:07 +0100)]
ceph-disk: rename local variable shadowing builtin
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 19 Mar 2013 21:05:23 +0000 (22:05 +0100)]
ceph-disk: remove twice defined identical function unmount
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 19 Mar 2013 21:02:49 +0000 (22:02 +0100)]
ceph-disk: remove twice defined function mount
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 19 Mar 2013 20:58:22 +0000 (21:58 +0100)]
ceph-disk: remove double defined function get_conf
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 19 Mar 2013 20:51:54 +0000 (21:51 +0100)]
ceph-disk: rename local variable shadowing builtin
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Tue, 19 Mar 2013 20:36:12 +0000 (13:36 -0700)]
Merge pull request #118 from dalgaaf/wip-da-enum
QuorumService.h: use enum instead of static const int
Reviewed-by: Sage Weil <sage@inktank.com>
Danny Al-Gaaf [Tue, 19 Mar 2013 20:33:18 +0000 (21:33 +0100)]
QuorumService.h: use enum instead of static const int
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
David Zafman [Wed, 6 Mar 2013 22:33:12 +0000 (14:33 -0800)]
Missed adding rados_types.hpp to package
Caused by
3bd48cbbadb7908dd833ccde75359f085828fc5c
feature 4207 implementation
Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
(cherry picked from commit
e1e2d5d2176cc9debd436ba944e6ca65b3253c8a )
Sage Weil [Mon, 18 Mar 2013 21:55:24 +0000 (14:55 -0700)]
ceph-disk: install and package
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Fri, 15 Mar 2013 23:50:05 +0000 (16:50 -0700)]
ceph-disk: simplify command dispatch
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Fri, 15 Mar 2013 23:40:32 +0000 (16:40 -0700)]
ceph-disk: consolidate exceptions
Use a single exception type, and catch it at the top level.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Fri, 15 Mar 2013 23:36:45 +0000 (16:36 -0700)]
ceph-disk: consolidate ceph-disk-* into a single binary
ceph-disk prepare ...
ceph-disk activate ...
ceph-disk ...
This let's us share code (we were already duplicating a bunch of stuff!)
and to add new commands easily.
Signed-off-by: Sage Weil <sage@inktank.com>
Josh Durgin [Sat, 16 Mar 2013 00:51:13 +0000 (17:51 -0700)]
PendingReleaseNotes: fix typo
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Sat, 16 Mar 2013 00:28:13 +0000 (17:28 -0700)]
librbd: optionally wait for a flush before enabling writeback
Older guests may not send flushes properly (i.e. never), so if this is
enabled, rbd_cache=true is safe for them transparently.
Disable by default, since it will unnecessarily slow down newer guest
boot, and prevent writeback caching for things that don't need to send
flushes, like the command line tool.
Refs: #3817
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 19 Mar 2013 17:39:50 +0000 (10:39 -0700)]
Makefile: missing header
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 19 Mar 2013 17:21:52 +0000 (10:21 -0700)]
mon: use enum instead of static const int
This way it compiles.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 19 Mar 2013 17:15:41 +0000 (10:15 -0700)]
mon/Paxos: set state to RECOVERING during restart
This ensures that the paxos state is not active when the PaxosService
restart() methods run right afterwards, and that EAGAIN waiters will get
requeued appropriately.
Signed-off-by: Sage Weil <sage@inktank.com>
Joao Eduardo Luis [Tue, 19 Mar 2013 16:31:48 +0000 (16:31 +0000)]
Makefile.am: fix misspelt header name
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Sage Weil [Tue, 19 Mar 2013 06:09:51 +0000 (23:09 -0700)]
mon/PaxosService: handle non-zero return values
If
7aec13f749035b9bef5e398c1ac3d56ceec8eb81 we started passing non-zero
return values to these completions; now we have to deal with them
accordingly.
RetryMessage behaves just like the Monitor variant.
Propose and Committed update state but otherwise ignore non-zero
return values.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 19 Mar 2013 05:54:25 +0000 (22:54 -0700)]
Merge branch 'next'
Sage Weil [Tue, 19 Mar 2013 04:13:34 +0000 (21:13 -0700)]
ceph-disk-prepare: 'mkfs -t' instead of 'mkfs --type='
Older mkfs (el6) doesn't like --type=.
Fixes: #4495
Reported-by: Alexandre Maragone <alexandre.maragone@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Sam Lang [Mon, 18 Mar 2013 21:59:04 +0000 (16:59 -0500)]
mds: Handle ENODATA returned from getxattr
The osds might return ENODATA if we request an
xattr that doesn't exist. In this case, we're
requesting the 'parent' xattr so that we can
remove all the forwarding pointers, but the xattr
may not have been written (which only happens on
log segment trim), so we don't assert here.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 19 Mar 2013 04:00:06 +0000 (21:00 -0700)]
mon/PaxosService: fix proposal waiter handling
- Cancel the propsal waiters with EAGAIN on election, etc.
- Drop the wakeup helper and open-code the one caller.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>