]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
9 years agoGet the correct OSD ID when the cluster name includes numbers 750/head
Andrew Schoen [Tue, 3 May 2016 19:47:47 +0000 (14:47 -0500)]
Get the correct OSD ID when the cluster name includes numbers

If the ceph cluster name includes numbers, the grep used to find the OSD
IDs from /var/lib/ceph/osd/ would also return the numbers that were in
the cluster name.

For example, if the cluster was named 'mine123' and there was only one
OSD on the node, then the task that finds the OSD IDs would return
'123' and '0'.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoMerge pull request #746 from dang/docker-fixes
Leseb [Mon, 2 May 2016 16:53:06 +0000 (18:53 +0200)]
Merge pull request #746 from dang/docker-fixes

Docker fixes and cleanups

9 years agoDocker fixes and cleanups 746/head
Daniel Gryniewicz [Mon, 2 May 2016 14:33:16 +0000 (10:33 -0400)]
Docker fixes and cleanups

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
9 years agoMerge pull request #744 from ceph/take-over
Leseb [Mon, 2 May 2016 14:43:41 +0000 (16:43 +0200)]
Merge pull request #744 from ceph/take-over

take over an existing cluster with ceph ansible

9 years agoMerge pull request #745 from ceph/dev-package
Leseb [Mon, 2 May 2016 13:05:31 +0000 (15:05 +0200)]
Merge pull request #745 from ceph/dev-package

ceph-common: install ceph-mon/osd for ceph dev

9 years agoceph-common: install ceph-mon/osd for ceph dev 745/head
Sébastien Han [Mon, 2 May 2016 12:18:33 +0000 (14:18 +0200)]
ceph-common: install ceph-mon/osd for ceph dev

Since developement versions of Ceph are after infernalis a package split
happened. So basically ceph-mon, ceph-osd, ceph-mds need to be
installed.

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agotake over an existing cluster with ceph ansible 744/head
Sébastien Han [Sun, 1 May 2016 14:46:28 +0000 (16:46 +0200)]
take over an existing cluster with ceph ansible

Introducing a playbook helper to control a ceph cluster that was not
deployed with ceph ansible.
The procedure is rather simple. If the cluster was deployed with the
following project there won’t be any issue:

* Ceph Deploy
* Puppet Ceph
* Chef Ceph
* Any other deployment tool that relies on ceph-disk

The procedure comes as fellow:

1. Install Ansible and add your monitors and osds hosts in it. For more
detailed information you can read the Ceph Ansible Wiki
2. Set  generate_fsid: false in group_vars
3. Get your current cluster fsid with ceph fsid and set cluster_fsid
accordingly in group_vars
4. Run the playbook called: take-over-existing-cluster.yml like this
ansible-playbook take-over-existing-cluster.yml.
5. Eventually run Ceph Ansible to validate everything by doing:
ansible-playbook site.yml.

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #743 from ceph/centos-install
Leseb [Sun, 1 May 2016 14:42:54 +0000 (16:42 +0200)]
Merge pull request #743 from ceph/centos-install

ansible-install: allow CentOS

9 years agoansible-install: allow CentOS 743/head
Sébastien Han [Sun, 1 May 2016 14:42:12 +0000 (16:42 +0200)]
ansible-install: allow CentOS

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #742 from dang/restapi
Leseb [Fri, 29 Apr 2016 14:23:13 +0000 (09:23 -0500)]
Merge pull request #742 from dang/restapi

Allow RESTAPI to be optional

9 years agoAllow RESTAPI to be optional 742/head
Daniel Gryniewicz [Fri, 29 Apr 2016 14:07:10 +0000 (10:07 -0400)]
Allow RESTAPI to be optional

When running via Vagrant, rather than always starting RESTAPI on each
monitor, make it optional via a configuration option in
vagrant_variables.yml.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
9 years agoMerge pull request #734 from bengland2/cleanup-tmp-rh-storage
Leseb [Thu, 28 Apr 2016 19:46:04 +0000 (14:46 -0500)]
Merge pull request #734 from bengland2/cleanup-tmp-rh-storage

