]>
git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Alexandre Marangone [Thu, 2 May 2013 16:55:47 +0000 (09:55 -0700)]
Merge pull request #22 from Youscribe/monRefactor
Mon refactor
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Guilhem Lettron [Mon, 29 Apr 2013 12:29:23 +0000 (14:29 +0200)]
Use Mixlib::ShellOut instead of Chef::ShellOut
Guilhem Lettron [Tue, 23 Apr 2013 08:31:01 +0000 (10:31 +0200)]
Manage starting mon with upstart
Guilhem Lettron [Tue, 9 Apr 2013 12:50:08 +0000 (14:50 +0200)]
remove useless require json in mon and add it in libraries
Guilhem Lettron [Tue, 9 Apr 2013 12:37:32 +0000 (14:37 +0200)]
ceph support "status" command
Guilhem Lettron [Tue, 9 Apr 2013 12:33:56 +0000 (14:33 +0200)]
Place service at the end of script to ensure that service is always enable and running after chef is execute
Guilhem Lettron [Tue, 9 Apr 2013 12:27:50 +0000 (14:27 +0200)]
Don't use libraries for things that must be in attributes
Guilhem Lettron [Thu, 21 Mar 2013 09:51:27 +0000 (10:51 +0100)]
creates prevent re-run
refactor to use chef commands
move ceph_bootstrap_osd_key to node['ceph']
we must wait for get osd-bootstrap keyring to finish
Last fixes
create /var/lib/ceph/mon/ceph-{hostname} directory if it doesn't exist.
remove ceph.mon.node attribute (more reflexion to this behaviour later)
fix typo for done file
service ceph-mon-all support restart and status
service must be restart immediately to launch ceph-mon
correct rebase
Guilhem Lettron [Thu, 21 Mar 2013 09:47:11 +0000 (10:47 +0100)]
ceph-mon-all-starter is a task, not a service
Ensure that ceph-mon-all is start at the end of recipe
Alexandre Marangone [Fri, 26 Apr 2013 21:49:37 +0000 (14:49 -0700)]
Merge pull request #23 from Youscribe/error_osd_device
don't break if node["ceph"]["osd_devices"] is empty
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Mon, 15 Apr 2013 17:52:31 +0000 (10:52 -0700)]
Merge pull request #24 from shellycloud/master
Fixed finding node's IP address
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Maciej Galkiewicz [Mon, 15 Apr 2013 14:03:18 +0000 (16:03 +0200)]
Fixed indentation in ceph.conf.
Maciej Galkiewicz [Mon, 15 Apr 2013 11:43:12 +0000 (13:43 +0200)]
Fixed finding mon's IP address.
Alexandre Marangone [Tue, 9 Apr 2013 15:57:25 +0000 (08:57 -0700)]
Merge pull request #20 from Youscribe/allow_standalone
Allow standalone installation of radosgw
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Guilhem Lettron [Tue, 9 Apr 2013 13:32:17 +0000 (15:32 +0200)]
remove useless create file from chef value, read variable, create file, remove file...
You forget to fax it
Guilhem Lettron [Tue, 9 Apr 2013 13:22:05 +0000 (15:22 +0200)]
don't break if node["ceph"]["osd_devices"] is empty (but log it)
Guilhem Lettron [Tue, 9 Apr 2013 12:52:12 +0000 (14:52 +0200)]
remove sysvinit script for radosgw
Alexandre Marangone [Thu, 4 Apr 2013 16:16:25 +0000 (09:16 -0700)]
Merge pull request #19 from yuryu/master
Fix recipe compile error when 'public network' is set to Ceph environment
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Guilhem Lettron [Tue, 26 Feb 2013 11:47:55 +0000 (12:47 +0100)]
add dependency to apache2 v1.1.12
It add mod_fastcgi
Guilhem Lettron [Tue, 26 Feb 2013 11:38:16 +0000 (12:38 +0100)]
Manage a standalone installation (without apache2)
Improve apache2 recipe
Yuryu [Thu, 4 Apr 2013 06:26:59 +0000 (15:26 +0900)]
- Fix recipe compile error when 'public network' is set to Ceph environment
================================================================================
Recipe Compile Error in /var/cache/chef/cookbooks/ceph/recipes/mon.rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/var/cache/chef/cookbooks/ceph/libraries/default.rb:84:in `get_mon_addresses'
/var/cache/chef/cookbooks/ceph/libraries/default.rb:84:in `map'
/var/cache/chef/cookbooks/ceph/libraries/default.rb:84:in `get_mon_addresses'
/var/cache/chef/cookbooks/ceph/recipes/conf.rb:4:in `from_file'
/var/cache/chef/cookbooks/ceph/recipes/mon.rb:20:in `from_file'
Relevant File Content:
----------------------
/var/cache/chef/cookbooks/ceph/libraries/default.rb:
77: end
78:
79: mons += get_mon_nodes()
80: if is_crowbar?
81: mon_ips = mons.map { |node| Chef::Recipe::Barclamp::Inventory.get_network_by_type(node, "admin").address }
82: else
83: if node['ceph']['config']['global'] && node['ceph']['config']['global']['public network']
84>> mon_ips = mons.map { |node| find_node_ip_in_network(node['ceph']['config']['global']['public network'], node) }
85: else
86: mon_ips = mons.map { |node| node['ipaddress'] + ":6789" }
87: end
88: end
89: end
90: return mon_ips.uniq
91: end
92:
93: def get_quorum_members_ips()
Sage Weil [Fri, 29 Mar 2013 19:23:45 +0000 (12:23 -0700)]
Merge pull request #18 from alram/master
Fix for old ceph-disk-prepare
Alexandre Marangone [Fri, 29 Mar 2013 17:39:26 +0000 (10:39 -0700)]
Fix issue with old ceph-disk-prepare
Old ceph-disk-prepare re-write the partition table and fail before writting
the Parition GUID.
This fix tests the presence of a osd_device status, if present, we skip
the OSD.
It also fix a typo when setting the osd_device status
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Sage Weil [Wed, 27 Mar 2013 05:52:20 +0000 (22:52 -0700)]
Merge pull request #17 from alram/wip-rpm-distro
Chef support for CentOS/RHEL, Fedora and SuSE
Reviewed-by-not-tested-by: Sage Weil <sage@inktank.com>
Alexandre Marangone [Mon, 25 Mar 2013 19:42:19 +0000 (12:42 -0700)]
Create mon data dir before calling ceph-mon --mkfs
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Thu, 21 Mar 2013 18:02:32 +0000 (11:02 -0700)]
Upstart and SYSV Init support
- Handles different service names between upstart
and sysvinit.
- Create mon_dir/(upstart|sysvinit) depending on
service to be used.
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Thu, 21 Mar 2013 17:58:38 +0000 (10:58 -0700)]
Support EL, Fedora and (open)SuSE repo
- Recipe is now ceph::repo
- For EL, add EPEL repository for dependencies by default.
Deactivable by using el_add_epel: false under ceph: {} in
the chef environment.
- Handle package names difference between EL/FC/SuSE and Debian.
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Sage Weil [Wed, 20 Mar 2013 23:24:54 +0000 (16:24 -0700)]
Merge pull request #16 from alram/master
ceph-cookbooks patches
Reviewed-by: Greg Farnum <greg@inktankcom>
Reviewed-by: Sage Weil <sage@inktank.com>
Alexandre Marangone [Wed, 20 Mar 2013 16:55:09 +0000 (09:55 -0700)]
change cookbook version to 0.1.0
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Wed, 20 Mar 2013 16:52:30 +0000 (09:52 -0700)]
Update README.md
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:33:21 +0000 (12:33 -0700)]
add node env sample
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:32:16 +0000 (12:32 -0700)]
Add OSD deployment when not using crowbar
Also installs cryptsetup in case dmcrypt is being used
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:26:23 +0000 (12:26 -0700)]
change template to be more flexible
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:25:55 +0000 (12:25 -0700)]
add, hopefully, helpful comments
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:24:59 +0000 (12:24 -0700)]
Ceph will automatically create the admin and bootstrap keys
We just need to store the boostrap-osd key once it is created
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:24:09 +0000 (12:24 -0700)]
Set mon to use upstart
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:23:27 +0000 (12:23 -0700)]
create /var/run/ceph/
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Fri, 15 Mar 2013 19:20:28 +0000 (12:20 -0700)]
remove unused block
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Sage Weil [Thu, 14 Mar 2013 17:27:46 +0000 (10:27 -0700)]
Merge pull request #15 from Youscribe/separateDebug
separate *-dbg packages and add an attribute to manage it
Reviewed-by: Sage Weil <sage@inktank.com>
Guilhem Lettron [Thu, 7 Mar 2013 09:36:38 +0000 (10:36 +0100)]
concat in ruby way
Guilhem Lettron [Wed, 6 Mar 2013 17:08:43 +0000 (18:08 +0100)]
separate *-dbg packages and add an attribute to manage it
Sage Weil [Tue, 26 Feb 2013 18:45:01 +0000 (10:45 -0800)]
Merge pull request #14 from Youscribe/rgw_port
manage rgw_port on radosgw recipe
Reviewed-by: Sage Weil <sage@inktank.com>
Guilhem Lettron [Tue, 26 Feb 2013 11:42:00 +0000 (12:42 +0100)]
manage rgw_port on radosgw recipe
Gregory Farnum [Thu, 17 Jan 2013 01:59:54 +0000 (17:59 -0800)]
Merge pull request #12 from Tech-Corps/update-apt-repos
Update apt repos to be inline with doc changes
Brian Staszewski [Thu, 17 Jan 2013 00:13:04 +0000 (16:13 -0800)]
Update apt repos to be inline with doc changes
See http://ceph.com/docs/master/install/debian/
Gregory Farnum [Fri, 11 Jan 2013 19:26:54 +0000 (11:26 -0800)]
Merge pull request #10 from seanchannel/patch-1
delete NewDreamNetwork url
Greg Farnum [Thu, 13 Dec 2012 19:24:16 +0000 (11:24 -0800)]
use ceph.com instead of ceph.newdream.net for apt repos
Gregory Farnum [Thu, 13 Dec 2012 19:18:13 +0000 (11:18 -0800)]
Merge pull request #11 from Youscribe/apt
use "apt" cookbook to manage apt file.
Guilhem Lettron [Tue, 30 Oct 2012 16:46:39 +0000 (17:46 +0100)]
use "apt" cookbook to manage apt file.
Add "testing" as possible branch
Sean Channel [Mon, 10 Sep 2012 22:58:17 +0000 (15:58 -0700)]
delete NewDreamNetwork url
I'm new to ceph, but there doesn't seem to be a github account for NewDreamNetwork anymore, right?
Tommi Virtanen [Tue, 14 Aug 2012 20:13:21 +0000 (13:13 -0700)]
Clean up unused variable.
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.
Tommi Virtanen [Thu, 2 Aug 2012 21:59:34 +0000 (14:59 -0700)]
Foodcritic cleanup.
Tommi Virtanen [Thu, 2 Aug 2012 21:51:56 +0000 (14:51 -0700)]
Simplify recipes: merge bootstrap_osd into osd.
Tommi Virtanen [Thu, 2 Aug 2012 21:51:56 +0000 (14:51 -0700)]
Simplify recipes: merge rados-rest into radosgw.
Greg Farnum [Fri, 27 Jul 2012 22:25:23 +0000 (15:25 -0700)]
make swift disk check more careful
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
Tommi Virtanen [Wed, 25 Jul 2012 22:23:36 +0000 (15:23 -0700)]
Warn about basename of clone needing to be "ceph".
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.
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?
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.
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.
Tommi Virtanen [Wed, 25 Jul 2012 21:26:19 +0000 (14:26 -0700)]
Refactor to extract get_mon_nodes() utility function.
John Axel Eriksson [Sat, 21 Jul 2012 18:58:13 +0000 (20:58 +0200)]
Make default attributes keys same as those expected in recipe
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.
Tommi Virtanen [Fri, 13 Jul 2012 17:49:45 +0000 (10:49 -0700)]
Enforce the name of the cookbook as "ceph".
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.
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>
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>
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>
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.
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>
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.
John Wilkins [Mon, 9 Jul 2012 16:48:34 +0000 (09:48 -0700)]
Merge pull request #6 from Youscribe/fixRadosgw
Fix radosgw
Guilhem Lettron [Mon, 9 Jul 2012 14:10:22 +0000 (16:10 +0200)]
use "localhost" is more conventional than "127.0.0.1"
Guilhem Lettron [Mon, 9 Jul 2012 14:09:40 +0000 (16:09 +0200)]
fix attribute to match attributes/radosgw.rb
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>
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>
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"
}
}
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.
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.
Tommi Virtanen [Fri, 8 Jun 2012 21:53:18 +0000 (14:53 -0700)]
Refactor to extract get_mon_addresses.
Tommi Virtanen [Fri, 8 Jun 2012 17:54:34 +0000 (10:54 -0700)]
Cleanup: combine ceph::single_mon into ceph::mon.
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.
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.
Tommi Virtanen [Fri, 8 Jun 2012 17:48:47 +0000 (10:48 -0700)]
Install ceph-common in ceph::default.