]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoWorkQueue: Allow WorkQueueVal to be specified with 1 type
Samuel Just [Mon, 29 Apr 2013 18:26:26 +0000 (11:26 -0700)]
WorkQueue: Allow WorkQueueVal to be specified with 1 type

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD: removal collections will be removed inline and not queued
Samuel Just [Mon, 29 Apr 2013 18:29:30 +0000 (11:29 -0700)]
OSD: removal collections will be removed inline and not queued

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD::clear_temp should clear snap mapper entries as well
Samuel Just [Mon, 29 Apr 2013 18:29:04 +0000 (11:29 -0700)]
OSD::clear_temp should clear snap mapper entries as well

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG,OSD: mark info as backfilling in _remove_pg()
Samuel Just [Mon, 29 Apr 2013 16:07:19 +0000 (09:07 -0700)]
PG,OSD: mark info as backfilling in _remove_pg()

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agodoc: Added glossary to TOC.
John Wilkins [Tue, 7 May 2013 14:58:04 +0000 (07:58 -0700)]
doc: Added glossary to TOC.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added glossary.
John Wilkins [Tue, 7 May 2013 14:57:40 +0000 (07:57 -0700)]
doc: Added glossary.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fixed usage typo.
John Wilkins [Tue, 7 May 2013 14:57:16 +0000 (07:57 -0700)]
doc: Fixed usage typo.

fixes: #4923

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge pull request #262 from gollub/typos
Sage Weil [Tue, 7 May 2013 14:30:44 +0000 (07:30 -0700)]
Merge pull request #262 from gollub/typos

fixed common typo in error messages

12 years agofixed common typo in error messages 262/head
Daniel Gollub [Tue, 7 May 2013 09:55:46 +0000 (11:55 +0200)]
fixed common typo in error messages

Signed-off-by: Daniel Gollub <d.gollub@telekom.de>
12 years agodoc/install/{debian,rpm}: update for cuttlefish
Sage Weil [Tue, 7 May 2013 03:16:23 +0000 (20:16 -0700)]
doc/install/{debian,rpm}: update for cuttlefish

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/start/get-involved: fix links
Sage Weil [Tue, 7 May 2013 03:11:29 +0000 (20:11 -0700)]
doc/start/get-involved: fix links

ERROR: /srv/autobuild-ceph/gitbuilder.git/build/doc/start/get-involved.rst:33: Unknown target name: "tracker".
ERROR: /srv/autobuild-ceph/gitbuilder.git/build/doc/start/get-involved.rst:43: Unknown target name: "support".

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/release-notes: I missed rgw rest api in the release notes
Sage Weil [Tue, 7 May 2013 03:07:53 +0000 (20:07 -0700)]
doc/release-notes: I missed rgw rest api in the release notes

Mostly from here dd19d693e6528c70167958ebc57e075200a08803

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'next'
Gary Lowell [Tue, 7 May 2013 02:51:47 +0000 (19:51 -0700)]
Merge branch 'next'

12 years agoos/ObjectStore: add missing break in dump()
Sage Weil [Tue, 7 May 2013 00:13:15 +0000 (17:13 -0700)]
os/ObjectStore: add missing break in dump()