cleanup /tmp/rh-storage-repo so newer repos are actually installed

9 years agoMerge pull request #733 from jimcurtis/master
Leseb [Thu, 28 Apr 2016 19:45:37 +0000 (14:45 -0500)]
Merge pull request #733 from jimcurtis/master

docker: fixes for OpenStack VMs

9 years agoMerge pull request #739 from ceph/use-package-split
Leseb [Thu, 28 Apr 2016 14:54:02 +0000 (09:54 -0500)]
Merge pull request #739 from ceph/use-package-split

Adds a use_server_package_split var

9 years agoAdds a use_server_package_split var 739/head
Andrew Schoen [Wed, 27 Apr 2016 21:10:39 +0000 (16:10 -0500)]
Adds a use_server_package_split var

This will allow a user to conditionally install the ceph package on rpm
based systems. Installing this package is not required or wanted in
versions passed infernalis.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoMerge pull request #737 from ceph/issue-736
Leseb [Thu, 28 Apr 2016 14:07:59 +0000 (09:07 -0500)]
Merge pull request #737 from ceph/issue-736

Define readable vars for Ceph version comparisons

9 years agoceph-rgw: port start_radosgw task to use new ceph version facts 737/head
Alfredo Deza [Wed, 27 Apr 2016 14:51:15 +0000 (10:51 -0400)]
ceph-rgw: port start_radosgw task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-rbd-mirror: port start_rbd_mirror task to use new ceph version facts
Alfredo Deza [Wed, 27 Apr 2016 14:48:46 +0000 (10:48 -0400)]
ceph-rbd-mirror: port start_rbd_mirror task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-osd: port activate_osds task to use new ceph version facts
Alfredo Deza [Wed, 27 Apr 2016 14:43:09 +0000 (10:43 -0400)]
ceph-osd: port activate_osds  task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-mon: port start_monitor task to use new ceph version facts
Alfredo Deza [Wed, 27 Apr 2016 14:41:39 +0000 (10:41 -0400)]
ceph-mon: port start_monitor task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-mds: port pre_requisite task to use new ceph version facts
Alfredo Deza [Wed, 27 Apr 2016 14:39:57 +0000 (10:39 -0400)]
ceph-mds: port pre_requisite task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-common: port main handler to use new ceph version facts
Alfredo Deza [Wed, 27 Apr 2016 14:34:08 +0000 (10:34 -0400)]
ceph-common: port main handler to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agorequested format cleanup 734/head
Ben England [Wed, 27 Apr 2016 17:36:32 +0000 (13:36 -0400)]
requested format cleanup

9 years agodocker: typo in comment 733/head
Jim Curtis [Wed, 27 Apr 2016 17:31:27 +0000 (10:31 -0700)]
docker: typo in comment

9 years agoceph-mon: port deploy_monitors task to use new ceph version facts
Alfredo Deza [Wed, 27 Apr 2016 14:01:02 +0000 (10:01 -0400)]
ceph-mon: port deploy_monitors task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-common: port main task to use new ceph version facts
Alfredo Deza [Wed, 27 Apr 2016 13:50:10 +0000 (09:50 -0400)]
ceph-common: port main task to use new ceph version facts

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agocreate is_before_RELEASE vars as well
Alfredo Deza [Wed, 27 Apr 2016 13:28:17 +0000 (09:28 -0400)]
create is_before_RELEASE vars as well

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-common: include the facts task always
Alfredo Deza [Wed, 27 Apr 2016 13:19:32 +0000 (09:19 -0400)]
ceph-common: include the facts task always

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoceph-common: create a facts task to define ceph versions
Alfredo Deza [Wed, 27 Apr 2016 13:17:56 +0000 (09:17 -0400)]
ceph-common: create a facts task to define ceph versions

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agodocker: Fix ordering of rgw docker tasks so directory is created befor fetch
Jim Curtis [Tue, 26 Apr 2016 23:34:57 +0000 (16:34 -0700)]
docker: Fix ordering of rgw docker tasks so directory is created befor fetch

