]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
7 years agopurge-cluster: Do not use shell for rm 2013/head
Boris Ranto [Fri, 6 Oct 2017 20:54:34 +0000 (22:54 +0200)]
purge-cluster: Do not use shell for rm

The shell wildcard expansion of non-existing paths fails on zsh making
the whole script fail. We can use file module with with_fileglob to
alleviate the problem instead.

Signed-off-by: Boris Ranto <branto@redhat.com>
7 years agopurge-cluster: Do not fail on systemd commands
Boris Ranto [Fri, 6 Oct 2017 20:52:53 +0000 (22:52 +0200)]
purge-cluster: Do not fail on systemd commands

The systemd can't stop services if the unit files were removed before
the cluster was purged. We should just ignore these.

Signed-off-by: Boris Ranto <branto@redhat.com>
7 years agoMerge pull request #2003 from ceph/debian-iso v3.0.0rc17
Sébastien Han [Thu, 5 Oct 2017 16:57:47 +0000 (18:57 +0200)]
Merge pull request #2003 from ceph/debian-iso

[skip ci] common: iso install on Debian is supported by rhcs

7 years agocommon: iso install on Debian is supported by rhcs 2003/head
Sébastien Han [Thu, 5 Oct 2017 16:33:17 +0000 (18:33 +0200)]
common: iso install on Debian is supported by rhcs

Also adds support for RCSH installation on Debian.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #2004 from ceph/debian-url
Sébastien Han [Thu, 5 Oct 2017 16:46:13 +0000 (18:46 +0200)]
Merge pull request #2004 from ceph/debian-url

common: fix ga verison for debian rhcs

7 years agocommon: fix ga verison for debian rhcs 2004/head
Sébastien Han [Thu, 5 Oct 2017 16:45:30 +0000 (18:45 +0200)]
common: fix ga verison for debian rhcs

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1985 from ceph/debian-rhcs
Sébastien Han [Thu, 5 Oct 2017 16:42:46 +0000 (18:42 +0200)]
Merge pull request #1985 from ceph/debian-rhcs

[skip ci] common: fix rhcs installation on debian

7 years agoMerge pull request #2001 from ceph/iscsi
Sébastien Han [Thu, 5 Oct 2017 16:29:06 +0000 (18:29 +0200)]
Merge pull request #2001 from ceph/iscsi

iscsi: fix wrong group name for iscsi

7 years agoMerge pull request #2002 from ceph/non-col
Sébastien Han [Thu, 5 Oct 2017 16:25:16 +0000 (18:25 +0200)]
Merge pull request #2002 from ceph/non-col

[skip ci] osd: do not do unique on dedicated_devices

7 years agoosd: do not do unique on dedicated_devices 2002/head
Sébastien Han [Thu, 5 Oct 2017 16:20:18 +0000 (18:20 +0200)]
osd: do not do unique on dedicated_devices

This is needed later, if we do unique, only the first OSD will get a
journal.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agocommon: fix rhcs installation on debian 1985/head
Sébastien Han [Wed, 4 Oct 2017 11:36:01 +0000 (13:36 +0200)]
common: fix rhcs installation on debian

* Change version from 2 to 3.
* use ceph_rhcs_cdn_debian_repo_version to use other repositories along
* with ceph_rhcs_cdn_debian_repo

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoiscsi: fix wrong group name for iscsi 2001/head
Sébastien Han [Thu, 5 Oct 2017 14:40:07 +0000 (16:40 +0200)]
iscsi: fix wrong group name for iscsi

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1498490
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1957 from ceph/multi_env_test
Sébastien Han [Thu, 5 Oct 2017 14:00:47 +0000 (16:00 +0200)]
Merge pull request #1957 from ceph/multi_env_test

tests: make all subnet uniq per scenario

7 years agoMerge pull request #1997 from rrmichel/osd_fragment
Sébastien Han [Thu, 5 Oct 2017 13:58:49 +0000 (15:58 +0200)]
Merge pull request #1997 from rrmichel/osd_fragment

Fixing path to osd_fragment.yml

7 years agoMerge pull request #1995 from ceph/remove-rbd-check
Sébastien Han [Thu, 5 Oct 2017 13:31:48 +0000 (15:31 +0200)]
Merge pull request #1995 from ceph/remove-rbd-check

