]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
7 years agoceph-rgw: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 15:01:00 +0000 (16:01 +0100)]
ceph-rgw: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-restapi: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 15:00:20 +0000 (16:00 +0100)]
ceph-restapi: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-rbd-mirror: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:59:26 +0000 (15:59 +0100)]
ceph-rbd-mirror: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-osd: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:58:32 +0000 (15:58 +0100)]
ceph-osd: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-mon: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:48:11 +0000 (15:48 +0100)]
ceph-mon: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-mgr: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:46:40 +0000 (15:46 +0100)]
ceph-mgr: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-mds: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:46:06 +0000 (15:46 +0100)]
ceph-mds: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-fetch-keys: Add support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:44:26 +0000 (15:44 +0100)]
ceph-fetch-keys: Add support for openSUSE Leap distributions

Add support for openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-config: Add support for the openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:39:07 +0000 (15:39 +0100)]
ceph-config: Add support for the openSUSE Leap distributions

Add support for the openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-client: Add support for the openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 14:38:01 +0000 (15:38 +0100)]
ceph-client: Add support for the openSUSE Leap distributions

Add support for the openSUSE Leap distributions

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-agent: Add support for the openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 10:19:31 +0000 (11:19 +0100)]
ceph-agent: Add support for the openSUSE Leap distributions

Add support for the openSUSE Leap distributions.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-common: Don't check for ceph_stable_release for distro packages
Markos Chandras [Fri, 13 Oct 2017 09:18:27 +0000 (10:18 +0100)]
ceph-common: Don't check for ceph_stable_release for distro packages

When we consume the distribution packages, we don't have the choise on
which version to install, so we shouldn't require that variable to be
set. Distributions normally provide only one version of Ceph in the
official repositories so we get whatever they provide.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoceph-common: Add initial support for openSUSE Leap distributions
Markos Chandras [Thu, 12 Oct 2017 13:55:20 +0000 (14:55 +0100)]
ceph-common: Add initial support for openSUSE Leap distributions

openSUSE Leap 42.3 provides support for Ceph Luminous in both the
distribution package and the latest available version in the OBS
repository so add these as the only available installation methods for
openSUSE.

Signed-off-by: Markos Chandras <mchandras@suse.de>
7 years agoMerge pull request #2145 from ceph/fix-autodiscover
Guillaume Abrioux [Wed, 8 Nov 2017 10:56:51 +0000 (11:56 +0100)]
Merge pull request #2145 from ceph/fix-autodiscover

osd: do not use dm when osd_auto_discovery

7 years agoosd: fix automatic prepare when auto_discover 2145/head
Guillaume Abrioux [Wed, 8 Nov 2017 07:47:39 +0000 (08:47 +0100)]
osd: fix automatic prepare when auto_discover

Use `devices` variable instead of `ansible_devices`, otherwise it means
we are not using the devices which have been 'auto discovered'

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoosd: do not use dm when osd_auto_discovery
Sébastien Han [Wed, 8 Nov 2017 00:33:10 +0000 (11:33 +1100)]
osd: do not use dm when osd_auto_discovery

The current code will also return lvm devices such as /dev/dm-2, this
kind of device type is not supported by ceph-disk at the moment. Now we
just ignore them.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2143 from ceph/fix_typo
Guillaume Abrioux [Tue, 7 Nov 2017 10:39:34 +0000 (11:39 +0100)]
Merge pull request #2143 from ceph/fix_typo

osd: fix a typo in roles/ceph-osd/defaults/main.yml

7 years agoosd: fix a typo in roles/ceph-osd/defaults/main.yml 2143/head
Guillaume Abrioux [Tue, 7 Nov 2017 08:48:29 +0000 (09:48 +0100)]
osd: fix a typo in roles/ceph-osd/defaults/main.yml

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2128 from ceph/mon_interface
Sébastien Han [Fri, 3 Nov 2017 12:05:51 +0000 (13:05 +0100)]
Merge pull request #2128 from ceph/mon_interface

config: fix monitor_interface when not passed in the inventory file | osd:  fix old jewel container activation