9 years agocleanup /tmp/rh-storage-repo so newer repos are actually installed
Ben England [Tue, 26 Apr 2016 17:01:01 +0000 (13:01 -0400)]
cleanup /tmp/rh-storage-repo so newer repos are actually installed

9 years agodocker: fixes for OpenStack VMs
Jim Curtis [Tue, 26 Apr 2016 15:20:02 +0000 (08:20 -0700)]
docker: fixes for OpenStack VMs

9 years agoMerge pull request #731 from ivotron/issue-730
Leseb [Mon, 25 Apr 2016 19:56:52 +0000 (14:56 -0500)]
Merge pull request #731 from ivotron/issue-730

bind-mounts /dev in osd containers

9 years agoMerge pull request #724 from ivotron/issue-723
Leseb [Mon, 25 Apr 2016 19:46:07 +0000 (14:46 -0500)]
Merge pull request #724 from ivotron/issue-723

Modifies docker image variable being referenced

9 years agobind-mounts /dev in osd containers 731/head
Ivo Jimenez [Mon, 25 Apr 2016 16:42:06 +0000 (11:42 -0500)]
bind-mounts /dev in osd containers

This is needed in order to make ceph-disk work

9 years agoModifies docker image variable being reference 724/head
Ivo Jimenez [Sun, 24 Apr 2016 21:32:17 +0000 (14:32 -0700)]
Modifies docker image variable being reference

These reference ceph_mon_docker_username instead of the corresponding
one

9 years agoMerge pull request #721 from ceph/fix-admin-socket-warning
Leseb [Fri, 22 Apr 2016 23:00:23 +0000 (01:00 +0200)]
Merge pull request #721 from ceph/fix-admin-socket-warning

change defaults for rbd_client_directories and rbd_client_admin_socket_path

9 years agodefault rbd_client_log_path to /var/log/ceph 721/head
Andrew Schoen [Fri, 22 Apr 2016 17:39:16 +0000 (12:39 -0500)]
default rbd_client_log_path to /var/log/ceph

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoMerge pull request #722 from ceph/rgw-civet-listen
Leseb [Fri, 22 Apr 2016 16:14:29 +0000 (18:14 +0200)]
Merge pull request #722 from ceph/rgw-civet-listen

ceph-rgw: ability to bind civetweb on an IP

9 years agodefault rbd_client_admin_socket_path to /var/run/ceph
Andrew Schoen [Fri, 22 Apr 2016 15:59:00 +0000 (10:59 -0500)]
default rbd_client_admin_socket_path to /var/run/ceph

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agodefault rbd_client_directories to true
Andrew Schoen [Fri, 22 Apr 2016 15:56:30 +0000 (10:56 -0500)]
default rbd_client_directories to true

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoceph-rgw: ability to bind civetweb on an IP 722/head
Sébastien Han [Fri, 22 Apr 2016 15:44:56 +0000 (17:44 +0200)]
ceph-rgw: ability to bind civetweb on an IP

Introducing a new config option: `radosgw_civetweb_bind_ip` which points
to the `ansible_default_ipv4` by default. You can override this
variable. Use ansible facts to put a proper value.

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #720 from ceph/mon-addr-fix
Leseb [Thu, 21 Apr 2016 14:55:45 +0000 (16:55 +0200)]
Merge pull request #720 from ceph/mon-addr-fix

correctly set mon addr when monitor_interface is defined in group_vars

9 years agocorrectly set mon addr when monitor_interface is defined in group_vars 720/head
Andrew Schoen [Thu, 21 Apr 2016 14:09:16 +0000 (09:09 -0500)]
correctly set mon addr when monitor_interface is defined in group_vars

This fixes the ceph.conf template so that it will look for an inventory
defined value for monitor_interface or for monitor_interface defined in
a group_vars file.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoMerge pull request #664 from jsaintrocc/master
Leseb [Tue, 19 Apr 2016 08:09:48 +0000 (10:09 +0200)]
Merge pull request #664 from jsaintrocc/master

Add infernalis to list of stable releases comment

9 years agoUpdated version compare to 0.84.0 per laseb comment 664/head
James Saint-Rossy [Mon, 18 Apr 2016 14:49:35 +0000 (10:49 -0400)]
Updated version compare to 0.84.0 per laseb comment