jewel: remove rbd check

7 years agotests: set `volume_cache` 'unsafe' 1957/head
Guillaume Abrioux [Wed, 4 Oct 2017 15:09:34 +0000 (17:09 +0200)]
tests: set `volume_cache` 'unsafe'

Set volume_cache to unsafe for CI VMs.
We might be using tmpfs for volume disks soon, therefore 'unsafe' is a
prerequisite for volume_cache

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agotests: disable shared folder
Guillaume Abrioux [Wed, 4 Oct 2017 12:32:34 +0000 (14:32 +0200)]
tests: disable shared folder

Shared folder is not required for tests.
We should avoid hitting the error :
```
uninitialized constant VagrantPlugins::ProviderLibvirt::Action::ShareFolders
```
Also, disabling it might reduce the needed time in certains cases for the VMs
to be started.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agotests: make all subnet uniq per scenario
Guillaume Abrioux [Thu, 28 Sep 2017 12:14:38 +0000 (14:14 +0200)]
tests: make all subnet uniq per scenario

If two environments are using the same subnet, we will get trouble
because of ips addresses conflicts.
This commit ensures each scenario has a uniq subnet for both public and cluster
network so we can setup several test environment at a time on a same hypervisor.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1999 from ceph/bz-1486062
Sébastien Han [Thu, 5 Oct 2017 13:01:00 +0000 (15:01 +0200)]
Merge pull request #1999 from ceph/bz-1486062

common: remove unusuable conditions

7 years agocommon: remove unusuable conditions 1999/head
Guillaume Abrioux [Thu, 5 Oct 2017 12:56:31 +0000 (14:56 +0200)]
common: remove unusuable conditions

`ceph_release` isn't available at this step of the playbook because it
is set later based on the installed binaries.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1486062
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1993 from jprovaznik/log
Sébastien Han [Thu, 5 Oct 2017 12:43:26 +0000 (14:43 +0200)]
Merge pull request #1993 from jprovaznik/log

Fix bind mount for /var/lib/nfs/ganesha directory

7 years agoFixing path to osd_fragment.yml 1997/head
Michel Rode [Thu, 5 Oct 2017 12:42:10 +0000 (14:42 +0200)]
Fixing path to osd_fragment.yml

7 years agoMerge pull request #1988 from ceph/fix_keyrings
Sébastien Han [Thu, 5 Oct 2017 12:30:09 +0000 (14:30 +0200)]
Merge pull request #1988 from ceph/fix_keyrings

docker: fix keyrings copied on all nodes

7 years agojewel: remove rbd check 1995/head
Sébastien Han [Thu, 5 Oct 2017 12:21:37 +0000 (14:21 +0200)]
jewel: remove rbd check

The value of doing this is fairly low compare to the added value.
So we remove these tasks, if rbd pool on Jewel doesn't have the right PG
value you can always increase it.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoFix bind mount for /var/lib/nfs/ganesha directory 1993/head
Jan Provaznik [Thu, 5 Oct 2017 11:44:43 +0000 (13:44 +0200)]
Fix bind mount for /var/lib/nfs/ganesha directory

7 years agotests: add ceph-override.json for ubuntu/cluster 1988/head
Guillaume Abrioux [Thu, 5 Oct 2017 10:59:29 +0000 (12:59 +0200)]
tests: add ceph-override.json for ubuntu/cluster

in addition to 18e2ab4d this commit adds the same file for ubuntu
testing scenario.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1992 from jprovaznik/pool
Sébastien Han [Thu, 5 Oct 2017 10:13:47 +0000 (12:13 +0200)]
Merge pull request #1992 from jprovaznik/pool

Evaluate cephfs pool variables

7 years agotests: fix broken osd test for xenial_cluster
Guillaume Abrioux [Thu, 5 Oct 2017 09:03:41 +0000 (11:03 +0200)]
tests: fix broken osd test for xenial_cluster

the path `/dev/disk/by-path/pci-0000:00:01.1-ata-1.0` doesn't exist.
it has to be changed to `/dev/disk/by-path/pci-0000:00:01.1-ata-1`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoEvaluate cephfs pool variables 1992/head
Jan Provaznik [Thu, 5 Oct 2017 08:00:20 +0000 (10:00 +0200)]
Evaluate cephfs pool variables