7 years agoMerge pull request #2129 from ceph/update_nightly_ci
Sébastien Han [Fri, 3 Nov 2017 11:26:12 +0000 (12:26 +0100)]
Merge pull request #2129 from ceph/update_nightly_ci

[skip ci] tests: sync with ceph/ceph-build for ceph-ansible-nightlies

7 years agoosd: enhance backward compatibility 2128/head
Sébastien Han [Thu, 2 Nov 2017 15:17:38 +0000 (16:17 +0100)]
osd: enhance backward compatibility

During the initial implementation of this 'old' thing we were falling
into this issue without noticing
https://github.com/moby/moby/issues/30341 and where blindly using --rm,
now this is fixed the prepare container disappears and thus activation
fail.
I'm fixing this for old jewel images.

Also this fixes the machine reboot case where the docker logs are
purgend. In the old scenario, we now store the log locally in the same
directory as the ceph-osd-run.sh script.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agotests: sync with ceph/ceph-build for ceph-ansible-nightlies 2129/head
Guillaume Abrioux [Fri, 27 Oct 2017 11:22:28 +0000 (13:22 +0200)]
tests: sync with ceph/ceph-build for ceph-ansible-nightlies

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoconfig: fix monitor_interface when not passed in the inventory file
Sébastien Han [Thu, 2 Nov 2017 13:53:46 +0000 (14:53 +0100)]
config: fix monitor_interface when not passed in the inventory file

Setting monitor_interface in group_vars/all.yml makes the
hostvars[host]['monitor_interface'] non-existing.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1507922
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2124 from ceph/lvm-setup-fix
Sébastien Han [Tue, 31 Oct 2017 15:51:16 +0000 (16:51 +0100)]
Merge pull request #2124 from ceph/lvm-setup-fix

test: when creating the /dev/sdc2 partition specify label as gpt

7 years agoMerge pull request #2123 from ceph/update_tests
Sébastien Han [Tue, 31 Oct 2017 15:47:41 +0000 (16:47 +0100)]
Merge pull request #2123 from ceph/update_tests

tests: followup on testing against ansible2.4

7 years agocommon: make the delegate_facts feature optional 2123/head
Guillaume Abrioux [Tue, 31 Oct 2017 13:39:29 +0000 (14:39 +0100)]
common: make the delegate_facts feature optional

Since we encountered issue with this on ansible2.2, this commit provide
the ability to enable or disable it regarding which ansible we are
running.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agotest: when creating the /dev/sdc2 partition specify label as gpt 2124/head
Andrew Schoen [Mon, 30 Oct 2017 20:31:04 +0000 (15:31 -0500)]
test: when creating the /dev/sdc2 partition specify label as gpt

ansible==2.4 requires that label be set to gpt, or it will be defaulted
to msdos.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #2122 from jprovaznik/template
Sébastien Han [Tue, 31 Oct 2017 14:30:50 +0000 (15:30 +0100)]
Merge pull request #2122 from jprovaznik/template

Include ganesha dbus config file

7 years agocontrib: skip ci and hightlight origin PR
Sébastien Han [Tue, 31 Oct 2017 13:43:29 +0000 (14:43 +0100)]
contrib: skip ci and hightlight origin PR

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoInclude ganesha dbus config file 2122/head
Jan Provaznik [Mon, 30 Oct 2017 09:20:01 +0000 (10:20 +0100)]
Include ganesha dbus config file

This file was (accidentally) not included in a previous
commit 87b1da09e7131ec2741f332fd72aaec8de65e526.

7 years agotests: add missing test for rbd
Guillaume Abrioux [Mon, 30 Oct 2017 18:44:56 +0000 (19:44 +0100)]
tests: add missing test for rbd

Add a missing test `test_rbd_mirror_service_is_running_from_luminous()`.
Also using bash -c "<cmd>" to make testinfra aware that later in
the upgrade process we are now running `luminous` ceph release so we
must skip the rbd tests related to `jewel` ceph release.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agodocs: update patterns containing version number
Guillaume Abrioux [Mon, 30 Oct 2017 14:49:51 +0000 (15:49 +0100)]
docs: update patterns containing version number