9 years agoMerge pull request #715 from rootfs/jewel v1.0.5
Leseb [Fri, 15 Apr 2016 08:55:42 +0000 (10:55 +0200)]
Merge pull request #715 from rootfs/jewel

some fixes to run containers on Atomic

9 years agoset path to find mon and osd systemd unit file templates 715/head
Huamin Chen [Thu, 14 Apr 2016 21:57:27 +0000 (21:57 +0000)]
set path to find mon and osd systemd unit file templates

Signed-off-by: Huamin Chen <hchen@redhat.com>
9 years agofix deployment on Atomic
Huamin Chen [Thu, 14 Apr 2016 13:41:05 +0000 (13:41 +0000)]
fix deployment on Atomic

Signed-off-by: Huamin Chen <hchen@redhat.com>
9 years agoMerge pull request #713 from stpierre/fix-rbd-client-dirs
Leseb [Wed, 13 Apr 2016 20:25:59 +0000 (22:25 +0200)]
Merge pull request #713 from stpierre/fix-rbd-client-dirs

Fix creation of RBD client directories

9 years agoMerge pull request #712 from ceph/monitor-interface-not-defined
Leseb [Wed, 13 Apr 2016 20:19:33 +0000 (22:19 +0200)]
Merge pull request #712 from ceph/monitor-interface-not-defined

Check to see if hostvars[host]['monitor_interface'] is defined

9 years agoFix creation of RBD client directories 713/head
Chris St. Pierre [Wed, 13 Apr 2016 20:10:44 +0000 (15:10 -0500)]
Fix creation of RBD client directories

Need to use a template, not a bare variable name.

9 years agoCheck to see if hostvars[host]['monitor_interface'] is defined 712/head
Andrew Schoen [Wed, 13 Apr 2016 18:34:51 +0000 (13:34 -0500)]
Check to see if hostvars[host]['monitor_interface'] is defined

This fixes https://github.com/ceph/ceph-ansible/issues/711

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoMerge pull request #707 from cloudnull/ct_updates
Leseb [Wed, 13 Apr 2016 16:52:56 +0000 (18:52 +0200)]
Merge pull request #707 from cloudnull/ct_updates

Update the config_template plugin

9 years agofixed handling of new ceph_version
James Saint-Rossy [Wed, 13 Apr 2016 01:26:59 +0000 (21:26 -0400)]
fixed handling of new ceph_version

9 years agomoved string parsing of ceph version into ansbile for better error handling
James Saint-Rossy [Wed, 13 Apr 2016 01:08:42 +0000 (21:08 -0400)]
moved string parsing of ceph version into ansbile for better error handling

9 years agoMerge pull request #710 from bengland2/limit-autodiscover-check v1.0.4 v1.04
Leseb [Tue, 12 Apr 2016 15:01:04 +0000 (17:01 +0200)]
Merge pull request #710 from bengland2/limit-autodiscover-check

purge-cluster - fix osd_auto_discovery check

9 years agodevices var is defined in context of osds role 710/head
Ben England [Tue, 12 Apr 2016 13:49:44 +0000 (09:49 -0400)]
devices var is defined in context of osds role

9 years agoMerge pull request #705 from ceph/no-agent-role-test
Leseb [Tue, 12 Apr 2016 12:05:33 +0000 (14:05 +0200)]
Merge pull request #705 from ceph/no-agent-role-test

remove agent role, no packages for it upstream yet

9 years agoremove rbd-mirror as well from testing. No packages are available yet 705/head
Alfredo Deza [Tue, 12 Apr 2016 11:38:13 +0000 (07:38 -0400)]
remove rbd-mirror as well from testing. No packages are available yet

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoremove coreos from default testing as well
Alfredo Deza [Tue, 12 Apr 2016 11:17:35 +0000 (07:17 -0400)]
remove coreos from default testing as well

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoMerge pull request #708 from ceph/docker-img
Leseb [Tue, 12 Apr 2016 10:08:35 +0000 (12:08 +0200)]
Merge pull request #708 from ceph/docker-img

