]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/log
ceph-cookbooks.git
13 years agoMerge branch 'master' into ceph-client-no-library rebased
Greg Farnum [Thu, 6 Sep 2012 20:25:49 +0000 (13:25 -0700)]
Merge branch 'master' into ceph-client-no-library

Conflicts:
recipes/osd.rb

13 years agomerge bootstrap_osd recipe into osd recipe
Greg Farnum [Tue, 4 Sep 2012 22:55:39 +0000 (15:55 -0700)]
merge bootstrap_osd recipe into osd recipe

This mirrors a commit in master we need for effective merging

13 years agoosd: be more generous about accepting monitors.
Greg Farnum [Tue, 28 Aug 2012 22:41:54 +0000 (15:41 -0700)]
osd: be more generous about accepting monitors.

The solr database doesn't update quickly enough for our search to
work well on initial bringup.
Instead, fail if we actually have no monitors, but otherwise loop
until our search for a mon with the osd bootstrap key succeeds.

13 years agoDon't finish an initial Chef run until monitors have joined the quorum
Greg Farnum [Mon, 27 Aug 2012 18:36:08 +0000 (11:36 -0700)]
Don't finish an initial Chef run until monitors have joined the quorum

On their first run, the monitor role now loops until the monitor
process reports it has entered the quorum.

13 years agokeep track of which disks have been prepared (crowbar)
Greg Farnum [Wed, 8 Aug 2012 16:45:37 +0000 (09:45 -0700)]
keep track of which disks have been prepared (crowbar)

This way we can only prepare disks which aren't
already set up.

13 years agocreate a ceph-client role
Greg Farnum [Thu, 2 Aug 2012 22:29:12 +0000 (15:29 -0700)]
create a ceph-client role

The ceph-client role sets the host up to access the Ceph
cluster and generates the host a key capable of creating
new client access keys

13 years agoremove check for swift on the node (crowbar)
Greg Farnum [Wed, 8 Aug 2012 16:10:58 +0000 (09:10 -0700)]
remove check for swift on the node (crowbar)

Crowbar doesn't correctly handle running multiple disk
users on a node anyway, so just get rid of the check.

13 years agolibrary: fix indentation on have_quorum
Greg Farnum [Thu, 9 Aug 2012 01:06:44 +0000 (18:06 -0700)]
library: fix indentation on have_quorum

13 years agoClean up unused variable.
Tommi Virtanen [Tue, 14 Aug 2012 20:13:21 +0000 (13:13 -0700)]
Clean up unused variable.

13 years agoCrowbar: Don't try to play nice with Swift.
Tommi Virtanen [Mon, 6 Aug 2012 20:24:11 +0000 (13:24 -0700)]
Crowbar: Don't try to play nice with Swift.

We tried to avoid using data disks that swift-storage has taken over,
but nothing guarded us against Swift stepping on our toes. Similarly,
we never protected nova-multi-volume's toes. Current Crowbar just
doesn't solve this problem; don't try.

Do NOT install ceph-osd on the same machine as swift-storage or
nova-multi-volume.

13 years agoFoodcritic cleanup.
Tommi Virtanen [Thu, 2 Aug 2012 21:59:34 +0000 (14:59 -0700)]
Foodcritic cleanup.

13 years agoSimplify recipes: merge bootstrap_osd into osd.
Tommi Virtanen [Thu, 2 Aug 2012 21:51:56 +0000 (14:51 -0700)]
Simplify recipes: merge bootstrap_osd into osd.

13 years agoSimplify recipes: merge rados-rest into radosgw.
Tommi Virtanen [Thu, 2 Aug 2012 21:51:56 +0000 (14:51 -0700)]
Simplify recipes: merge rados-rest into radosgw.

13 years agomake swift disk check more careful
Greg Farnum [Fri, 27 Jul 2012 22:25:23 +0000 (15:25 -0700)]
make swift disk check more careful

13 years agoMerge pull request #7 from johnae/master
Gregory Farnum [Thu, 26 Jul 2012 16:57:19 +0000 (09:57 -0700)]
Merge pull request #7 from johnae/master

Make default radosgw attributes same as those expected in recipe

13 years agoWarn about basename of clone needing to be "ceph".
Tommi Virtanen [Wed, 25 Jul 2012 22:23:36 +0000 (15:23 -0700)]
Warn about basename of clone needing to be "ceph".