Update doc regarding last changes (new branch, ansible version, ...)

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agotests: followup on testing against ansible2.4
Guillaume Abrioux [Mon, 30 Oct 2017 13:45:59 +0000 (14:45 +0100)]
tests: followup on testing against ansible2.4

ceph-ansible is now being testing against ansible2.2 and ansible2.4. We
need to update tox.ini so we use the right version of testinfra
regarding which ansible version we are using.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2090 from ceph/ansible-2.4
Sébastien Han [Fri, 27 Oct 2017 15:39:05 +0000 (17:39 +0200)]
Merge pull request #2090 from ceph/ansible-2.4

[skip ci] Test ansible 2.4.1

7 years agoMerge pull request #2100 from ceph/lvm-bluestore
Sébastien Han [Fri, 27 Oct 2017 15:36:16 +0000 (17:36 +0200)]
Merge pull request #2100 from ceph/lvm-bluestore

ceph-volume lvm bluestore support

7 years agodocs add lvm bluestore examples 2100/head
Alfredo Deza [Fri, 27 Oct 2017 13:44:32 +0000 (09:44 -0400)]
docs add lvm bluestore examples

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-osd skip lvm creation if they are already in use
Alfredo Deza [Thu, 26 Oct 2017 23:05:52 +0000 (19:05 -0400)]
ceph-osd skip lvm creation if they are already in use

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoTest ansible 2.4.1 2090/head
Sébastien Han [Mon, 23 Oct 2017 10:03:01 +0000 (12:03 +0200)]
Test ansible 2.4.1

We now test with Ansible 2.4. We had to change testinfra's version since
only recent versions work with 2.4. See:
https://github.com/philpep/testinfra/issues/249

Closes: https://github.com/ceph/ceph-ansible/issues/2087
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2117 from ceph/rm-dup
Sébastien Han [Fri, 27 Oct 2017 11:49:52 +0000 (13:49 +0200)]
Merge pull request #2117 from ceph/rm-dup

default: remove dup variable

7 years agoMerge pull request #2118 from ceph/typo-purge
Sébastien Han [Fri, 27 Oct 2017 10:00:30 +0000 (12:00 +0200)]
Merge pull request #2118 from ceph/typo-purge

[skip ci]

7 years agoshrink-mon: fix typo in the code doc 2118/head
Sébastien Han [Fri, 27 Oct 2017 09:59:22 +0000 (11:59 +0200)]
shrink-mon: fix typo in the code doc

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agodefault: remove dup variable 2117/head
Sébastien Han [Fri, 27 Oct 2017 09:46:15 +0000 (11:46 +0200)]
default: remove dup variable

ceph_repository_type was declared multiple times. This commit fixes
this.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2071 from jtaleric/master
Sébastien Han [Fri, 27 Oct 2017 07:49:03 +0000 (09:49 +0200)]
Merge pull request #2071 from jtaleric/master

Docker image pull retry

7 years agoMerge pull request #2105 from major/really-fix-always-run
Sébastien Han [Fri, 27 Oct 2017 07:33:47 +0000 (09:33 +0200)]
Merge pull request #2105 from major/really-fix-always-run

Really fix always run

7 years agoMerge pull request #2110 from fultonj/issue/2092
Guillaume Abrioux [Thu, 26 Oct 2017 13:28:35 +0000 (15:28 +0200)]
Merge pull request #2110 from fultonj/issue/2092

Make acls and mode parameters of opentack_keys optional

7 years agoMake acls and mode parameters of opentack_keys optional 2110/head
John Fulton [Wed, 25 Oct 2017 23:46:02 +0000 (23:46 +0000)]
Make acls and mode parameters of opentack_keys optional

Only chmod or setfacl the requested keyring(s) in the
opentack_keys data structure when the mode or acls keys
of that data structure exist.

User may specify four permission combinations for the
keyring file(s): 1. only set ACL, 2. only set mode,
3. set neither mode nor ACL, 4. set mode and then ACL.

Fixes: #2092
7 years agoMerge pull request #2112 from ceph/remove-optional
Sébastien Han [Thu, 26 Oct 2017 12:23:10 +0000 (14:23 +0200)]
Merge pull request #2112 from ceph/remove-optional

[skip ci]