docker: do not hardcode image and user name

9 years agoMerge pull request #706 from fultonj/patch-1
Leseb [Tue, 12 Apr 2016 10:07:45 +0000 (12:07 +0200)]
Merge pull request #706 from fultonj/patch-1

Balance tags on <your_host

9 years agoMerge pull request #703 from ceph/issue-670
Leseb [Tue, 12 Apr 2016 10:05:28 +0000 (12:05 +0200)]
Merge pull request #703 from ceph/issue-670

if ceph-disk fails to activate an OSD then bubble up the error

9 years agoMerge pull request #688 from bengland2/safer-disk-zap
Leseb [Tue, 12 Apr 2016 10:04:39 +0000 (12:04 +0200)]
Merge pull request #688 from bengland2/safer-disk-zap

low-priority - more robust, simpler, idempotent purge-cluster.yml

9 years agoMerge pull request #696 from stpierre/dedup-rbd-client-dirs
Leseb [Tue, 12 Apr 2016 10:03:56 +0000 (12:03 +0200)]
Merge pull request #696 from stpierre/dedup-rbd-client-dirs

Deduplicate RBD client directory creation

9 years agodocker: do not hardcode image and user name 708/head
Sébastien Han [Tue, 12 Apr 2016 10:01:53 +0000 (12:01 +0200)]
docker: do not hardcode image and user name

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoUpdate the config_template plugin 707/head
Kevin Carter [Tue, 12 Apr 2016 04:28:40 +0000 (23:28 -0500)]
Update the config_template plugin

These changes address 2 issues:

* The config template plugin in v1 mode was not respecting a list
  of integers and would cause a stacktrace because the ConfigParese
  module expects everything written to be a string.
* The config template plugin in v2 mode was not properly handingly
  the multi-string-op type due to an oversight in the ``_option_write``
  method.

With these updates the config template is now able to better support
all of the potential options that could be thrown at it when writing
an INI config file.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
9 years agoBalance tags on <your_host 706/head
John Fulton [Tue, 12 Apr 2016 02:25:53 +0000 (22:25 -0400)]
Balance tags on <your_host

Third of occurrence of <your_host> didn't have a closing tag. This is a tiny change to add the he missing '>'.

This will let people quickly update this file with sed. For example: `sed s/\<your_host\>/192.168.1.41/g -i cluster-maintenance.yml`.

9 years agothis is how ceph-disk partition really looks 688/head
Ben England [Mon, 11 Apr 2016 20:53:45 +0000 (16:53 -0400)]
this is how ceph-disk partition really looks

9 years agoremove agent role, no packages for it upstream yet
Alfredo Deza [Mon, 11 Apr 2016 19:48:29 +0000 (15:48 -0400)]
remove agent role, no packages for it upstream yet

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoif ceph-disk fails to activate an OSD then bubble up the error 703/head
Alfredo Deza [Mon, 11 Apr 2016 14:28:03 +0000 (10:28 -0400)]
if ceph-disk fails to activate an OSD then bubble up the error

Signed-off-by: Alfredo Deza <adeza@redhat.com>
9 years agoRemoved infernalis workaround because ceph_stable_releases now includes it by default
James Saint-Rossy [Sat, 9 Apr 2016 21:21:36 +0000 (17:21 -0400)]
Removed infernalis workaround because ceph_stable_releases now includes it by default

9 years agoRebasing fork to account for upstream commits
James Saint-Rossy [Sat, 9 Apr 2016 18:40:00 +0000 (14:40 -0400)]
Rebasing fork to account for upstream commits

9 years agoMerge pull request #701 from ceph/conf-fixes
Leseb [Fri, 8 Apr 2016 20:00:32 +0000 (22:00 +0200)]
Merge pull request #701 from ceph/conf-fixes

look at monitor_interface in hostvars when choosing interface or address

9 years agolook at monitor_interface in hostvars when choosing interface or address 701/head
Andrew Schoen [Fri, 8 Apr 2016 19:23:12 +0000 (14:23 -0500)]
look at monitor_interface in hostvars when choosing interface or address