CID 751331 (#1 of 1): Missing break in switch (MISSING_BREAK)
unterminated_case: This case (value 35) is not terminated by a 'break' statement.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: Deleted redundant "so that" phrase.
John Wilkins [Mon, 6 May 2013 23:41:08 +0000 (16:41 -0700)]
doc: Deleted redundant "so that" phrase.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Corrected typo.
John Wilkins [Mon, 6 May 2013 23:38:41 +0000 (16:38 -0700)]
doc: Corrected typo.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Corrected typo.
John Wilkins [Mon, 6 May 2013 23:38:21 +0000 (16:38 -0700)]
doc: Corrected typo.

12 years agoRemoved comment out of header, and added "coming soon."
John Wilkins [Mon, 6 May 2013 23:37:50 +0000 (16:37 -0700)]
Removed comment out of header, and added "coming soon."

12 years agodoc: Updated usage for push | pull.
John Wilkins [Mon, 6 May 2013 23:37:12 +0000 (16:37 -0700)]
doc: Updated usage for push | pull.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoosd: make class load errors louder
Sage Weil [Mon, 6 May 2013 21:34:37 +0000 (14:34 -0700)]
osd: make class load errors louder

Fixes: #4639
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agov0.61 v0.61
Gary Lowell [Mon, 6 May 2013 20:18:56 +0000 (13:18 -0700)]
v0.61

12 years agoos/: default to dio for non-block journals
Samuel Just [Mon, 6 May 2013 17:56:50 +0000 (10:56 -0700)]
os/: default to dio for non-block journals

Workaround: #4910
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk: use separate lock files for prepare, activate
Sage Weil [Mon, 6 May 2013 18:40:52 +0000 (11:40 -0700)]
ceph-disk: use separate lock files for prepare, activate

Use a separate lock file for prepare and activate to avoid deadlock.  This
didn't seem to trigger on all machines, but in many cases, the prepare
process would take the file lock and later trigger a udev event and the
activate would then block on the same lock, either when we explicitly call
'udevadm settle --timeout=10' or when partprobe does it on our behalf
(without a timeout!).   Avoid this by using separate locks for prepare
and activate.  We only care if multiple activates race; it is
okay for a prepare to be in progress and for an activate to be kicked
off.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-test.install: add ceph-monstore-tool and ceph-osdomap-tool
Danny Al-Gaaf [Mon, 6 May 2013 13:42:57 +0000 (15:42 +0200)]
ceph-test.install: add ceph-monstore-tool and ceph-osdomap-tool

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: remove twice listed ceph-coverage
Danny Al-Gaaf [Mon, 6 May 2013 13:21:56 +0000 (15:21 +0200)]
ceph.spec.in: remove twice listed ceph-coverage

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec: add some files to ceph
Danny Al-Gaaf [Mon, 6 May 2013 13:09:32 +0000 (15:09 +0200)]
ceph.spec: add some files to ceph

Add installed, but not packaged files to ceph-test (ceph-monstore-tool,
ceph-osdomap-tool) rpm file section.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agodoc: Update the usage to reflect optional directory name.
John Wilkins [Mon, 6 May 2013 18:19:33 +0000 (11:19 -0700)]
doc: Update the usage to reflect optional directory name.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Rearranged to show zapping multiple disks and creating multiple OSDs.
John Wilkins [Mon, 6 May 2013 18:19:09 +0000 (11:19 -0700)]
doc: Rearranged to show zapping multiple disks and creating multiple OSDs.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Moved install to the second step, from the first step.
John Wilkins [Mon, 6 May 2013 17:50:24 +0000 (10:50 -0700)]
doc: Moved install to the second step, from the first step.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge pull request #256 from dalgaaf/wip-da-spec-update
Gary Lowell [Mon, 6 May 2013 17:28:22 +0000 (10:28 -0700)]
Merge pull request #256 from dalgaaf/wip-da-spec-update

Fix ceph.spec.in

12 years agoMerge pull request #257 from dalgaaf/wip-da-fix-debian
Gary Lowell [Mon, 6 May 2013 17:28:04 +0000 (10:28 -0700)]
Merge pull request #257 from dalgaaf/wip-da-fix-debian

ceph-test.install: add ceph-monstore-tool and ceph-osdomap-tool

12 years agodoc: Autonumbering syntax correction.
John Wilkins [Mon, 6 May 2013 17:08:38 +0000 (10:08 -0700)]
doc: Autonumbering syntax correction.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added troubleshooting PGs to the index.
John Wilkins [Mon, 6 May 2013 17:04:29 +0000 (10:04 -0700)]
doc: Added troubleshooting PGs to the index.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Commented out osd list for now.
John Wilkins [Mon, 6 May 2013 16:44:31 +0000 (09:44 -0700)]
doc: Commented out osd list for now.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Commented out remove a mds for now.
John Wilkins [Mon, 6 May 2013 16:44:13 +0000 (09:44 -0700)]
doc: Commented out remove a mds for now.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Forwarding link. FAQ migrated to new Ceph wiki.
John Wilkins [Mon, 6 May 2013 16:43:41 +0000 (09:43 -0700)]
doc: Forwarding link. FAQ migrated to new Ceph wiki.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoceph-test.install: add ceph-monstore-tool and ceph-osdomap-tool 257/head
Danny Al-Gaaf [Mon, 6 May 2013 13:42:57 +0000 (15:42 +0200)]
ceph-test.install: add ceph-monstore-tool and ceph-osdomap-tool

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: remove twice listed ceph-coverage 256/head
Danny Al-Gaaf [Mon, 6 May 2013 13:21:56 +0000 (15:21 +0200)]
ceph.spec.in: remove twice listed ceph-coverage

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec: add some files to ceph
Danny Al-Gaaf [Mon, 6 May 2013 13:09:32 +0000 (15:09 +0200)]
ceph.spec: add some files to ceph

Add installed, but not packaged files to ceph-test (ceph-monstore-tool,
ceph-osdomap-tool) rpm file section.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon: fix init sequence when not daemonizing
Sage Weil [Fri, 3 May 2013 23:20:26 +0000 (16:20 -0700)]
mon: fix init sequence when not daemonizing

We made the common_init_finish and chdir conditional on daemonize in commit
2e0dd5ae6c8751e33d456b2b06c1204b63db959a, breaking init (asok at least)
when -f is specified (as with upstart).

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomon: avoid null deref in Monitor::_mon_status()
Sage Weil [Fri, 3 May 2013 23:04:31 +0000 (16:04 -0700)]
mon: avoid null deref in Monitor::_mon_status()

mikedawson reports:

*** Caught signal (Segmentation fault) **
 in thread 7f40ce270700

 ceph version 0.60-801-g7ec0151 (7ec01513970b5a977bdbdf60052b6f6e257d267e)
 1: /usr/bin/ceph-mon() [0x59d550]
 2: (()+0xfbd0) [0x7f40d3e38bd0]
 3: (operator<<(std::ostream&, entity_name_t const&)+0x16) [0x4d7c46]
 4: (operator<<(std::ostream&, entity_inst_t const&)+0x1b) [0x4d837b]
 5: (Monitor::_mon_status(std::ostream&)+0x2ce) [0x4d284e]
 6: (Monitor::do_admin_command(std::string, std::string, std::ostream&)+0x4f) [0x4d652f]
 7: (AdminHook::call(std::string, std::string, ceph::buffer::list&)+0x68) [0x4efa38]
 8: (AdminSocket::do_accept()+0x451) [0x64ab81]
 9: (AdminSocket::entry()+0x398) [0x64c528]
 10: (()+0x7f8e) [0x7f40d3e30f8e]
 11: (clone()+0x6d) [0x7f40d237ae1d]

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoceph.spec: require xfsprogs
Sage Weil [Fri, 3 May 2013 20:28:24 +0000 (13:28 -0700)]
ceph.spec: require xfsprogs

This is needed when creating new OSDs (via ceph-disk).  At least for most
people.  Eventually we'll want to include btrfs here.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Fri, 3 May 2013 18:36:42 +0000 (11:36 -0700)]
Merge branch 'next'

12 years agodoc/release-notes: warn about sysvinit crush map update
Sage Weil [Fri, 3 May 2013 18:36:37 +0000 (11:36 -0700)]
doc/release-notes: warn about sysvinit crush map update

See c189d855e67baadf977d8ca14509dcacd579af7a.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoinit-ceph: update osd crush map position on start
Sage Weil [Fri, 3 May 2013 00:18:27 +0000 (17:18 -0700)]
init-ceph: update osd crush map position on start

This is what the upstart ceph-osd.conf does; we need to do the same so that
new OSDs (e.g., that ceph-deploy creates) get added to the crush map.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: fork early to avoid leveldb static env state
Sage Weil [Fri, 3 May 2013 18:29:24 +0000 (11:29 -0700)]
mon: fork early to avoid leveldb static env state

leveldb has static state that prevents it from recreating its worker thread
after our fork(), even when we close and reopen the database (tsk tsk!).
Avoid this by forking early, before we touch leveldb.

Hide the details in a Preforker class.  This is modeled after what
ceph-fuse already does; we should convert it later.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agodoc/release-notes: add/link complete changelogs
Sage Weil [Fri, 3 May 2013 18:04:35 +0000 (11:04 -0700)]
doc/release-notes: add/link complete changelogs

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/release-notes: v0.56.5
Sage Weil [Fri, 3 May 2013 18:04:05 +0000 (11:04 -0700)]
doc/release-notes: v0.56.5

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: Fixed typos.
John Wilkins [Thu, 2 May 2013 22:32:16 +0000 (15:32 -0700)]
doc: Fixed typos.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge branch 'next'
Sage Weil [Thu, 2 May 2013 20:33:54 +0000 (13:33 -0700)]
Merge branch 'next'

12 years agoRevert "mon: fix Monitor::pick_random_mon()"
Sage Weil [Thu, 2 May 2013 20:33:36 +0000 (13:33 -0700)]
Revert "mon: fix Monitor::pick_random_mon()"

This reverts commit 741f46852380c8e75669f6d7bf1202adad0358fb.

This is fixed in next; revert this to avoid a conflict.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-mon-rank' into next
Sage Weil [Thu, 2 May 2013 20:32:41 +0000 (13:32 -0700)]
Merge remote-tracking branch 'gh/wip-mon-rank' into next

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agodoc/install/upgrading...: note that argonaut->bobtail->cuttlefish must be v0.56.5
Sage Weil [Thu, 2 May 2013 20:19:30 +0000 (13:19 -0700)]
doc/install/upgrading...: note that argonaut->bobtail->cuttlefish must be v0.56.5

Which will be released shortly.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agotools/: add paranoid option to ceph-osdomap-tool
Samuel Just [Thu, 2 May 2013 19:49:34 +0000 (12:49 -0700)]
tools/: add paranoid option to ceph-osdomap-tool

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoosd: default 'osd leveldb paranoid = false'
Sage Weil [Thu, 2 May 2013 19:47:24 +0000 (12:47 -0700)]
osd: default 'osd leveldb paranoid = false'

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados,client: bump mount timeout to 5 min
Sage Weil [Thu, 2 May 2013 19:31:38 +0000 (12:31 -0700)]
librados,client: bump mount timeout to 5 min

30 seconds is pretty short.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge pull request #251 from bkerensa/patch-1
Sage Weil [Thu, 2 May 2013 19:30:41 +0000 (12:30 -0700)]
Merge pull request #251 from bkerensa/patch-1

Improve verbiage

Signed-off-by: Benjamin Kerensa <bkerensa@ubuntu.com>
12 years agoOSD: also walk maps individually for start_split in consume_map()
Samuel Just [Thu, 2 May 2013 17:47:55 +0000 (10:47 -0700)]
OSD: also walk maps individually for start_split in consume_map()

We need to go map-by-map to get the parents right in consume_map()
just as we must in load_pgs().

Fixes: 4884
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agorgw: increase startup timeout to 5 min
Sage Weil [Thu, 2 May 2013 18:06:22 +0000 (11:06 -0700)]
rgw: increase startup timeout to 5 min

30s is too short.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-paranoid' into next
Sage Weil [Thu, 2 May 2013 17:18:39 +0000 (10:18 -0700)]
Merge branch 'wip-paranoid' into next

12 years agodoc/install/upgrading...: note about transitioning to ceph-deploy
Sage Weil [Thu, 2 May 2013 14:30:55 +0000 (07:30 -0700)]
doc/install/upgrading...: note about transitioning to ceph-deploy

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/release-notes: note about ceph-deploy
Sage Weil [Thu, 2 May 2013 14:30:36 +0000 (07:30 -0700)]
doc/release-notes: note about ceph-deploy

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoUpdate debian.rst 251/head
Benjamin Kerensa [Thu, 2 May 2013 09:26:47 +0000 (02:26 -0700)]
Update debian.rst

"complete list of distributions" should be complete list of releases since we already know what distributions are supported and the list specifies releases. (Wheezy, Precise etc.)

12 years agoMerge branch 'next'
Sage Weil [Thu, 2 May 2013 04:46:50 +0000 (21:46 -0700)]
Merge branch 'next'

12 years agoMerge remote-tracking branch 'gh/wip-doc-cuttlefish' into next
Sage Weil [Thu, 2 May 2013 00:24:40 +0000 (17:24 -0700)]
Merge remote-tracking branch 'gh/wip-doc-cuttlefish' into next

12 years agoMerge remote-tracking branch 'upstream/wip_4884' into next
Samuel Just [Wed, 1 May 2013 23:11:47 +0000 (16:11 -0700)]
Merge remote-tracking branch 'upstream/wip_4884' into next

Fixes: #4884
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoMakefile,gitignore: ceph-monstore-tool, not ceph_monstore_tool
Samuel Just [Wed, 1 May 2013 01:11:05 +0000 (18:11 -0700)]
Makefile,gitignore: ceph-monstore-tool, not ceph_monstore_tool

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoMakefile: put ceph_monstore_tool in bin_DEBUGPROGRAMS
Samuel Just [Wed, 1 May 2013 00:57:56 +0000 (17:57 -0700)]
Makefile: put ceph_monstore_tool in bin_DEBUGPROGRAMS

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agotools: ceph-osdomap-tool.cc
Samuel Just [Tue, 30 Apr 2013 16:31:26 +0000 (09:31 -0700)]
tools: ceph-osdomap-tool.cc

Add tool for dumping info from osd omap.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD: load_pgs() should fill in start_split honestly
Samuel Just [Wed, 1 May 2013 21:59:08 +0000 (14:59 -0700)]
OSD: load_pgs() should fill in start_split honestly

In load_pgs(), we previously called assigned children starting
at the loaded pg created between its stored epoch and the current
osdmap to have that pg as their parent.  This is not correct, some
of the children may have been split in subsequent epochs from children
split in earlier epochs.  Instead, do each map individually.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoOSD: cancel_pending_splits needs to cancel all descendants
Samuel Just [Wed, 1 May 2013 21:56:25 +0000 (14:56 -0700)]
OSD: cancel_pending_splits needs to cancel all descendants

expand_pg_num() and load_pgs() may result in a pg with children
in pending_splits which also have children in pending_splits (etc).

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoosd: add --osd-leveldb-paranoid flag
Sage Weil [Wed, 1 May 2013 21:40:33 +0000 (14:40 -0700)]
osd: add --osd-leveldb-paranoid flag

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: add --mon-leveldb-paranoid flag
Sage Weil [Wed, 1 May 2013 21:38:59 +0000 (14:38 -0700)]
mon: add --mon-leveldb-paranoid flag

This is sort of equivalent to an fsck.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodumper: fix Objecter locking
Greg Farnum [Wed, 1 May 2013 21:10:31 +0000 (14:10 -0700)]
dumper: fix Objecter locking

Locking expectations changed at some point, and the Dumper wasn't
updated to comply:
1) We need to take the lock for Objecter, as it
doesn't do so on its own any more.
2) We need to drop the lock in several places so that Objecter
can take delivery of messages

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Wed, 1 May 2013 21:03:31 +0000 (14:03 -0700)]
Merge remote-tracking branch 'gh/next'