Otherwise pools with names 'cephfs_data' and 'cephfs_metadata'
are created.

7 years agodocker: fix keyrings copied on all nodes
Guillaume Abrioux [Wed, 4 Oct 2017 21:10:10 +0000 (23:10 +0200)]
docker: fix keyrings copied on all nodes

All keyring are getting copied to all nodes.
This commit fixes a leftover from a previous code refactor.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1498583
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1976 from ceph/rbd_pool v3.0.0rc16
Sébastien Han [Wed, 4 Oct 2017 16:52:49 +0000 (18:52 +0200)]
Merge pull request #1976 from ceph/rbd_pool

Only perform actions on the rbd pool after it has been created

7 years agotests: increase number of threads for testinfra 1976/head
Guillaume Abrioux [Wed, 4 Oct 2017 14:51:32 +0000 (16:51 +0200)]
tests: increase number of threads for testinfra

from 4 to 8 to make testing faster.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agotests: fix brokens tests for mds
Guillaume Abrioux [Wed, 4 Oct 2017 14:47:09 +0000 (16:47 +0200)]
tests: fix brokens tests for mds

5968cf0 broke the test on mds because of leftover.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoiscsi-gw: Create a rbd pool if it doesn't exist
Guillaume Abrioux [Wed, 4 Oct 2017 06:58:03 +0000 (08:58 +0200)]
iscsi-gw: Create a rbd pool if it doesn't exist

iscsi-gw needs a 'rbd' pool to configure iscsi target.
Note: I could have used the facts already set in `ceph-mon` but I voluntarily
didn't do it to not create a dependancy between these two roles.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoRefact code for set_osd_pool_default_*
Guillaume Abrioux [Tue, 3 Oct 2017 11:55:27 +0000 (13:55 +0200)]
Refact code for set_osd_pool_default_*

This commit refacts the code regarding all `set_osd_pool_default_*`
related tasks by avoiding usage of useless `set_fact` to determine
whether a key is present in `ceph_conf_overrides`.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoOnly perform actions on the rbd pool after it has been created
Al Lau [Fri, 29 Sep 2017 17:19:05 +0000 (10:19 -0700)]
Only perform actions on the rbd pool after it has been created

The rbd pool is the default pool that gets created during ceph cluster
initializaiton.  If we act on the rbd related operations too early, the
rbd pool does not exist yet.  Move the call to perform rbd operations
to a later stage after other pools have been created.

The rbd_pool.yml playbook has all the operations related to the rbd pool.

Replace the always_run (deprecated) directive with check_mode.

Most of the ceph related tasks only need to run once.  The run_once directive
executes the task on the first host.

The ceph sub-command to delete a pool is delete (not rm).

The changes submitted here were tested with this ceph version.
ceph version 0.94.9-9.el7cp (b83334e01379f267fb2f9ce729d74a0a8fa1e92c)

This upload includes these changes:
  - Use the fail module (instead of assert).
  - From luminous release, the rbd pool is no longer created by default.
    Delete the code to create the rbd pool for luminous release
  - Conform the .yml files to use the suggested syntax.

The commands are executed on the mcp nodes and I think shell ansible module
is the right one to use.  The command module is used to execute commands on
remote nodes.  I can make the change to use command module if that is
prefrerred.

7 years agoMerge pull request #1986 from ceph/fixes
Sébastien Han [Wed, 4 Oct 2017 13:38:33 +0000 (15:38 +0200)]
Merge pull request #1986 from ceph/fixes

[skip ci] defaults: fix check socket non-container handler

7 years agodefaults: fix check socket non-container handler 1986/head
Sébastien Han [Wed, 4 Oct 2017 13:33:52 +0000 (15:33 +0200)]
defaults: fix check socket non-container handler

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1953 from ceph/colocation
Sébastien Han [Wed, 4 Oct 2017 13:02:57 +0000 (15:02 +0200)]
Merge pull request #1953 from ceph/colocation

[skip ci] Colocation

7 years agonfs: add run once to user creation 1953/head
Sébastien Han [Wed, 4 Oct 2017 11:16:04 +0000 (13:16 +0200)]
nfs: add run once to user creation

The create user call is idempotent but it's also blocking for some
reasons.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoset docker_exec_cmd fact early in each role
Guillaume Abrioux [Wed, 4 Oct 2017 08:39:17 +0000 (10:39 +0200)]
set docker_exec_cmd fact early in each role