7 years agopurge: do not reboot by default 2112/head
Sébastien Han [Thu, 26 Oct 2017 12:18:38 +0000 (14:18 +0200)]
purge: do not reboot by default

Rebooting servers is really intrusive and perhaps this is not what the
operator wants. So we disable the reboot by default now. Note that the
reboot might not happen all the time.
It can be enabled by default by running the purge playbook with -e
reboot_osd_node=True

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1505011
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoDocker image pull retry 2071/head
Joe Talerico [Tue, 17 Oct 2017 19:09:03 +0000 (15:09 -0400)]
Docker image pull retry

This change sets a default timeout of 300s for the image pull. If the
image pull times out (300s), we will retry 3 times by default.

fixes 1954

7 years agoMerge pull request #2103 from andymcc/tcmalloc_settings
Sébastien Han [Wed, 25 Oct 2017 15:36:04 +0000 (17:36 +0200)]
Merge pull request #2103 from andymcc/tcmalloc_settings

Option to set TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES

7 years agoMerge pull request #2104 from ceph/rgw-section
Sébastien Han [Wed, 25 Oct 2017 15:35:01 +0000 (17:35 +0200)]
Merge pull request #2104 from ceph/rgw-section

rgw/nfs: fix section duplication

7 years agoMerge pull request #2084 from ceph/backward-osd-2.4
Sébastien Han [Wed, 25 Oct 2017 15:33:49 +0000 (17:33 +0200)]
Merge pull request #2084 from ceph/backward-osd-2.4

osd: bring backward compatibility with old Jewel images

7 years agoUse check_mode instead of always_run 2105/head
Major Hayden [Wed, 25 Oct 2017 14:53:34 +0000 (09:53 -0500)]
Use check_mode instead of always_run

This patch changes the `always_run: yes` task option to
`check_mode: no` to avoid Ansible warnings.

7 years agoRevert "Avoid deprecated always_run"
Major Hayden [Wed, 25 Oct 2017 14:48:09 +0000 (09:48 -0500)]
Revert "Avoid deprecated always_run"

This reverts commit 620fb37dd481dc570fac6291dcfd82c855f2dcb7.

7 years agorgw/nfs: fix section duplication 2104/head
Sébastien Han [Wed, 25 Oct 2017 13:45:37 +0000 (15:45 +0200)]
rgw/nfs: fix section duplication

Once and for all, hopefully...

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoOption to set TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES 2103/head
Andy McCrae [Mon, 23 Oct 2017 13:57:24 +0000 (14:57 +0100)]
Option to set TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES

Use "ceph_tcmalloc_max_total_thread_cache" to set the
TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES value inside /etc/default/ceph for
Debian installs, or /etc/sysconfig/ceph for Red Hat/CentOS installs.

By default this is set to 0, so the default package value will be used,
if specified this value will be changed to match the variable, and ceph
osd services will be restarted.

7 years agoceph-osd lvm scnearios are no longer limited to filestore
Alfredo Deza [Wed, 25 Oct 2017 11:56:47 +0000 (07:56 -0400)]
ceph-osd lvm scnearios are no longer limited to filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-osd use --cluster in ceph-volume calls
Alfredo Deza [Tue, 24 Oct 2017 21:47:29 +0000 (17:47 -0400)]
ceph-osd use --cluster in ceph-volume calls

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-osd add the CEPH_VOLUME_DEBUG env var to all ceph-volume commands
Alfredo Deza [Tue, 24 Oct 2017 17:44:11 +0000 (13:44 -0400)]
ceph-osd add the CEPH_VOLUME_DEBUG env var to all ceph-volume commands

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agotests add the bluestore scenario in tox.ini
Alfredo Deza [Tue, 24 Oct 2017 17:02:42 +0000 (13:02 -0400)]
tests add the bluestore scenario in tox.ini

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agotests create a bluestore osd scenario
Alfredo Deza [Tue, 24 Oct 2017 17:02:20 +0000 (13:02 -0400)]
tests create a bluestore osd scenario

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agogroup_vars: update the examples in lvm for bluestore support
Alfredo Deza [Tue, 24 Oct 2017 15:18:19 +0000 (11:18 -0400)]
group_vars: update the examples in lvm for bluestore support

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-osd update the examples in defaults for lvm bluestore
Alfredo Deza [Tue, 24 Oct 2017 15:17:42 +0000 (11:17 -0400)]
ceph-osd update the examples in defaults for lvm bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-osd: lvm support for bluestore
Alfredo Deza [Tue, 24 Oct 2017 15:05:58 +0000 (11:05 -0400)]
ceph-osd: lvm support for bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #2086 from ceph/followup
Sébastien Han [Wed, 25 Oct 2017 09:19:18 +0000 (11:19 +0200)]
Merge pull request #2086 from ceph/followup

