]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
7 years agoupdate group_vars/osds.yml.sample for the new lvm_volumes examples 2172/head
Andrew Schoen [Tue, 14 Nov 2017 19:19:03 +0000 (13:19 -0600)]
update group_vars/osds.yml.sample for the new lvm_volumes examples

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agolvm: support --data as a raw device or partition in ceph-volume
Andrew Schoen [Mon, 13 Nov 2017 20:56:51 +0000 (14:56 -0600)]
lvm: support --data as a raw device or partition in ceph-volume

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agolvm: ensure the data_vg exists before using it
Andrew Schoen [Mon, 13 Nov 2017 20:29:37 +0000 (14:29 -0600)]
lvm: ensure the data_vg exists before using it

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #2170 from ceph/remove_osd_zap
Guillaume Abrioux [Tue, 14 Nov 2017 21:02:18 +0000 (22:02 +0100)]
Merge pull request #2170 from ceph/remove_osd_zap

tests: remove OSD_FORCE_ZAP variable from tests

7 years agotests: remove OSD_FORCE_ZAP variable from tests 2170/head
Guillaume Abrioux [Tue, 14 Nov 2017 10:58:38 +0000 (11:58 +0100)]
tests: remove OSD_FORCE_ZAP variable from tests

according to ceph/ceph-container#840, this variable is no longer needed.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2165 from ceph/sync_ceph-build
Sébastien Han [Tue, 14 Nov 2017 13:46:38 +0000 (14:46 +0100)]
Merge pull request #2165 from ceph/sync_ceph-build

tests: set CEPH_STABLE_RELEASE in ceph-build

7 years agotests: set CEPH_STABLE_RELEASE in ceph-build 2165/head
Guillaume Abrioux [Fri, 10 Nov 2017 17:25:25 +0000 (18:25 +0100)]
tests: set CEPH_STABLE_RELEASE in ceph-build

`CEPH_STABLE_RELEASE` needs to bet set in ceph-build according
to ceph/ceph-ansible#2165

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2167 from ceph/bz-1510906
Sébastien Han [Mon, 13 Nov 2017 16:37:37 +0000 (03:37 +1100)]
Merge pull request #2167 from ceph/bz-1510906

defaults: fix rgw restart script in handlers

7 years agodefaults: fix rgw restart script in handlers 2167/head
Guillaume Abrioux [Mon, 13 Nov 2017 15:27:51 +0000 (16:27 +0100)]
defaults: fix rgw restart script in handlers

Like 80d32dec, the path to the fact is not correct.
In any case, we will retrieve the IP address in hostvars, the variable
is the way we get the interface name according where it has been set
(eg.: inventory host file vs. group_vars/)

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1510906
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2146 from mslovy/wip-fix-crush-location
Guillaume Abrioux [Mon, 13 Nov 2017 11:23:44 +0000 (12:23 +0100)]
Merge pull request #2146 from mslovy/wip-fix-crush-location

osd: fix crush location for non-containerized deployment

7 years agoMerge pull request #2140 from yanyixing/doc_fix
Sébastien Han [Mon, 13 Nov 2017 11:11:26 +0000 (22:11 +1100)]
Merge pull request #2140 from yanyixing/doc_fix

Fix: the ansible version for the stable-3.0 branch

7 years agoMerge pull request #2142 from squidboylan/master
Sébastien Han [Mon, 13 Nov 2017 11:06:16 +0000 (22:06 +1100)]
Merge pull request #2142 from squidboylan/master

infra: fix take-over-existing-cluster.yml playbook

7 years agoMerge pull request #2144 from ceph/quick_fix_lvm
Sébastien Han [Mon, 13 Nov 2017 10:50:37 +0000 (21:50 +1100)]
Merge pull request #2144 from ceph/quick_fix_lvm

osd: skip some set_fact when osd_scenario=lvm

7 years agoMerge pull request #2141 from Arano-kai/run_restart_scripts_in_noexec_tmp
Sébastien Han [Mon, 13 Nov 2017 10:37:35 +0000 (21:37 +1100)]
Merge pull request #2141 from Arano-kai/run_restart_scripts_in_noexec_tmp

FIX: run restart scripts in `noexec` /tmp

7 years agoMerge pull request #2163 from ktdreyer/rpm-ansible-2.4.1.0
Guillaume Abrioux [Fri, 10 Nov 2017 17:19:29 +0000 (18:19 +0100)]
Merge pull request #2163 from ktdreyer/rpm-ansible-2.4.1.0

rpm: require ansible 2.4.1.0

