]>
git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/log
Simo Kinnunen [Fri, 9 Aug 2013 06:40:13 +0000 (15:40 +0900)]
Add a "type" field to OSD devices. When the value is "directory", the directory (specified by the "device" field) is automatically created and activated, as udev will not pick it up automatically.
Alexandre Marangone [Thu, 8 Aug 2013 20:21:15 +0000 (13:21 -0700)]
Merge pull request #59 from sorccu/hotfix/search-expanded-roles
Use 'roles:' instead of 'role:' in mon search
Simo Kinnunen [Thu, 8 Aug 2013 06:42:06 +0000 (15:42 +0900)]
Use 'roles:' instead of 'role:' in mon search so that expanded runlists are included in the search (i.e. you'll be able to to include the ceph-mon role in another role).
Alexandre Marangone [Fri, 2 Aug 2013 16:13:30 +0000 (09:13 -0700)]
Merge pull request #57 from odyssey4me/master
Change osd device status check and provide log info
odyssey4me [Fri, 2 Aug 2013 07:53:52 +0000 (09:53 +0200)]
Fixed indentation
Alexandre Marangone [Thu, 1 Aug 2013 22:50:34 +0000 (15:50 -0700)]
Merge pull request #55 from centraldesktop/add-vhost-to-accesslog
rgw: Add vhost to accesslog
Craig Lewis [Wed, 31 Jul 2013 22:25:04 +0000 (15:25 -0700)]
Add the HTTP Host: to the access_log record. Useful when using bucket based sub-domains.
odyssey4me [Thu, 1 Aug 2013 15:27:26 +0000 (17:27 +0200)]
Change osd device status check and provide log info
The previous status check didn't work for me, so I've adjusted it and added a log message so that you can see whether it's being skipped.
Alexandre Marangone [Tue, 9 Jul 2013 21:18:12 +0000 (14:18 -0700)]
Merge pull request #44 from Youscribe/fix_osd_status
refactor osd_device status saving
Guilhem Lettron [Tue, 9 Jul 2013 15:30:34 +0000 (17:30 +0200)]
refactor osd_device status saving
Currently, chef set status at compile time and no at run-time.
So you can have a problem and a status set
Alexandre Marangone [Tue, 25 Jun 2013 16:26:28 +0000 (09:26 -0700)]
Merge pull request #33 from alram/wip-rgw
Wip rgw
Alexandre Marangone [Mon, 17 Jun 2013 01:01:23 +0000 (18:01 -0700)]
Merge pull request #35 from AcalephStorage/journal-fix
OSD: Journal support
Hunter Nield [Tue, 11 Jun 2013 09:08:00 +0000 (17:08 +0800)]
Add support for journals
Alexandre Marangone [Tue, 23 Apr 2013 19:13:21 +0000 (12:13 -0700)]
Update radosgw_apache2 recipe
- Multi distro support (CentOS/ubuntu tested)
- apache2::mod_fastcgi only supports Debian/Ubuntu, change it to
an apache_module
- Restart apache once new configuration is applied
- Add fastcgi script template
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Mon, 22 Apr 2013 23:59:24 +0000 (16:59 -0700)]
update radosgw recipe
- Create /etc/ceph/ dir
- Create/Update ceph.conf with radosgw client
- Support upstart and init
- Create radosgw client keyring
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Sage Weil [Thu, 16 May 2013 06:35:20 +0000 (23:35 -0700)]
Merge pull request #31 from ceph/wip-repo
Wip repo
Sage Weil [Thu, 16 May 2013 06:33:11 +0000 (23:33 -0700)]
Merge pull request #27 from ceph/osd-fixes
OSD: service start fixes
Alexandre Marangone [Tue, 7 May 2013 00:06:31 +0000 (17:06 -0700)]
OSD: service start fixes
- fix upstart job name typo
- start all OSD at the end of the recipe
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Wed, 8 May 2013 22:06:16 +0000 (15:06 -0700)]
Repo: support custom rpm repos
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Wed, 8 May 2013 18:32:48 +0000 (11:32 -0700)]
Roles: Add ceph::repo recipe
Fixes: https://github.com/ceph/ceph-cookbooks/pull/30
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Wed, 8 May 2013 18:32:02 +0000 (11:32 -0700)]
repo: support custom apt repos
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Wed, 8 May 2013 16:55:12 +0000 (09:55 -0700)]
Update stable release to Cuttlefish
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Tue, 7 May 2013 22:37:15 +0000 (15:37 -0700)]
Merge pull request #25 from shellycloud/master
Ceph packages should not be upgraded automatically by chef
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Maciej Galkiewicz [Sun, 5 May 2013 09:32:54 +0000 (11:32 +0200)]
Ceph packages should not be upgraded during chef run.
It may cause downtime for example when ceph versions are
backward incompatible.
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, 22 Apr 2013 23:43:37 +0000 (16:43 -0700)]
Update RGW apache conf
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Mon, 22 Apr 2013 23:41:05 +0000 (16:41 -0700)]
Support apache and mod_fastcgi forks for RGW
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Mon, 22 Apr 2013 21:16:06 +0000 (14:16 -0700)]
Handle different package names for radosgw
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Alexandre Marangone [Mon, 22 Apr 2013 18:40:10 +0000 (11:40 -0700)]
Update ceph.conf template for RGW
Signed-off-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>