tests: split purge_cluster, followup on a53aa9e

7 years agoMerge pull request #2102 from yanyixing/fix_miss_word
Guillaume Abrioux [Wed, 25 Oct 2017 08:49:38 +0000 (10:49 +0200)]
Merge pull request #2102 from yanyixing/fix_miss_word

add the miss word

7 years agoupdate sample file 2102/head
Yixing Yan [Wed, 25 Oct 2017 08:39:08 +0000 (16:39 +0800)]
update sample file

7 years agopurge: containers are not stopped 2086/head
Guillaume Abrioux [Wed, 25 Oct 2017 05:48:42 +0000 (07:48 +0200)]
purge: containers are not stopped

During purge osd, the containers are not stopped because of a typo, as a
result, all the devices can't be unmounted later.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2097 from fultonj/issue/2095
Sébastien Han [Tue, 24 Oct 2017 11:59:51 +0000 (13:59 +0200)]
Merge pull request #2097 from fultonj/issue/2095

Require osd_scenario parameter to be provided in containerized deploy

7 years agoMerge pull request #2096 from andymcc/regex_defaults
Sébastien Han [Mon, 23 Oct 2017 15:24:44 +0000 (17:24 +0200)]
Merge pull request #2096 from andymcc/regex_defaults

Add regexp check for setting CLUSTER_NAME

7 years agoRequire osd_scenario parameter to be provided in containerized deploy 2097/head
John Fulton [Mon, 23 Oct 2017 15:16:03 +0000 (15:16 +0000)]
Require osd_scenario parameter to be provided in containerized deploy

Fixes: #2095
7 years agotests: split purge_cluster, followup on a53aa9e
Guillaume Abrioux [Fri, 20 Oct 2017 15:18:39 +0000 (17:18 +0200)]
tests: split purge_cluster, followup on a53aa9e

- split purge_cluster because we need to test filestore and bluestore
scenarios.
- clean some leftover.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2093 from andymcc/typo_fix
Sébastien Han [Mon, 23 Oct 2017 13:58:15 +0000 (15:58 +0200)]
Merge pull request #2093 from andymcc/typo_fix

Typo fix for radosgw@ systemd file

7 years agoAdd regexp check for setting CLUSTER_NAME 2096/head
Andy McCrae [Mon, 23 Oct 2017 13:35:59 +0000 (14:35 +0100)]
Add regexp check for setting CLUSTER_NAME

Minor fix to ensure that existing CLUSTER_NAME is changed, and avoid duplicates.

7 years agoTypo fix for radosgw@ systemd file 2093/head
Andy McCrae [Mon, 23 Oct 2017 13:07:23 +0000 (14:07 +0100)]
Typo fix for radosgw@ systemd file

systemd script for radosgw is radosgw@ not rgw@, the directory needs to
match the path.

7 years agoMerge pull request #2054 from jprovaznik/bindaddr
Sébastien Han [Mon, 23 Oct 2017 10:20:46 +0000 (12:20 +0200)]
Merge pull request #2054 from jprovaznik/bindaddr

ceph-nfs - add bind address variable

7 years agoceph-nfs - add bind address variable 2054/head
Jan Provaznik [Mon, 16 Oct 2017 10:06:59 +0000 (12:06 +0200)]
ceph-nfs - add bind address variable

7 years agoosd: bring backward compatibility with old Jewel images 2084/head
Sébastien Han [Fri, 20 Oct 2017 13:15:38 +0000 (15:15 +0200)]
osd: bring backward compatibility with old Jewel images