12 years agodoc/rados/deploy: note that osd delete does not work yet
Sage Weil [Wed, 1 May 2013 21:03:19 +0000 (14:03 -0700)]
doc/rados/deploy: note that osd delete does not work yet

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/rados/deploy: misc edits
Sage Weil [Wed, 1 May 2013 21:02:37 +0000 (14:02 -0700)]
doc/rados/deploy: misc edits

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoRevert "PaxosService: use get and put for version_t"
Sage Weil [Wed, 1 May 2013 05:48:52 +0000 (22:48 -0700)]
Revert "PaxosService: use get and put for version_t"

This reverts commit e725c3e210b244e090d70c77d937c94f4f63a2be.

These inadvertantely got rid of the prefix portion of the key, which
lead to overwriting the wrong keys.

Fixes: #4872
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agomon/Paxos: update first_committed when we trim
Sage Weil [Wed, 1 May 2013 17:57:35 +0000 (10:57 -0700)]
mon/Paxos: update first_committed when we trim

The Paxos::trim() -> ::trim_to() path trims old states but does not
update first_committed.  This misinforms later paxos rounds such that
peers think they can participate and end up with COMMIT messages
following the COLLECT/LAST exchange that are for future commits they
can't do anything with and then crash out when they get the BEGIN:

mon/Paxos.cc: 557: FAILED assert(begin->last_committed == last_committed)