This is to ensure `docker_exec_cmd` fact is set with the correct value
in case of daemons collocation

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoci: add collocation scenario
Sébastien Han [Wed, 27 Sep 2017 16:22:15 +0000 (18:22 +0200)]
ci: add collocation scenario

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1977 from ktdreyer/doc-master-ansible-version v3.0.0rc15
Sébastien Han [Tue, 3 Oct 2017 20:55:22 +0000 (22:55 +0200)]
Merge pull request #1977 from ktdreyer/doc-master-ansible-version

docs: master requires ansible 2.3.1

7 years agoMerge pull request #1978 from ktdreyer/doc-installing-ansible
Sébastien Han [Tue, 3 Oct 2017 19:36:27 +0000 (21:36 +0200)]
Merge pull request #1978 from ktdreyer/doc-installing-ansible

[skip ci] docs: add instructions for installing Ansible

7 years agoMerge pull request #1974 from ceph/mgr-upgrade-luminous
Sébastien Han [Tue, 3 Oct 2017 17:57:31 +0000 (19:57 +0200)]
Merge pull request #1974 from ceph/mgr-upgrade-luminous

upgrade: a support for mgrs

7 years agodocs: add instructions for installing Ansible 1978/head
Ken Dreyer [Tue, 3 Oct 2017 17:38:58 +0000 (11:38 -0600)]
docs: add instructions for installing Ansible

Add RPM and DEB instructions for installing Ansible.

7 years agodocs: master requires ansible 2.3.1 1977/head
Ken Dreyer [Tue, 3 Oct 2017 17:26:43 +0000 (11:26 -0600)]
docs: master requires ansible 2.3.1

We require Ansible 2.3.1 or greater to run ceph-ansible's master branch.

7 years agoMerge pull request #1956 from ceph/osd-container-id
Sébastien Han [Tue, 3 Oct 2017 16:52:24 +0000 (18:52 +0200)]
Merge pull request #1956 from ceph/osd-container-id

Osd container

7 years agoMerge pull request #1975 from ceph/nfs-site
Sébastien Han [Tue, 3 Oct 2017 16:45:10 +0000 (18:45 +0200)]
Merge pull request #1975 from ceph/nfs-site

site: always play ceph-defaults and ceph-docker-common

7 years agoupgrade: a support for mgrs 1974/head
Sébastien Han [Tue, 3 Oct 2017 10:25:12 +0000 (12:25 +0200)]
upgrade: a support for mgrs

Also we now play ceph-config to have everything being generated for new
daemons bootstrap during upgrade.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1497959
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoiscsi: fix when condition 1956/head
Sébastien Han [Tue, 3 Oct 2017 14:48:17 +0000 (16:48 +0200)]
iscsi: fix when condition

generate_crt|bool|default(false) won't apply the default value, this
generate_crt|default(false)|bool will

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agosite: always play ceph-defaults and ceph-docker-common 1975/head
Sébastien Han [Tue, 3 Oct 2017 13:19:07 +0000 (15:19 +0200)]
site: always play ceph-defaults and ceph-docker-common

So we can later evaluate the conditions.
Also fix the variable, we are comparing ceph_release not
ceph_stable_release

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1486062
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoosd: container use id instead of dev name
Sébastien Han [Wed, 27 Sep 2017 22:17:12 +0000 (00:17 +0200)]
osd: container use id instead of dev name

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1494127
Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agotest: add handler support
Sébastien Han [Mon, 2 Oct 2017 20:46:28 +0000 (22:46 +0200)]
test: add handler support

Add idempotency and handler test.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoosd: do not copy admin key on collocated scenario
Sébastien Han [Mon, 2 Oct 2017 09:05:14 +0000 (11:05 +0200)]
osd: do not copy admin key on collocated scenario

ceph-disk used to have a bug requiring the admin key to store the
encrypted key in the mon kv store. This was reported in:
http://tracker.ceph.com/issues/17849

Fixed and backported here: https://github.com/ceph/ceph/pull/11996

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agotest: add test for device with 'by-path'
Sébastien Han [Fri, 29 Sep 2017 11:32:19 +0000 (13:32 +0200)]
test: add test for device with 'by-path'