This fixes a bug where monitor_interface might be set in your inventory
file and not by using group_vars or --extra-vars causing the template to
use the default address of 0.0.0.0 instead of the defined
monitor_interface.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
9 years agoDeduplicate RBD client directory creation 696/head
Chris St. Pierre [Thu, 7 Apr 2016 14:11:50 +0000 (09:11 -0500)]
Deduplicate RBD client directory creation

Instead of creating the RBD client socket path three different places
in three different ways, this creates it once. Ceph on OpenStack users
have the option to customize the permissions of the RBD client
directories.

Fixes #687

9 years agorebased
Ben England [Fri, 8 Apr 2016 17:01:11 +0000 (13:01 -0400)]
rebased

9 years agoMerge pull request #700 from ceph/fix-readme-rbdmirror
Leseb [Fri, 8 Apr 2016 10:32:30 +0000 (12:32 +0200)]
Merge pull request #700 from ceph/fix-readme-rbdmirror

rbd-mirror: fix readme title

9 years agorbd-mirror: fix readme title 700/head
Sébastien Han [Fri, 8 Apr 2016 10:32:05 +0000 (12:32 +0200)]
rbd-mirror: fix readme title

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #699 from ceph/contrib-rbdmirror
Leseb [Fri, 8 Apr 2016 10:31:11 +0000 (12:31 +0200)]
Merge pull request #699 from ceph/contrib-rbdmirror

contrib: update with ceph-rbd-mirror

9 years agocontrib: update with ceph-rbd-mirror 699/head
Sébastien Han [Fri, 8 Apr 2016 10:30:14 +0000 (12:30 +0200)]
contrib: update with ceph-rbd-mirror

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #698 from ceph/rbdmirror-license
Leseb [Fri, 8 Apr 2016 10:18:35 +0000 (12:18 +0200)]
Merge pull request #698 from ceph/rbdmirror-license

ceph-rbd-mirorr: add license file

9 years agoceph-rbd-mirorr: add license file 698/head
Sébastien Han [Fri, 8 Apr 2016 10:17:46 +0000 (12:17 +0200)]
ceph-rbd-mirorr: add license file

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #678 from ceph/rbd-mirror
Leseb [Fri, 8 Apr 2016 10:12:30 +0000 (12:12 +0200)]
Merge pull request #678 from ceph/rbd-mirror

ceph-rbd-mirror: add new role

9 years agoceph-rbd-mirror: add new role 678/head
Sébastien Han [Sun, 3 Apr 2016 22:35:09 +0000 (00:35 +0200)]
ceph-rbd-mirror: add new role

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #697 from fultonj/rolling_update_sysvinit
Leseb [Fri, 8 Apr 2016 09:33:17 +0000 (11:33 +0200)]
Merge pull request #697 from fultonj/rolling_update_sysvinit

sysvinit changes to rolling update playbook

9 years agoThis update has the following changes for the rolling update playbook. 697/head
John Fulton [Fri, 8 Apr 2016 03:55:15 +0000 (23:55 -0400)]
This update has the following changes for the rolling update playbook.

1. Change how sysvinit ceph is determined to be enabled

For mons, the playbook checks if sysvinit is enabled by trying to
stat /var/lib/ceph/mon/ceph-{{ ansible_hostname }}/sysvinit [1].
However, that file is not created when a monitor is configured to
use sysvinit, instead, Ansible's service module is used [2]. Ansible
2.0 can verify if a service is enabled and does this by checking for
a glob, in this context it would be '/etc/rc?.d/S??ceph' [3]. Because
Ansible 1.9 does not support this feature, this change updates
rolling_update.yml by checking if sysvinit is enabled by having stat
glob for the same pattern and following the symlink. This is done only
for the mons.

2. Change how sysvinit ceph is restarted

The playbook passes the argument "mon" to the sysv init script
but, the init script does not necessarily take that argument and
it failed when tested on a RHEL7 system. However, dropping the
argument and just using Ansible's service module for state=restarted
worked so this change does not have this line for when
monsysvinit.stat.exists. A similar change is in this pull request
for the OSD restart (removing args=osd).