13 years agoCrowbar: use all "Storage" disks for OSD.
Tommi Virtanen [Wed, 25 Jul 2012 21:57:44 +0000 (14:57 -0700)]
Crowbar: use all "Storage" disks for OSD.

Verify that the disk has not been taken by Swift already.

Once all disks have been prepared, trigger a hotplug event,
to activate them, and ultimately get OSDs using them.

13 years agoCrowbar: Make bootstrap_osd find mons.
Tommi Virtanen [Wed, 25 Jul 2012 21:55:53 +0000 (14:55 -0700)]
Crowbar: Make bootstrap_osd find mons.

Crowbar has switched to per-node special-purpose roles, a direct
search for role: won't find the actual roles (and roles: is updated
too late to be generally useful, though it might work here --
preferring this way so the search logic is implemented only once).

Rewrite .length < 1 using the more ruby-like .empty?

13 years agoRefactor to add extra search criteria to get_mon_nodes, so it can be reused.
Tommi Virtanen [Wed, 25 Jul 2012 21:52:38 +0000 (14:52 -0700)]
Refactor to add extra search criteria to get_mon_nodes, so it can be reused.

13 years agoShare more code inside get_mon_nodes.
Tommi Virtanen [Wed, 25 Jul 2012 22:55:46 +0000 (15:55 -0700)]
Share more code inside get_mon_nodes.

Only call search() in one place, just build different search strings
for Crowbar and non-Crowbar.

13 years agoRefactor to extract get_mon_nodes() utility function.
Tommi Virtanen [Wed, 25 Jul 2012 21:26:19 +0000 (14:26 -0700)]
Refactor to extract get_mon_nodes() utility function.

13 years agoMake default attributes keys same as those expected in recipe 7/head
John Axel Eriksson [Sat, 21 Jul 2012 18:58:13 +0000 (20:58 +0200)]
Make default attributes keys same as those expected in recipe

13 years agoAdd current node to mon_hosts, if it has role ceph-mon.
Tommi Virtanen [Fri, 20 Jul 2012 21:32:18 +0000 (14:32 -0700)]
Add current node to mon_hosts, if it has role ceph-mon.

This shortcircuits the search logic, so ceph-mon --mkfs will always
see itself in ceph-mon, and thus won't end up with an empty monmap.
Empty monmap would prevent it from initializing properly, and the
peer hints aren't enough to help.

Search is not reliable for this, as the search index updates lazily,
and e.g. the "roles:" field, holding the expanded run_list, is only
set at the end of a successful chef-client run.

Crowbar creates a special-purpose role, one per node, and assigns the
actual roles to that role. We work around this by doing the search in
two phases, when running under Crowbar.

Thanks to Tyler Brekke.

13 years agoEnforce the name of the cookbook as "ceph".
Tommi Virtanen [Fri, 13 Jul 2012 17:49:45 +0000 (10:49 -0700)]
Enforce the name of the cookbook as "ceph".

13 years agoRevert last three commits.
Tommi Virtanen [Fri, 13 Jul 2012 17:44:16 +0000 (10:44 -0700)]
Revert last three commits.

The roles are named ceph-mon etc. The recipes are named ceph::mon etc.
The cookbook is named "ceph". The git repository is named
"ceph-cookbooks.git". The string "ceph-cookbooks" should not be
anywhere in the code anywhere inside of the cookbook.

13 years agodoc: rollback file names and role names for sanity check.
John Wilkins [Thu, 12 Jul 2012 18:43:44 +0000 (11:43 -0700)]
doc: rollback file names and role names for sanity check.

Removing ceph directory causes problems, because of many references to ceph::something.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: renamed for consistency.
John Wilkins [Thu, 12 Jul 2012 17:57:31 +0000 (10:57 -0700)]
doc: renamed for consistency.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agodoc: Updated roles to point to ceph-cookbooks:recipe.
John Wilkins [Thu, 12 Jul 2012 00:31:49 +0000 (17:31 -0700)]
doc: Updated roles to point to ceph-cookbooks:recipe.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoMake ceph::osd recipe install gdisk for ceph-disk-prepare.
Tommi Virtanen [Wed, 11 Jul 2012 17:07:19 +0000 (10:07 -0700)]
Make ceph::osd recipe install gdisk for ceph-disk-prepare.

ceph.deb only recommends it, as there are ways of using Ceph without
using ceph-disk-prepare.