Fixes: #4879
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomon/Paxos: don't ignore peer first_committed
Sage Weil [Wed, 1 May 2013 04:16:16 +0000 (21:16 -0700)]
mon/Paxos: don't ignore peer first_committed

We go to the effort of keeping a map of the peer's first/last committed
so that we can send the right commits during the first phase of paxos,
but we forgot to record the first value.  This appears to simply be an
oversight.  It is mostly harmless; it just means we send extra states
that the peer already has.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomon: Monitor: fix bug on _pick_random_mon() that would choose an invalid rank
Joao Eduardo Luis [Tue, 30 Apr 2013 16:12:05 +0000 (17:12 +0100)]
mon: Monitor: fix bug on _pick_random_mon() that would choose an invalid rank

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agomon: Monitor: use rank instead of name when randomly picking monitors
Joao Eduardo Luis [Tue, 30 Apr 2013 15:28:42 +0000 (16:28 +0100)]
mon: Monitor: use rank instead of name when randomly picking monitors

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoOSD: clean up in progress split state on pg removal
Samuel Just [Tue, 30 Apr 2013 22:48:10 +0000 (15:48 -0700)]
OSD: clean up in progress split state on pg removal

There are two cases: 1) The parent pg has not yet initiated the split 2) The
parent pg has initiated the split.