There was a huge resync from luminous to jewel in ceph-docker:
https://github.com/ceph/ceph-docker/pull/797

This change brought a new handy function to discover partitions tight to
an OSD. This function doesn't exist in the old image so the
ceph-osd-run.sh script breaks when trying to deploy Jewel OSD with that
old Jewel image version.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2082 from ceph/restapi-cephconf
Sébastien Han [Fri, 20 Oct 2017 12:07:48 +0000 (14:07 +0200)]
Merge pull request #2082 from ceph/restapi-cephconf

common: move restapi template to config

7 years agoMerge pull request #2076 from ceph/2.4-3.0-backward
Sébastien Han [Fri, 20 Oct 2017 11:58:30 +0000 (13:58 +0200)]
Merge pull request #2076 from ceph/2.4-3.0-backward

[skip ci] all: backward compatibility between stable-2.2 and 3.0

7 years agoall: backward compatibility between stable-2.2 and 3.0 2076/head
Sébastien Han [Wed, 18 Oct 2017 16:03:30 +0000 (18:03 +0200)]
all: backward compatibility between stable-2.2 and 3.0

stable-3.0 brought numerous changes in ceph-ansible variables, this PR
aims to maintain backward compatibility for someone running stable-2.2
upgrading to stable-3.0 but keeps its groups_vars untouched.
We will then determine the right options to make sure the upgrade works
but we are expecting that new variables should be used.

We will drop this in a near future, maybe 3.1 or 3.2.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agomgr: force module addition
Sébastien Han [Fri, 20 Oct 2017 09:53:39 +0000 (11:53 +0200)]
mgr: force module addition

Some module require --force to be enabled.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agocommon: move restapi template to config 2082/head
Sébastien Han [Fri, 20 Oct 2017 09:14:13 +0000 (11:14 +0200)]
common: move restapi template to config

Closes: github.com/ceph/ceph-ansible/issues/1981
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agomgr: play 'enable modules' sequence only on luminous
Guillaume Abrioux [Thu, 19 Oct 2017 13:39:43 +0000 (15:39 +0200)]
mgr: play 'enable modules' sequence only on luminous

This feature isn't available before luminous, therefore, we need to play
them only on luminous and after otherwise the playbook will fail.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 3f3d4b9c727d06154c422d445fc2a245aceaed89)

7 years agoupgrade: fix upgrade jewel to luminous for nfs nodes
Guillaume Abrioux [Thu, 19 Oct 2017 16:30:08 +0000 (18:30 +0200)]
upgrade: fix upgrade jewel to luminous for nfs nodes

nfs nodes can't be upgraded from jewel to luminous because ceph-nfs role
is skipped because of the condition `when:
"ceph_release_num[ceph_release] >= ceph_release_num.luminous"`. Indeed,
package is upgraded in `ceph-nfs` role, therefore,
`ceph_release` is still set to the old version. It means the when can't
be satisfied.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoupgrade: fix upgrade jewel to luminous for mgr nodes
Guillaume Abrioux [Thu, 19 Oct 2017 13:07:58 +0000 (15:07 +0200)]
upgrade: fix upgrade jewel to luminous for mgr nodes

mgr nodes can't be upgraded from jewel to luminous because ceph-mgr role
is skipped because of the condition `when:
"ceph_release_num[ceph_release] >= ceph_release_num.luminous"`. Indeed,
ceph-mgr package is upgraded in `ceph-mgr` role, therefore,
`ceph_release` is still set to the old version. It means the when can't
be satisfied.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 302e563601cd6820b1ae44fabdfb1506688c7c9b)

7 years agoMerge pull request #2081 from ceph/fix_mgr_upgrade
Sébastien Han [Thu, 19 Oct 2017 18:53:43 +0000 (20:53 +0200)]
Merge pull request #2081 from ceph/fix_mgr_upgrade

tests: fix docker_collocation, change jewel upgrade

7 years agotests: only test upgrade jewel > luminous 2081/head
Guillaume Abrioux [Thu, 19 Oct 2017 14:12:12 +0000 (16:12 +0200)]
tests: only test upgrade jewel > luminous