7 years agorpm: require ansible 2.4.1.0 2163/head
Ken Dreyer [Fri, 10 Nov 2017 17:11:31 +0000 (10:11 -0700)]
rpm: require ansible 2.4.1.0

2.4.0.0 has some bugs, and we're going to ship with v2.4.1.0.

7 years agoMerge pull request #2152 from ceph/bz-1510470
Guillaume Abrioux [Fri, 10 Nov 2017 05:55:13 +0000 (06:55 +0100)]
Merge pull request #2152 from ceph/bz-1510470

purge-docker-cluster: ensure old logs are removed

7 years agoMerge pull request #2154 from ceph/fix_auto_discover
Guillaume Abrioux [Fri, 10 Nov 2017 00:19:20 +0000 (01:19 +0100)]
Merge pull request #2154 from ceph/fix_auto_discover

osd: avoid using non desired loop device in autodiscovery

7 years agoMerge pull request #2153 from ceph/fix_disk_list_test
Guillaume Abrioux [Thu, 9 Nov 2017 22:50:32 +0000 (23:50 +0100)]
Merge pull request #2153 from ceph/fix_disk_list_test

osd: always run disk_list test

7 years agopurge-docker-cluster: ensure old logs are removed 2152/head
Guillaume Abrioux [Thu, 9 Nov 2017 09:42:14 +0000 (10:42 +0100)]
purge-docker-cluster: ensure old logs are removed

purge-docker-cluster must remove all osd_disk_prepare logs in
`{{ ceph_osd_docker_run_script_path }}`, otherwise if you purge your
cluster and try to redeploy it, osds will fail to start since because it
will try to retrieve find a partition uuid which doesn't exist.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1510470
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoosd: always run disk_list test 2153/head
Guillaume Abrioux [Thu, 9 Nov 2017 10:05:59 +0000 (11:05 +0100)]
osd: always run disk_list test

there is no need to have a condition on this task, this test should be
always run since the result will be interpreted later.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #2150 from ceph/fix_typo
Guillaume Abrioux [Thu, 9 Nov 2017 10:24:34 +0000 (11:24 +0100)]
Merge pull request #2150 from ceph/fix_typo

config: fix config generation

7 years agoosd: avoid using non desired loop device in autodiscovery 2154/head
Guillaume Abrioux [Thu, 9 Nov 2017 09:26:24 +0000 (10:26 +0100)]
osd: avoid using non desired loop device in autodiscovery

This will prevent ceph-ansible from using a loop device while it
shouldn't in auto_discovery mode.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoconfig: fix config generation 2150/head
Guillaume Abrioux [Wed, 8 Nov 2017 23:03:00 +0000 (00:03 +0100)]
config: fix config generation

The path to the fact is not correct.
In any case, we will retrieve the IP address in hostvars, the variable
is the way we get the interface name according where it has been set
(eg.: inventory host file vs. group_vars/)

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1510906
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
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 agofix crush location for non-containerized deployment 2146/head
yaoning [Wed, 8 Nov 2017 01:02:51 +0000 (12:02 +1100)]
fix crush location for non-containerized deployment

crush location only set for containerized deployment

Signed-off-by: yaoning <yaoning@unitedstack.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 agoosd: skip some set_fact when osd_scenario=lvm 2144/head
Guillaume Abrioux [Tue, 7 Nov 2017 14:30:08 +0000 (15:30 +0100)]
osd: skip some set_fact when osd_scenario=lvm

these tasks are not needed when using `osd_scenario: lvm`

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1509230
Signed-off-by: Guillaume Abrioux <gabrioux@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 agoinfra: fix take-over-existing-cluster.yml playbook 2142/head
Caleb Boylan [Fri, 3 Nov 2017 16:54:54 +0000 (09:54 -0700)]
infra: fix take-over-existing-cluster.yml playbook

The ansible inventory could have more than just ceph-ansible hosts, so
we shouldnt use "hosts: all", also only grab one file when getting
the ceph cluster name instead of failing when there is more than one
file in /etc/ceph. Also fix location of the ceph.conf template

7 years agoFIX: run restart scripts in `noexec` /tmp 2141/head
Arano-kai [Mon, 6 Nov 2017 14:02:47 +0000 (16:02 +0200)]
FIX: run restart scripts in `noexec` /tmp

- One can not run scripts directly in place, that mounted with `noexec`
option. But one can run scripts as arguments for `bash/sh`.

Signed-off-by: Arano-kai <captcha.is.evil@gmail.com>
7 years agofix the ansible version for the stable-3.0 branch 2140/head
Yixing Yan [Mon, 6 Nov 2017 08:15:47 +0000 (16:15 +0800)]
fix the ansible version for the stable-3.0 branch

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)