Previously in case 1), _remove_pg left the entry for its children in the
in_progress_splits map blocking subsequent peering attempts.

In case 1), we need to unblock requests on the child pgs for the parent on
parent removal.  We don't need to bother waking requests since any requests
received prior to the remove_pg request are necessarily obsolete.

In case 2), we don't need to do anything: the child will complete the split on
its own anyway.

Thus, we now track pending_splits vs in_progress_splits.  Children in
pending_splits are in state 1), in_progress_splits in state 2).  split_pgs
bumps pgs from pending_splits to in_progress_splits atomically with respect to
_remove_pg since the parent pg lock is held in both places.

Fixes: #4813
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agoMerge pull request #250 from wido/docs
Sage Weil [Wed, 1 May 2013 14:57:46 +0000 (07:57 -0700)]
Merge pull request #250 from wido/docs

docs: Various updates for the documentation

12 years agodocs: Update links to Github and the Tracker 250/head
Wido den Hollander [Wed, 1 May 2013 09:56:33 +0000 (11:56 +0200)]
docs: Update links to Github and the Tracker

12 years agodocs: Update the ceph-users join and leave addresses
Wido den Hollander [Wed, 1 May 2013 09:52:12 +0000 (11:52 +0200)]
docs: Update the ceph-users join and leave addresses