Since it has been decided to stop testing against kraken, we have to
test upgrade from jewel to luminous instead of kraken.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agotests: re-add missing param in tox
Guillaume Abrioux [Thu, 19 Oct 2017 13:24:02 +0000 (15:24 +0200)]
tests: re-add missing param in tox

this line has been removed by mistake in a53aa9e.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2000 from ceph/merge-osd-scenarios
Sébastien Han [Thu, 19 Oct 2017 07:18:02 +0000 (09:18 +0200)]
Merge pull request #2000 from ceph/merge-osd-scenarios

[skip ci] ci: new osd scenarios

7 years agoMerge pull request #2075 from ceph/fix_3a58757
Sébastien Han [Wed, 18 Oct 2017 13:19:41 +0000 (15:19 +0200)]
Merge pull request #2075 from ceph/fix_3a58757

[skip ci] mgr: fix broken task on jewel

7 years agomgr: fix broken task on jewel 2075/head
Guillaume Abrioux [Wed, 18 Oct 2017 09:43:40 +0000 (11:43 +0200)]
mgr: fix broken task on jewel

3a58757 introduced an issue for Jewel deployments, since this role is
skipped, `enabled_ceph_mgr_modules.stdout` doesn't exist, therefore, it
ends up with an attribute error.

Uses `.get()` to retrieve `stdout` with a default value so it won't fail
if this attribute doesn't exist (jewel).

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2073 from ceph/fix_rbd_handler
Sébastien Han [Wed, 18 Oct 2017 09:12:05 +0000 (11:12 +0200)]
Merge pull request #2073 from ceph/fix_rbd_handler

[skip ci] rbd: fix restart script for jewel

7 years agorbd: fix restart script for jewel 2073/head
Guillaume Abrioux [Tue, 17 Oct 2017 16:28:06 +0000 (18:28 +0200)]
rbd: fix restart script for jewel

In Jewel, we don't use bootstrap-rbd keyring for rbd-mirror nodes, it
results with a socket path/name different according to which ceph
release you are deploying.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2053 from Fbrachere/mgr-modules
Sébastien Han [Wed, 18 Oct 2017 08:27:31 +0000 (10:27 +0200)]
Merge pull request #2053 from Fbrachere/mgr-modules

Add ability to enable ceph mgr modules.

7 years agoci: new osd scenarios 2000/head
Sébastien Han [Thu, 5 Oct 2017 14:22:04 +0000 (16:22 +0200)]
ci: new osd scenarios

This commit add new osd scenarios, it aims to simplify the CI setup and
brings a better coverage on the OSD scenarios.
We decided to differentiate between filestore and bluestore, thinking
ahead when filestore won't be supported anymore.
So we now have two classes of tests:

* Filestore
* Bluestore

In each of those classes we have container and non-container.
Then for each we test the following:

* collocated
* collocated dmcrypt
* non-collocated
* non-collocated dmcrypt
* auto discovery collocated
* auto discovery collocated dmcrypt

This gives us a nice coverage and also reduces the footprint on the CI.
We are now up to 4 scenarios, each containing 6 OSD VMs.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2068 from ceph/fix-collocation2
Sébastien Han [Wed, 18 Oct 2017 07:15:50 +0000 (09:15 +0200)]
Merge pull request #2068 from ceph/fix-collocation2

defaults: fix handlers for collocation

7 years agodefaults: fix handlers for collocation 2068/head
Sébastien Han [Tue, 17 Oct 2017 13:54:17 +0000 (15:54 +0200)]
defaults: fix handlers for collocation

When doing collocation the condition "inventory_hostname in play_hosts"
is breaking the restart workflow.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2065 from ceph/rhcs-rm
Sébastien Han [Tue, 17 Oct 2017 15:05:14 +0000 (17:05 +0200)]
Merge pull request #2065 from ceph/rhcs-rm

[skip ci] rpm: remove ability to install ceph community version

7 years agoMerge pull request #2050 from ceph/sort_dict
Sébastien Han [Tue, 17 Oct 2017 13:23:34 +0000 (15:23 +0200)]
Merge pull request #2050 from ceph/sort_dict

ceph-defaults: fix handlers that are always triggered