We now test devices to be passed like:
/dev/disk/by-path/pci-0000:00:01.1-ata-1.0

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1973 from ceph/refact_ceph-defaults
Sébastien Han [Tue, 3 Oct 2017 09:58:35 +0000 (11:58 +0200)]
Merge pull request #1973 from ceph/refact_ceph-defaults

defaults: change running order in main.yml

7 years agodefaults: change running order in main.yml 1973/head
Guillaume Abrioux [Mon, 2 Oct 2017 13:49:05 +0000 (15:49 +0200)]
defaults: change running order in main.yml

The task which sets `ceph_current_fsid` in `facts.yml` in case of containerized
deployment, will definitely fail because `docker_exec_cmd` is not set
yet.
This commits simply makes `facts.yml` played after `check_socket.yml` so
`docker_exec_cmd` is set properly.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1968 from ceph/bz-1488999 v3.0.0rc14
Sébastien Han [Mon, 2 Oct 2017 12:42:08 +0000 (14:42 +0200)]
Merge pull request #1968 from ceph/bz-1488999

refact MDS role

7 years agoMerge pull request #1964 from vatelzh/master
Sébastien Han [Mon, 2 Oct 2017 10:10:26 +0000 (12:10 +0200)]
Merge pull request #1964 from vatelzh/master

purge-cluster: delete block partitions if using bluestore

7 years agorefact MDS role 1968/head
Guillaume Abrioux [Wed, 27 Sep 2017 12:13:39 +0000 (14:13 +0200)]
refact MDS role

This commits refacts the role ceph-mds

The goal here is to create cephfs in `ceph-mon` for both containerized
and non-containerized cases so we don't need the admin keyring on mds
nodes anymore.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1488999
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1971 from ceph/expose-part
Sébastien Han [Sat, 30 Sep 2017 12:22:30 +0000 (14:22 +0200)]
Merge pull request #1971 from ceph/expose-part

osd: add cluster name support

7 years agoosd: add cluster name support 1971/head
Sébastien Han [Fri, 29 Sep 2017 18:30:54 +0000 (20:30 +0200)]
osd: add cluster name support

I forgot to add cluster name support so some partition were never
mounted correctly.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1967 from ceph/use_systemd_module
Sébastien Han [Fri, 29 Sep 2017 14:35:10 +0000 (16:35 +0200)]
Merge pull request #1967 from ceph/use_systemd_module

Use systemd module instead of service.

7 years agoMerge pull request #1939 from ceph/ci-reboot
Sébastien Han [Fri, 29 Sep 2017 14:34:46 +0000 (16:34 +0200)]
Merge pull request #1939 from ceph/ci-reboot

tests: implement reboot after a deployment

7 years agoUse systemd module instead of service. 1967/head
Guillaume Abrioux [Fri, 29 Sep 2017 12:54:00 +0000 (14:54 +0200)]
Use systemd module instead of service.

Using systemd module allows us to do in one task what we did in three
tasks:

- enable unit file,
- issue a `daemon-reload`,
- start the service

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoupdate: fix var register 1939/head
Sébastien Han [Fri, 29 Sep 2017 10:05:43 +0000 (12:05 +0200)]
update: fix var register

Even if the task is skipped, ansible registers the var as 'skipped' so
this task the task using this variable for its next usage.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agopurge-cluster: delete block partitions if using bluestore 1964/head
zhangwentao [Fri, 29 Sep 2017 06:04:17 +0000 (14:04 +0800)]
purge-cluster: delete block partitions if using bluestore

7 years agosite: only support nfs on luminous and above
Sébastien Han [Thu, 28 Sep 2017 16:24:15 +0000 (18:24 +0200)]
site: only support nfs on luminous and above

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoci: run purge cluster on centos not ubuntu
Sébastien Han [Thu, 28 Sep 2017 14:06:44 +0000 (16:06 +0200)]
ci: run purge cluster on centos not ubuntu

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agodefaults: add missing handlers for rbd mirorr and mgr
Sébastien Han [Wed, 27 Sep 2017 00:08:40 +0000 (02:08 +0200)]
defaults: add missing handlers for rbd mirorr and mgr

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agodefaults: only run socket checks on their specific roles
Sébastien Han [Tue, 26 Sep 2017 22:55:31 +0000 (00:55 +0200)]
defaults: only run socket checks on their specific roles