These were pointing to vger, where only -devel lives.

12 years agodocs: Update CloudStack RBD documentation
Wido den Hollander [Wed, 1 May 2013 09:09:11 +0000 (11:09 +0200)]
docs: Update CloudStack RBD documentation

12 years agomon: communicate the quorum_features properly when declaring victory.
Greg Farnum [Wed, 1 May 2013 01:12:10 +0000 (18:12 -0700)]
mon: communicate the quorum_features properly when declaring victory.

Fixes #4747.

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agodoc: Incorporating Tamil's feedback.
John Wilkins [Wed, 1 May 2013 01:04:46 +0000 (18:04 -0700)]
doc: Incorporating Tamil's feedback.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Reordered header levels for visual clarity.
John Wilkins [Wed, 1 May 2013 00:48:05 +0000 (17:48 -0700)]
doc: Reordered header levels for visual clarity.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fixed a few typos.
John Wilkins [Wed, 1 May 2013 00:39:50 +0000 (17:39 -0700)]
doc: Fixed a few typos.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated the upgrade guide for Aronaut and Bobtail to Cuttlefish.
John Wilkins [Wed, 1 May 2013 00:32:15 +0000 (17:32 -0700)]
doc: Updated the upgrade guide for Aronaut and Bobtail to Cuttlefish.