A second ceph mon restart command is run regardless of any conditions
being met. I am not sure why the service is restarted in the case of
upstart or sysvinit and then restarted again. I am going to assume
there is a subtle reason for this and not touch this second run but I
added a condition so that when ansible_os_family is Red Hat, then mon
is not passed as an argument, otherwise it is restarted as was already
in place.

[1] https://github.com/ceph/ceph-ansible/blob/v1.0.3/rolling_update.yml#L32-L33
[2] https://github.com/ceph/ceph-ansible/blob/v1.0.3/roles/ceph-mon/tasks/start_monitor.yml#L42-L45
[3] https://github.com/ansible/ansible-modules-core/blob/stable-2.0/system/service.py#L492-L493

9 years agomore robust, simpler, idempotent
Ben England [Wed, 6 Apr 2016 19:58:17 +0000 (15:58 -0400)]
more robust, simpler, idempotent

9 years agoMerge pull request #684 from bengland2/when-hammer-try2
Leseb [Wed, 6 Apr 2016 17:38:05 +0000 (19:38 +0200)]
Merge pull request #684 from bengland2/when-hammer-try2

fix when clauses for installation of ceph RPM

9 years agoSebastien's suggestion - add infernalis to list of releases with no separate ceph... 684/head
Ben England [Wed, 6 Apr 2016 17:14:24 +0000 (13:14 -0400)]
Sebastien's suggestion - add infernalis to list of releases with no separate ceph-mon or ceph-osd

9 years agoMerge pull request #685 from bengland2/create-sysconfig-ceph
Leseb [Wed, 6 Apr 2016 11:21:00 +0000 (13:21 +0200)]
Merge pull request #685 from bengland2/create-sysconfig-ceph

create /etc/sysconfig/ceph if it doesn't already exist

9 years agoMerge pull request #683 from stpierre/fix-config-template-docker
Leseb [Wed, 6 Apr 2016 11:15:47 +0000 (13:15 +0200)]
Merge pull request #683 from stpierre/fix-config-template-docker

Fix mis-use of config_template in docker tasks

9 years agocreate /etc/sysconfig/ceph if it doesn't already exist 685/head
Ben England [Wed, 6 Apr 2016 01:33:05 +0000 (21:33 -0400)]
create /etc/sysconfig/ceph if it doesn't already exist

9 years agofix when clauses for installation of ceph RPM
Ben England [Wed, 6 Apr 2016 01:11:37 +0000 (21:11 -0400)]
fix when clauses for installation of ceph RPM

9 years agoFix mis-use of config_template in docker tasks 683/head
Chris St. Pierre [Tue, 5 Apr 2016 17:09:09 +0000 (12:09 -0500)]
Fix mis-use of config_template in docker tasks

As written, generating the config file for ceph-mon in Docker yielded:

ERROR: config_template is not a legal parameter in an Ansible task or
handler

This fixes that error condition.

9 years agoMerge pull request #682 from ceph/change-pool-min-size
Leseb [Tue, 5 Apr 2016 15:03:25 +0000 (17:03 +0200)]
Merge pull request #682 from ceph/change-pool-min-size

ceph-common: let ceph handle pool_default_min_size

9 years agoceph-common: let ceph handle pool_default_min_size 682/head
Sébastien Han [Tue, 5 Apr 2016 15:01:49 +0000 (17:01 +0200)]
ceph-common: let ceph handle pool_default_min_size

We now set the value to 0, which means no specific default; ceph will
use size-size/2

Signed-off-by: Sébastien Han <seb@redhat.com>
9 years agoMerge pull request #681 from ceph/change-pool-default-size
Leseb [Tue, 5 Apr 2016 14:26:17 +0000 (16:26 +0200)]
Merge pull request #681 from ceph/change-pool-default-size

Change pool default size

9 years agovagrant use pool_default_size to 2 681/head
Sébastien Han [Tue, 5 Apr 2016 14:24:21 +0000 (16:24 +0200)]
vagrant use pool_default_size to 2

For dev envs it is easir to use a replica count of 2 instead of 3.

Signed-off-by: Sébastien Han <seb@redhat.com>