Commit Graph

896 Commits (8615dd0cce84c1e97fb433d31a96658914cf7b9b)
 

Author SHA1 Message Date
Leseb 55f964d75b Merge pull request #131 from matthewrees/master
Ruby linting for Vagrantfile
2014-11-05 17:36:30 +01:00
Matthew Rees 56ad45859f Ruby linting for Vagrantfile
Mostly cosmetic changes with a few changes to preferred conditional
formatting.

The only linting issues outstanding are lines that are too long and
using snake_case for the filename.
2014-11-05 17:40:36 +02:00
Leseb bca4a78a1d Merge pull request #129 from ObjectifLibre/restart-osd-only
ceph-osd: restart OSDs only
2014-10-14 14:21:51 +02:00
Gauvain Pocentek 20ce0a8336 ceph-osd: restart OSDs only
Avoid restarting other services when configuring the OSDs.
2014-10-14 12:22:11 +02:00
Leseb 7c7e859429 Merge pull request #128 from leseb/remove-ansible-managed-from-ceph-conf-fix
Remove ansible managed header from ceph.conf
2014-10-10 15:42:15 +02:00
Sébastien Han 3a083ce1b2 Remove ansible managed header from ceph.conf
Fixes: #125

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-10-10 15:41:31 +02:00
Leseb c57f875a75 Merge pull request #110 from leseb/fix-updatedb
Fix updatedb disable
2014-10-10 15:36:20 +02:00
Leseb e0b9aac9b2 Merge pull request #127 from leseb/remove-ansible-managed-from-ceph-conf
Remove ansible managed header from ceph.conf
2014-10-10 15:35:09 +02:00
Sébastien Han f34e60813b Remove ansible managed header from ceph.conf
In ceph-common you load {{ ansible_managed }} at the top of the main
config file - this will trigger handlers on that file whenever an
Ansible run is made.

I'd suggest replacing it with a vanilla text comment 'managed by
Ansible' to warn
admins but avoid unnecessary cluster bounces.

fixes: #125

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-10-10 15:34:11 +02:00
Leseb 386ca23be5 Merge pull request #126 from ObjectifLibre/iface-access
Fix the mon.* generation in ceph.conf
2014-10-10 15:30:42 +02:00
Gauvain Pocentek 3386578954 Fix the mon.* generation in ceph.conf
The ceph.conf.j2 template currently always uses the current host facts
to get the IP address of each host in the mon loop. This is not the
expected behavior. This patch uses the correct facts to get the IP.
2014-10-10 15:27:15 +02:00
Leseb c677d40615 Merge pull request #124 from laboshinl/patch-1
Update bootstrap-ansible.sh
2014-09-30 14:14:32 +02:00
Leonid Laboshin 5b0501b8e0 Update bootstrap-ansible.sh
fix syntax error
2014-09-30 16:12:48 +04:00
Leseb 7a008a7722 Merge pull request #123 from ceph/recovery-options
Add more recovery options
2014-09-28 23:01:34 +02:00
Sébastien Han 07216bf883 Add more recovery options
Recovery and/or re-balancing decrease performance, adding more options
might help tweaking this behavior.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-28 17:31:50 +02:00
jjoos 5e8141f8cf Sweep of all sorts of things. 2014-09-04 21:14:11 +02:00
Leseb f214051e6a Merge pull request #118 from leseb/fix-redhat-support
Improve RedHat support
2014-09-04 12:19:52 +02:00
Sébastien Han 6413b9c251 Improve RedHat support
Fix the rpm key and the repos integration.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-04 12:18:17 +02:00
Leseb 36dd022530 Merge pull request #117 from leseb/bootstrap-ansible
Add a script to bootstrap Ansible
2014-09-03 15:42:16 +02:00
Sébastien Han 92409cd6ee Add a script to bootstrap Ansible
For deployments that are not on Vagrant, we need to install Ansible on
the host.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-03 15:41:02 +02:00
Leseb 3f918dd073 Merge pull request #116 from leseb/use-weird-subnet-range
Use a very unlikely subnet address for Vagrant
2014-09-03 00:15:03 +02:00
Sébastien Han 83be67cd54 Use a very unlikely subnet address for Vagrant
Since 192.168.0.0/24 is very commong and might overlap with some
existing networks on your laptop, using another subnet like '42' is less
bound to happen.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-03 00:13:07 +02:00
Leseb 91c6e06ac5 Merge pull request #115 from leseb/fix-osd-weight
Fix OSD weight and device size
2014-09-03 00:11:41 +02:00
Sébastien Han 6f17371632 Fix OSD weight and device size
Because of the following bug: http://tracker.ceph.com/issues/8551
If we use a disk file size of 1GB the OSD weight calculation ends up
being 0. Thus no data will be stored on any OSD.
Increasing the disk file size up to 11GB (we save some filesystem
overhead since the calculation is based on df thus 11GB is safer than
10GB). Because we significantly increased the size of the disk files we
now only create 2 devices per OSD host.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-03 00:08:06 +02:00
Leseb c9618b1470 Merge pull request #114 from leseb/fix-osd-option
Fix OSD update during startup
2014-09-03 00:06:12 +02:00
Sébastien Han d0403b820e Fix OSD update during startup
Proviously we used osd_crush_update_on_start: true, this was interpreted
by Ansible as a boolean and appeared as 'True' inside the Ceph configuration
file. However the Ceph's init script is looking for 'true'.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-03 00:04:23 +02:00
Leseb dd6f05c989 Merge pull request #113 from leseb/ceph-dev-version-support
Add developement packages support
2014-09-02 02:39:36 +02:00
Sébastien Han 4196de25d4 Add developement packages support
This commits introduces the support of the developpement branches of
Ceph. You can now install Ceph from master.
The behavior is done through 2 new options:

* ceph_stable: true will use the stable branch
* ceph_dev: true will use the dev branch

For the dev packages don't forget to set the branch that you want to
use.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-02 02:37:18 +02:00
Leseb 262a6b999b Merge pull request #112 from leseb/fix-options
Fix some missing option declaration
2014-08-30 02:59:23 +02:00
Sébastien Han 7e591a4cce Fix some missing option declaration
Missing decleration and cosmetic.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-08-30 02:58:27 +02:00
Leseb dba501311a Merge pull request #111 from leseb/fix-handler-ceph-restart
Fix restart on config change handler
2014-08-30 02:35:38 +02:00
Sébastien Han b81392d1c9 Fix restart on config change handler
Prior to this patch, the first match was winning and the playbook wasn't
doing any difference both "restart ceph", adding a distro filtrer fixes
this.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-08-30 02:34:11 +02:00
Sébastien Han ec6d4ddaba Fix updatedb disable
In some system the command doens't exist and fail to run the playbook.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-08-30 02:29:07 +02:00
Leseb 315bff5a39 Merge pull request #109 from leseb/ceph-conf-debug-log
Add more common options
2014-08-30 02:27:37 +02:00
Sébastien Han e2e774d516 Add more common options
Extend settings support.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-08-30 02:26:40 +02:00
Leseb d611e95c7f Merge pull request #108 from leseb/change-updatedb
Disable updatedb OSD directory parsing
2014-08-21 14:21:55 +02:00
Sébastien Han b3889c4442 Disable updatedb OSD directory parsing
It has been reported a couple of months ago by Dan van der Ster from
CERN that updatedb was consumming 100% of CPU while parsing system's
directories. Indeed the process was parsing the OSD PG directories that
might contains billions of objects.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-08-21 14:21:05 +02:00
Leseb e2599556b9 Merge pull request #106 from leseb/restart-daemons-on-config-change
Restart Ceph service after a configuration change
2014-08-20 14:50:26 +02:00
Sébastien Han 0aa9dea281 Restart Ceph service after a configuration change
After a change is made on the configuration file we must restart the
Ceph services. I also added a check that verifies if a socker exists
because during the first play there are no services running. We check if
a socket exists, if not we don't try to restart the services, if it
exists we can restart them.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-08-20 14:04:34 +02:00
Leseb ff671629ee Merge pull request #104 from psy-q/master
Fix typo dependancies -> dependencies
2014-08-20 11:04:21 +02:00
Ramón Cahenzli f562e4d6fa Fix typo dependancies -> dependencies 2014-08-20 10:57:14 +02:00
Leseb 06585ced93 Merge pull request #103 from josephglanville/master
Introduce VMware Fusion Vagrant support
2014-08-18 11:19:02 +02:00
Joseph Glanville e562303c03 Introduce VMware Fusion Vagrant support
* Use a box that supports all providers
* Fix hdd creation so it doesn't call customize more than once
* Introduce method to create vmdks
* Add provider customization for VMware Fusion
2014-08-16 19:06:29 +10:00
Sébastien Han 80d5040ba7 Merge branch 'Sysnove-fix_template_path' 2014-08-14 14:30:47 +02:00
Sébastien Han f4e8173a50 Merge branch 'fix_template_path' of https://github.com/Sysnove/ceph-ansible into Sysnove-fix_template_path
Conflicts:
	roles/ceph-common/tasks/Debian.yml
	roles/ceph-common/tasks/RedHat.yml
2014-08-14 14:30:33 +02:00
Leseb 17469b4b5e Merge pull request #102 from leseb/fix-vars
Fix some variables
2014-08-14 14:10:05 +02:00
Sébastien Han bdb27a16a8 Fix some variables
Couple of fixes

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-08-14 14:08:52 +02:00
Leseb ec6134e292 Merge pull request #100 from pb-it/master
Fix for devices like /dev/cciss/c0d0, /dev/xvda
2014-07-23 16:53:57 +02:00
Piotr Bak 9a42f9d5bd Fix for devices like /dev/cciss/c0d0, /dev/xvda 2014-07-18 16:43:00 +02:00
Alexis Lahouze 16711d63df Fixed template path. 2014-07-14 15:11:27 +02:00