fixes: #4874

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc/release-notes: update cuttlefish release notes to include bobtail
Sage Weil [Tue, 30 Apr 2013 23:42:23 +0000 (16:42 -0700)]
doc/release-notes: update cuttlefish release notes to include bobtail

Collapse changes from bobtail -> cuttlefish.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-4837-election-syncing' into next
Greg Farnum [Tue, 30 Apr 2013 22:39:21 +0000 (15:39 -0700)]
Merge branch 'wip-4837-election-syncing' into next

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk: tolerate /sbin/service or /usr/sbin/service
Sage Weil [Tue, 30 Apr 2013 21:16:04 +0000 (14:16 -0700)]
ceph-disk: tolerate /sbin/service or /usr/sbin/service

CentOS/RH has it in /sbin, others in /usr/sbin.

Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: Monitor: disregard paxos_max_join_drift when deciding whether to sync
Joao Eduardo Luis [Tue, 30 Apr 2013 17:45:22 +0000 (18:45 +0100)]
mon: Monitor: disregard paxos_max_join_drift when deciding whether to sync

We should only rely on whether our paxos version is overlap with whatever
they have -- we'll catch up later with them.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agomon: if we get our own sync_start back, drop it on the floor.
Greg Farnum [Tue, 30 Apr 2013 20:35:53 +0000 (13:35 -0700)]
mon: if we get our own sync_start back, drop it on the floor.

We have timeouts that will clean everything up, and this can happen
in some cases that we've decided are legitimate. Hopefully we'll
be able to do something else later.

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoRevert "mon: update assert for looser requirements"
Greg Farnum [Tue, 30 Apr 2013 20:21:28 +0000 (13:21 -0700)]
Revert "mon: update assert for looser requirements"

We reverted the gating by paxos sequences, so now we don't
need to look at them at all.

This reverts commit 1e6f02b337767012aeb387da9582cd7ad5a03084.
Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoRevert "mon: when electing, be sure acked leaders have new enough stores to lead"
Greg Farnum [Tue, 30 Apr 2013 19:02:20 +0000 (12:02 -0700)]
Revert "mon: when electing, be sure acked leaders have new enough stores to lead"

This was somehow broken -- out-of-date leaders were being elected -- and
we've decided smaller band-aids are more appropriate. We don't completely
revert the MMonElection changes, though -- there have been user clusters
running the code which includes these messages so we can't pretend it
never happened. We can make them clearly unused in the code, though.

This reverts commit fcaabf1a22723c571c10d402464071c6405607c0.

Signed-off-by: Greg Farnum <greg@inktank.com>
12 years agoObjectCacher: wait for all reads when stopping flusher
Josh Durgin [Mon, 29 Apr 2013 20:58:07 +0000 (13:58 -0700)]
ObjectCacher: wait for all reads when stopping flusher

Stopping the flusher is essentially the shutdown step for the
ObjectCacher - the next thing is actually destroying it.

If we leave any reads outstanding, when they complete they will
attempt to use the now-destroyed ObjectCacher. This is particularly a
problem with rbd images, since an -ENOENT can instantly complete many
readers, so the upper layers don't wait for the other rados-level
reads of that object to finish before trying to shutdown the cache.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>