Running the socket check on all the hosts will override the default
value of docker_exec_cmd, leaving it with the last value (currently
rbd-mirror), as a result the subsequent docker_exec_cmd usage for the
:x

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agonfs: fix container setup and re-arrange files
Sébastien Han [Tue, 26 Sep 2017 21:16:43 +0000 (23:16 +0200)]
nfs: fix container setup and re-arrange files

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agotests: add tests for rgw-nfs
Sébastien Han [Tue, 26 Sep 2017 12:21:37 +0000 (14:21 +0200)]
tests: add tests for rgw-nfs

rgw-nfs is part of servicemap so we should use it to make sure the
process is up and running.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agorbd-mirror: force sercice enable ceph-rbd-mirror.target
Sébastien Han [Tue, 26 Sep 2017 12:12:11 +0000 (14:12 +0200)]
rbd-mirror: force sercice enable ceph-rbd-mirror.target

There is a bug in the rbd mirror unit file, the upstream fix is here:
https://github.com/ceph/ceph/pull/17969.
This should be reverted once the patch is merged and backport is done.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agotests: implement reboot after a deployment
Sébastien Han [Thu, 21 Sep 2017 21:47:36 +0000 (23:47 +0200)]
tests: implement reboot after a deployment

We don't test server reboot, a lot of things can happen after that.
So now, we deploy, reboot then we run testinfra.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1962 from ceph/fix_mgr_sestatus v3.0.0rc13
Sébastien Han [Fri, 29 Sep 2017 00:37:03 +0000 (02:37 +0200)]
Merge pull request #1962 from ceph/fix_mgr_sestatus

[skip ci] mgr: add condition to run selinux tasks only on rhel os family

7 years agodocker: add condition to run selinux tasks only on rhel os family 1962/head
Guillaume Abrioux [Fri, 29 Sep 2017 00:19:09 +0000 (02:19 +0200)]
docker: add condition to run selinux tasks only on rhel os family

This fixes the error :

```
The conditional check 'sestatus.stdout != 'Disabled'' failed.
```

that occurs when running on non rhel based system since the
`sestatus` fact is registered only on rhel based distribution.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1959 from ceph/update-check
Sébastien Han [Fri, 29 Sep 2017 00:32:17 +0000 (02:32 +0200)]
Merge pull request #1959 from ceph/update-check

rolling_update: clarify mon quorum command

7 years agoMerge pull request #1961 from ceph/site-condition-2
Sébastien Han [Fri, 29 Sep 2017 00:28:48 +0000 (02:28 +0200)]
Merge pull request #1961 from ceph/site-condition-2

[skip ci]  site: s/ceph_stable_release/ceph_release

8 years agosite: s/ceph_stable_release/ceph_release 1961/head
Sébastien Han [Fri, 29 Sep 2017 00:18:35 +0000 (02:18 +0200)]
site: s/ceph_stable_release/ceph_release

Fix typo, ceph_release is used, not ceph_stable_release

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1960 from ceph/site-condition
Sébastien Han [Thu, 28 Sep 2017 23:50:36 +0000 (01:50 +0200)]
Merge pull request #1960 from ceph/site-condition

site: fix condition

8 years agosite: fix condition 1960/head
Sébastien Han [Thu, 28 Sep 2017 23:37:10 +0000 (01:37 +0200)]
site: fix condition

we don't know ceph_stable_release before executing the role so at least
we need to run ceph-defaults and ceph-docker-common or
ceph-common.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1486062
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agorolling_update: clarify mon quorum command 1959/head
Sébastien Han [Thu, 28 Sep 2017 22:10:57 +0000 (00:10 +0200)]
rolling_update: clarify mon quorum command

Cleaner.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1958 from ceph/update-luminous
Sébastien Han [Thu, 28 Sep 2017 20:43:50 +0000 (22:43 +0200)]
Merge pull request #1958 from ceph/update-luminous

Update luminous

8 years agoupdate: complete luminous upgrade 1958/head
Sébastien Han [Thu, 28 Sep 2017 13:27:27 +0000 (15:27 +0200)]
update: complete luminous upgrade

Once we complete the upgrade to Luminous, we must issue a specific
command. For more info read:
http://ceph.com/community/new-luminous-upgrade-complete/

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1931 from ceph/re-enable-iscsi
Sébastien Han [Thu, 28 Sep 2017 17:44:52 +0000 (19:44 +0200)]
Merge pull request #1931 from ceph/re-enable-iscsi