13 years agoMove ceph/* to top-level.
Tommi Virtanen [Mon, 9 Jul 2012 22:46:52 +0000 (15:46 -0700)]
Move ceph/* to top-level.

This repository used to be a collection of several cookbooks, but this
hasn't been true for a month, since
a77b418b95df8f2b6f56d9a90e47dc62100cdf4d. Simplifies the file layout
and makes this look more like your usual cookbook.

Thanks to Guilhem Lettron <guilhem@lettron.fr>

13 years agoRely on the apache2 cookbook to install relevant apache packages.
Tommi Virtanen [Mon, 9 Jul 2012 22:24:08 +0000 (15:24 -0700)]
Rely on the apache2 cookbook to install relevant apache packages.

Thanks to Guilhem Lettron for pointing this out.

13 years agoMerge pull request #6 from Youscribe/fixRadosgw
John Wilkins [Mon, 9 Jul 2012 16:48:34 +0000 (09:48 -0700)]
Merge pull request #6 from Youscribe/fixRadosgw

Fix radosgw

13 years agouse "localhost" is more conventional than "127.0.0.1" 6/head
Guilhem Lettron [Mon, 9 Jul 2012 14:10:22 +0000 (16:10 +0200)]
use "localhost" is more conventional than "127.0.0.1"

13 years agofix attribute to match attributes/radosgw.rb
Guilhem Lettron [Mon, 9 Jul 2012 14:09:40 +0000 (16:09 +0200)]
fix attribute to match attributes/radosgw.rb

13 years agodoc: Removed my add of ceph-env.rb, because it's not particularly useful.
John Wilkins [Tue, 3 Jul 2012 17:09:33 +0000 (10:09 -0700)]
doc: Removed my add of ceph-env.rb, because it's not particularly useful.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoAdded environments dir and file. Added roles dir and file for knife from file.
John Wilkins [Wed, 27 Jun 2012 00:21:31 +0000 (17:21 -0700)]
Added environments dir and file. Added roles dir and file for knife from file.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
13 years agoPassthrough non-global ceph.conf values in a separate hash.
Tommi Virtanen [Fri, 8 Jun 2012 22:42:26 +0000 (15:42 -0700)]
Passthrough non-global ceph.conf values in a separate hash.

For example:

  "config-sections": {
    "osd": {
      "osd_journal_size": "3000"
    }
    "osd.42": {
      "debug ms": "20"
    }
  }

13 years agoPassthrough arbitrary (global) config variables to ceph.conf.
Tommi Virtanen [Fri, 8 Jun 2012 22:40:22 +0000 (15:40 -0700)]
Passthrough arbitrary (global) config variables to ceph.conf.

Still sanity checking that the ones we want are provided.

13 years agoGive ceph-mon hints about its peers.
Tommi Virtanen [Fri, 8 Jun 2012 21:55:07 +0000 (14:55 -0700)]
Give ceph-mon hints about its peers.

This handles the case where ceph-mon already started, already read a
mon_host from ceph.conf, but more nodes (needed for initial quorum)
had the ceph-mon role added to them after the fact, and thus weren't
in mon_host at startup time.

13 years agoRefactor to extract get_mon_addresses.
Tommi Virtanen [Fri, 8 Jun 2012 21:53:18 +0000 (14:53 -0700)]
Refactor to extract get_mon_addresses.

13 years agoCleanup: combine ceph::single_mon into ceph::mon.
Tommi Virtanen [Fri, 8 Jun 2012 17:54:34 +0000 (10:54 -0700)]
Cleanup: combine ceph::single_mon into ceph::mon.

13 years agoRemove unused recipes oss and xattr.
Tommi Virtanen [Fri, 8 Jun 2012 17:51:18 +0000 (10:51 -0700)]
Remove unused recipes oss and xattr.

oss was used by DreamHost to deploy obsync.

xattr was used by a workaround for running an ext4 osd on rootfs.

13 years agoceph::mon does NOT depend on radosgw, no idea what was going on here.
Tommi Virtanen [Fri, 8 Jun 2012 17:50:26 +0000 (10:50 -0700)]
ceph::mon does NOT depend on radosgw, no idea what was going on here.

Cleaning up the inherited recipes.

13 years agoInstall ceph-common in ceph::default.
Tommi Virtanen [Fri, 8 Jun 2012 17:48:47 +0000 (10:48 -0700)]
Install ceph-common in ceph::default.