Commit Graph

177 Commits (07216bf88321a3ee7325a6098789ef38253faf3f)
 

Author SHA1 Message Date
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
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
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
Leseb 4051e49932 Merge pull request #97 from eltom/patch-2
Update RedHat.yml
2014-07-12 14:44:51 +02:00
Leseb 0491f0750c Merge pull request #96 from eltom/patch-1
Update Debian.yml
2014-07-12 14:44:32 +02:00
eltom e8c6b5cbf8 Update RedHat.yml
Path to Templatefile is wrong, which caused Error on Provisioning
2014-07-12 14:44:06 +02:00
eltom efbac01cbe Update Debian.yml
Path to Templatefile is wrong, which caused Error on Provisioning
2014-07-12 14:43:36 +02:00
Leseb 0e54d0f7f1 Merge pull request #95 from leseb/wip-rename-common
Rename roles' names
2014-07-08 15:40:50 +02:00
Sébastien Han 2fe0342708 Rename roles' names
I added a 'ceph-' prefix to all the roles related to Ceph. Since we are
about to push the roles into the Ansible Galaxy that will be easier when
we want to use these roles into a larger environement with other roles.

Fixes: #94

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-07-08 15:39:42 +02:00
Leseb 050a8d5dcc Merge pull request #87 from Sysnove/defaults
Defaults
2014-07-08 15:15:19 +02:00
Alexis Lahouze 9bc8842290 Added a main.yml in 'vars' directory to tell it is better to override using host or group vars. 2014-07-08 15:06:50 +02:00
Leseb be26352a2c Merge pull request #88 from Sysnove/hosts
Replaced all by the list of host groups to be able to run the playbook with non-ceph servers.
2014-07-08 14:12:22 +02:00
Alexis Lahouze d10d0747d5 Moved OSD directory variables into defaults. 2014-07-08 13:07:44 +02:00
Alexis Lahouze 642d2aea70 Added dummy variable because ansible is not happy when there is no variable in group_vars files. 2014-07-08 13:07:44 +02:00
Alexis Lahouze 1d2a66666f Moved variables into "defaults" directory of each role, and commented the ones in group_vars. 2014-07-08 13:07:44 +02:00
Leseb e8d60215cd Merge pull request #89 from Sysnove/partitions
Allow devices to be partition instead of disks
2014-07-08 10:27:11 +02:00
Alexis Lahouze 3e74f153a0 Fixed Engrish grammar. 2014-07-08 10:20:18 +02:00
Alexis Lahouze 7eeb895d3d Rolled back comment on filesystem creation. 2014-07-08 10:15:38 +02:00
Leseb 67ce4907e9 Merge pull request #93 from leseb/wip-package-key
Use a local key for package instead of downloading it
2014-07-03 16:26:50 +02:00