iscsi: re-enable the scenario

8 years agoiscsi: re-enable the scenario 1931/head
Sébastien Han [Thu, 21 Sep 2017 08:07:37 +0000 (10:07 +0200)]
iscsi: re-enable the scenario

CentOS 7.4 vagrant box is now available so re-enabling this scenario.
For more info:
https://seven.centos.org/2017/09/updated-centos-vagrant-images-available-v1708-01/

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoupdate: nicer way to wait for clean pgs
Sébastien Han [Thu, 28 Sep 2017 12:46:26 +0000 (14:46 +0200)]
update: nicer way to wait for clean pgs

More comprhensive and friendly to read.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1641 from fullerdj/wip-djf-key-timeout v3.0.0rc12
Sébastien Han [Thu, 28 Sep 2017 07:40:50 +0000 (09:40 +0200)]
Merge pull request #1641 from fullerdj/wip-djf-key-timeout

mon/ceph_keys: Add timeout flag to ceph-create-keys

8 years agoMerge pull request #1955 from ceph/fix_syntax
Sébastien Han [Wed, 27 Sep 2017 22:34:10 +0000 (00:34 +0200)]
Merge pull request #1955 from ceph/fix_syntax

docker-common: fix wrong syntax

8 years agodocker-common: fix wrong syntax 1955/head
Guillaume Abrioux [Wed, 27 Sep 2017 21:34:30 +0000 (23:34 +0200)]
docker-common: fix wrong syntax

there is no need to backslash the quotes here.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agomon/ceph_keys: Add timeout flag to ceph-create-keys 1641/head
Douglas Fuller [Fri, 30 Jun 2017 18:04:51 +0000 (18:04 +0000)]
mon/ceph_keys: Add timeout flag to ceph-create-keys

Specify the timeout flag to ceph-create-keys, which causes it to time out
if a monitor quorum isn't achieved. This overrides the default timeout
of 10 minutes, causing ceph-ansible to fail faster in the event of cluster
network issues.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
8 years agoMerge pull request #1916 from ceph/purge-cluster-fix
Andrew Schoen [Wed, 27 Sep 2017 17:03:16 +0000 (12:03 -0500)]
Merge pull request #1916 from ceph/purge-cluster-fix

purge-cluster: default lvm_volumes if not defined

8 years agopurge-cluster: default lvm_volumes if not defined 1916/head
Andrew Schoen [Tue, 26 Sep 2017 20:14:29 +0000 (15:14 -0500)]
purge-cluster: default lvm_volumes if not defined

Most osd scenarios do not use lvm_volumes, so default it in
purge-cluster.yml if it's not defined.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1545 from ceph/wip-rgw-test
Sébastien Han [Tue, 26 Sep 2017 13:19:10 +0000 (15:19 +0200)]
Merge pull request #1545 from ceph/wip-rgw-test

test: add basic testing coverage for the rgw

8 years agoMerge pull request #1949 from ceph/wip-rhcs-cdn-validation
Sébastien Han [Tue, 26 Sep 2017 13:13:50 +0000 (15:13 +0200)]
Merge pull request #1949 from ceph/wip-rhcs-cdn-validation

ceph-common: Fix logic for ceph_repository_type

8 years agoceph-common: Fix logic for ceph_repository_type 1949/head
Zack Cerza [Mon, 25 Sep 2017 21:28:27 +0000 (15:28 -0600)]
ceph-common: Fix logic for ceph_repository_type

It's failing if a *valid* choice is specified.

Signed-off-by: Zack Cerza <zack@redhat.com>
8 years agotest: add test making sure rgw http endpoints are enabled 1545/head
Ali Maredia [Fri, 12 May 2017 16:03:47 +0000 (12:03 -0400)]
test: add test making sure rgw http endpoints are enabled

Signed-off-by: Ali Maredia <amaredia@redhat.com>
8 years agoMerge pull request #1943 from ceph/mgr-site v3.0.0rc11
Sébastien Han [Mon, 25 Sep 2017 16:43:32 +0000 (18:43 +0200)]
Merge pull request #1943 from ceph/mgr-site

handler: enhance socket detection