]>
git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
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>
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
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
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>
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>
Leseb [Sun, 1 May 2016 14:42:54 +0000 (16:42 +0200)]
Merge pull request #743 from ceph/centos-install
ansible-install: allow CentOS
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>
Leseb [Fri, 29 Apr 2016 14:23:13 +0000 (09:23 -0500)]
Merge pull request #742 from dang/restapi
Allow RESTAPI to be optional
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>
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
Leseb [Thu, 28 Apr 2016 19:45:37 +0000 (14:45 -0500)]
Merge pull request #733 from jimcurtis/master
docker: fixes for OpenStack VMs
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
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>
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
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>
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>
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>
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>
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>
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>
Ben England [Wed, 27 Apr 2016 17:36:32 +0000 (13:36 -0400)]
requested format cleanup
Jim Curtis [Wed, 27 Apr 2016 17:31:27 +0000 (10:31 -0700)]
docker: typo in comment
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>
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>
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>
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>
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>
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
Ben England [Tue, 26 Apr 2016 17:01:01 +0000 (13:01 -0400)]
cleanup /tmp/rh-storage-repo so newer repos are actually installed
Jim Curtis [Tue, 26 Apr 2016 15:20:02 +0000 (08:20 -0700)]
docker: fixes for OpenStack VMs
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
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
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
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
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
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>
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
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>
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>
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>
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
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>
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
James Saint-Rossy [Mon, 18 Apr 2016 14:49:35 +0000 (10:49 -0400)]
Updated version compare to 0.84.0 per laseb comment
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
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>
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>
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
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
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.
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>
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
James Saint-Rossy [Wed, 13 Apr 2016 01:26:59 +0000 (21:26 -0400)]
fixed handling of new ceph_version
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
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
Ben England [Tue, 12 Apr 2016 13:49:44 +0000 (09:49 -0400)]
devices var is defined in context of osds role
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
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>
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>
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
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
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
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
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
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>
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>
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`.
Ben England [Mon, 11 Apr 2016 20:53:45 +0000 (16:53 -0400)]
this is how ceph-disk partition really looks
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>
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>
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
James Saint-Rossy [Sat, 9 Apr 2016 18:40:00 +0000 (14:40 -0400)]
Rebasing fork to account for upstream commits
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
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>
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
Ben England [Fri, 8 Apr 2016 17:01:11 +0000 (13:01 -0400)]
rebased
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
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>
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
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>
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
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>
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
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>
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
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
Ben England [Wed, 6 Apr 2016 19:58:17 +0000 (15:58 -0400)]
more robust, simpler, idempotent
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
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
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
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
Ben England [Wed, 6 Apr 2016 01:33:05 +0000 (21:33 -0400)]
create /etc/sysconfig/ceph if it doesn't already exist
Ben England [Wed, 6 Apr 2016 01:11:37 +0000 (21:11 -0400)]
fix when clauses for installation of ceph RPM
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.
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
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>
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
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>
Sébastien Han [Tue, 5 Apr 2016 14:22:29 +0000 (16:22 +0200)]
ceph-common: change the pool_default_size to 3
3 has been the default since Firefly I believe so we should stick with
this value.
Signed-off-by: Sébastien Han <seb@redhat.com>
James Saint-Rossy [Mon, 4 Apr 2016 22:19:49 +0000 (18:19 -0400)]
Cleanup is_ceph_infernalis logic