]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/log
ceph-ansible.git
8 years agoMerge pull request #1441 from ceph/docs-scenario
Andrew Schoen [Thu, 13 Apr 2017 14:24:11 +0000 (09:24 -0500)]
Merge pull request #1441 from ceph/docs-scenario

docs: scenario files and section descriptions

8 years agodocs: scenario files and section descriptions 1441/head
Alfredo Deza [Wed, 12 Apr 2017 17:12:00 +0000 (13:12 -0400)]
docs: scenario files and section descriptions

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #1442 from ceph/fix-hung-command
Sébastien Han [Thu, 13 Apr 2017 13:21:26 +0000 (15:21 +0200)]
Merge pull request #1442 from ceph/fix-hung-command

ceph-mon: change command to see if rbd exists

8 years agoMerge pull request #1439 from ceph/rhcs-tests
Andrew Schoen [Thu, 13 Apr 2017 12:23:07 +0000 (07:23 -0500)]
Merge pull request #1439 from ceph/rhcs-tests

tests: fix ceph_rhcs setup

8 years agoceph-mon: change command to see if rbd exists 1442/head
Andrew Schoen [Wed, 12 Apr 2017 20:07:10 +0000 (15:07 -0500)]
ceph-mon: change command to see if rbd exists

The previous command was hanging, see this issue:

https://github.com/ceph/ceph-ansible/issues/1440

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: print contents of group_vars/all after modification 1439/head
Andrew Schoen [Wed, 12 Apr 2017 14:23:21 +0000 (09:23 -0500)]
tests: print contents of group_vars/all after modification

This is just nice to see in the test output so we know exactly what
configuration is going to be used.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoceph-common: is ceph_rchs is True do not include install_on_redhat.yml
Andrew Schoen [Wed, 12 Apr 2017 12:55:03 +0000 (07:55 -0500)]
ceph-common: is ceph_rchs is True do not include install_on_redhat.yml

That task includes logic for upstream installs that we do not want to
run when deploying RHCS.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: set needed config in group_vars/all for rhcs testing
Andrew Schoen [Wed, 12 Apr 2017 12:53:49 +0000 (07:53 -0500)]
tests: set needed config in group_vars/all for rhcs testing

Instead of relying on environment variables and --extra-vars simply
modify the group_vars/all that ships with the specific testing scenario
to enable ceph_rchs testing.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: remove CEPH_STABLE environment variable
Andrew Schoen [Wed, 12 Apr 2017 12:50:41 +0000 (07:50 -0500)]
tests: remove CEPH_STABLE environment variable

I'm removing this because when we use an 'rhcs' scenario then we attempt
to set CEPH_STABLE=false as an environment variable. The issue with that
is because the value is coming from an environment variable it is always
treated as a string and ansible treats that as a boolean True. I plan to
set the ceph_stable value with our rhcs_setup.yml playbook instead of
relying on ---extra-vars and environment variables.

Related ansible issue: https://github.com/ansible/ansible/issues/17193

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1435 from dlupescu/purge_cluster_nvme_fix
Sébastien Han [Wed, 12 Apr 2017 09:25:11 +0000 (11:25 +0200)]
Merge pull request #1435 from dlupescu/purge_cluster_nvme_fix

purge-cluster: fix grep match for NVMe and HP Smart Array devices

8 years agoMerge pull request #1431 from mcv21/restricted_assemble
Sébastien Han [Wed, 12 Apr 2017 09:04:25 +0000 (11:04 +0200)]
Merge pull request #1431 from mcv21/restricted_assemble

Only assemble {{ cluster }}.conf and osd.conf

8 years agoMerge pull request #1434 from ceph/docs-missing-static-master
Alfredo Deza [Tue, 11 Apr 2017 13:48:03 +0000 (09:48 -0400)]
Merge pull request #1434 from ceph/docs-missing-static-master

Docs missing static master

8 years agoOnly include cluster.conf and osd.conf when building ceph.conf 1431/head
Matthew Vernon [Tue, 11 Apr 2017 13:33:21 +0000 (14:33 +0100)]
Only include cluster.conf and osd.conf when building ceph.conf

This is the same fix as bc846b7da6d9af16d9611fef7f00df6557f19def
applied to the other part of the code-base that builds ceph.conf (I'd
missed that 349b9ab3e72f188c50b5f84f3ce5ee2fddcfbf80 had duplicated
this code).

Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
8 years agopurge-cluster: fix grep match for NVMe and HP Smart Array devices 1435/head
Daniel Lupescu [Tue, 11 Apr 2017 12:59:49 +0000 (15:59 +0300)]
purge-cluster: fix grep match for NVMe and HP Smart Array devices

raw_device would return invalid block device names for NVMe and HPSA
devices which would cause sgdisk partition deletion to fail

$ echo /dev/nvme1n1p3 | egrep -o '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p){1,2}'
/dev/nvme1n1p

$ echo /dev/cciss/c0d0p2 |  egrep -o '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p){1,2}'
/dev/cciss/c0d0p

8 years agodocs: force an empty _static dir so sphinx is happy 1434/head
Alfredo Deza [Tue, 11 Apr 2017 13:08:08 +0000 (09:08 -0400)]
docs: force an empty _static dir so sphinx is happy

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit aacbbf0efe802e9282793dfc8bf7b175596c5aad)

8 years agodocs: force an empty _templates dir so sphinx is happy
Alfredo Deza [Tue, 11 Apr 2017 13:08:45 +0000 (09:08 -0400)]
docs: force an empty _templates dir so sphinx is happy

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 66a9817e56d69b046425dc04a03869fb9a9d8369)

8 years agoOnly assemble {{ cluster }}.conf and osd.conf
Matthew Vernon [Tue, 11 Apr 2017 12:27:19 +0000 (13:27 +0100)]
Only assemble {{ cluster }}.conf and osd.conf

Ansible's assemble module by default will put all files in the src
directory together into dest. We only want to put {{ cluster }}.conf
and osd.conf together, not anything that might have found its way into
/etc/ceph/ceph.d (e.g. files left by the sysadmin taking backups
before an ansible run). So specify a regexp that matches only those
two files.

Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
8 years agoMerge pull request #1428 from ceph/fix-mgr
Sébastien Han [Tue, 11 Apr 2017 11:53:42 +0000 (13:53 +0200)]
Merge pull request #1428 from ceph/fix-mgr

mon: fix with_items being evaluated before when

8 years agomon: fix with_items being evaluated before when 1428/head
Sébastien Han [Tue, 11 Apr 2017 10:10:55 +0000 (12:10 +0200)]
mon: fix with_items being evaluated before when

Ansible evaluates the 'with_items' before the 'when' so if the inventory
does not have the group declared it'll fail. To fix this, we set an
empty array to make the with_items happy and then evaluate with the
'when'.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1427 from ceph/downstream-testing
Alfredo Deza [Mon, 10 Apr 2017 18:55:30 +0000 (14:55 -0400)]
Merge pull request #1427 from ceph/downstream-testing

tests: updates for rhcs testing

8 years agotests: enable the rhcs-7-extras-nightly repo on test nodes 1427/head
Andrew Schoen [Mon, 10 Apr 2017 18:46:03 +0000 (13:46 -0500)]
tests: enable the rhcs-7-extras-nightly repo on test nodes

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: change centos/atomic-host box name to rhel7
Andrew Schoen [Mon, 10 Apr 2017 18:39:16 +0000 (13:39 -0500)]
tests: change centos/atomic-host box name to rhel7

We'd like to test everything rhcs on the same rhel7 box.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1425 from ceph/bump-kraken v2.2.0
Sébastien Han [Mon, 10 Apr 2017 17:03:39 +0000 (19:03 +0200)]
Merge pull request #1425 from ceph/bump-kraken

common: bump ceph version to kraken

8 years agocommon: bump ceph version to kraken 1425/head
Sébastien Han [Mon, 10 Apr 2017 14:20:49 +0000 (16:20 +0200)]
common: bump ceph version to kraken

Kraken has been out for a couple of weeks now and the CI can test both
Kraken and Jewel.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1377 from ceph/ceph-mgr
Sébastien Han [Mon, 10 Apr 2017 15:50:24 +0000 (17:50 +0200)]
Merge pull request #1377 from ceph/ceph-mgr

mgr: add new role for ceph-mgr

8 years agotest: add mgr bootstrap support 1377/head
Sébastien Han [Thu, 6 Apr 2017 15:26:52 +0000 (17:26 +0200)]
test: add mgr bootstrap support

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agodocker: fix monitors name
Sébastien Han [Tue, 28 Mar 2017 12:15:27 +0000 (14:15 +0200)]
docker: fix monitors name

Prior to this change we were deploying a monitor using tis fqdn name but
we were checking its state and performing actions on it using its
shortname.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agomgr: add new role for ceph-mgr
Sébastien Han [Thu, 16 Mar 2017 09:17:08 +0000 (10:17 +0100)]
mgr: add new role for ceph-mgr

The Ceph Manager daemon (ceph-mgr) runs alongside monitor daemons, to
provide additional monitoring and interfaces to external monitoring and
management systems.

Only works as of the Kraken release.

Co-Authored-By: Guillaume Abrioux <gabrioux@redhat.com>
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1421 from ceph/tox-docs
Alfredo Deza [Mon, 10 Apr 2017 11:56:40 +0000 (07:56 -0400)]
Merge pull request #1421 from ceph/tox-docs

tox-driven docs

8 years agoMerge pull request #1422 from k0ste/newfeature
Sébastien Han [Mon, 10 Apr 2017 09:07:39 +0000 (11:07 +0200)]
Merge pull request #1422 from k0ste/newfeature

ceph-common: persist "disable_transparent_hugepage"

8 years agoceph-common: disable_transparent_hugepage now persist 1422/head
Konstantin Shalygin [Sat, 8 Apr 2017 06:06:18 +0000 (13:06 +0700)]
ceph-common: disable_transparent_hugepage now persist

8 years agodocs: add missing sections/refs in scenarios.rst 1421/head
Alfredo Deza [Fri, 7 Apr 2017 16:18:15 +0000 (12:18 -0400)]
docs: add missing sections/refs in scenarios.rst

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: include testing conventions and testinfra in layout.rst
Alfredo Deza [Fri, 7 Apr 2017 16:17:53 +0000 (12:17 -0400)]
docs: include testing conventions and testinfra in layout.rst

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: fix typo in testing/index.rst
Alfredo Deza [Fri, 7 Apr 2017 16:17:31 +0000 (12:17 -0400)]
docs: fix typo in testing/index.rst

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: include the tests and tox files in the glossary
Alfredo Deza [Fri, 7 Apr 2017 16:17:13 +0000 (12:17 -0400)]
docs: include the tests and tox files in the glossary

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: create a tests doc file
Alfredo Deza [Fri, 7 Apr 2017 16:07:42 +0000 (12:07 -0400)]
docs: create a tests doc file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: create a separate tox doc file
Alfredo Deza [Fri, 7 Apr 2017 16:07:26 +0000 (12:07 -0400)]
docs: create a separate tox doc file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: use glossary for the :doc: directive
Alfredo Deza [Fri, 7 Apr 2017 16:06:36 +0000 (12:06 -0400)]
docs: use glossary for the :doc: directive

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: add the testing glossary in the toctree
Alfredo Deza [Fri, 7 Apr 2017 16:06:16 +0000 (12:06 -0400)]
docs: add the testing glossary in the toctree

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: normalize the glossary vs. contents files
Alfredo Deza [Fri, 7 Apr 2017 16:05:55 +0000 (12:05 -0400)]
docs: normalize the glossary vs. contents files

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: create a separate docs tox.ini
Alfredo Deza [Fri, 7 Apr 2017 15:41:59 +0000 (11:41 -0400)]
docs: create a separate docs tox.ini

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #1412 from guits/fix_handlers
Sébastien Han [Fri, 7 Apr 2017 00:36:27 +0000 (02:36 +0200)]
Merge pull request #1412 from guits/fix_handlers

Common: Fix handlers that are not properly triggered.

8 years agoMerge pull request #1416 from ceph/WingkaiHo-master
Sébastien Han [Fri, 7 Apr 2017 00:36:17 +0000 (02:36 +0200)]
Merge pull request #1416 from ceph/WingkaiHo-master

enable ceph-mon.target service after monitor start

8 years agoMerge pull request #1418 from ceph/docs
Andrew Schoen [Thu, 6 Apr 2017 20:05:40 +0000 (15:05 -0500)]
Merge pull request #1418 from ceph/docs

Docs: an initial take on only test documentation

8 years agodocs: initial structure for tests docs 1418/head
Alfredo Deza [Thu, 6 Apr 2017 17:17:35 +0000 (13:17 -0400)]
docs: initial structure for tests docs

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs create a separate glossary file
Alfredo Deza [Thu, 6 Apr 2017 17:14:45 +0000 (13:14 -0400)]
docs create a separate glossary file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: the master doc is the glossary file
Alfredo Deza [Thu, 6 Apr 2017 17:10:54 +0000 (13:10 -0400)]
docs: the master doc is the glossary file

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: ignore build contents from git
Alfredo Deza [Wed, 5 Apr 2017 16:27:25 +0000 (12:27 -0400)]
docs: ignore build contents from git

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodocs: initial take on doc structure
Alfredo Deza [Wed, 5 Apr 2017 16:27:06 +0000 (12:27 -0400)]
docs: initial take on doc structure

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #1417 from ceph/docker-env-vars
Andrew Schoen [Thu, 6 Apr 2017 17:11:16 +0000 (12:11 -0500)]
Merge pull request #1417 from ceph/docker-env-vars

tests: add docker environment variables to tox.ini

8 years agotests: add docker environment variables to tox.ini 1417/head
Andrew Schoen [Thu, 6 Apr 2017 15:29:16 +0000 (10:29 -0500)]
tests: add docker environment variables to tox.ini

This allows us to control the docker registry, image name and tag name
for the containers.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoenable ceph-mon.target service after monitor start 1416/head
WingkaiHo [Wed, 29 Mar 2017 03:11:04 +0000 (11:11 +0800)]
enable ceph-mon.target service after monitor start

ceph-create-keys unit file was removed here:

* https://github.com/ceph/ceph/commit/8bcb4646b6b9846bb965cdec3ca2a21eb3b26bab
* https://github.com/ceph/ceph/commit/dc5fe8d415858358bd0baf5d8dce0a753f5e0cea

As a consequence the systemctl preset command now fails to run since the
unit does not exist anymore. Due to the redirection in /dev/null we
don't know what's happening.

Ultimately the mon unit doesn't get enabled and the mon service won't
start after reboot.
Removing the old/non-existent unit makes the command succeed now.

ceph fix: https://github.com/ceph/ceph/pull/14226

Signed-off-by: WingkaiHo <sanguosfiang@163.com>
Co-Authored-By: Sébastien Han <seb@redhat.com>
8 years agoCommon: Fix handlers that are not properly triggered. 1412/head
Guillaume Abrioux [Mon, 3 Apr 2017 17:55:11 +0000 (19:55 +0200)]
Common: Fix handlers that are not properly triggered.

Until now, only the first task were executed.
The idea here is to use `listen` statement to be able to notify multiple
handler and regroup all of them in `./handlers/main.yml` as notifying an
included handler task is not possible.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #1415 from dahorak/osd-autodiscovery-fix-check-holders
Sébastien Han [Thu, 6 Apr 2017 08:56:42 +0000 (10:56 +0200)]
Merge pull request #1415 from dahorak/osd-autodiscovery-fix-check-holders

osd autodiscovery mode: fix holders detection

8 years agoosd autodiscovery mode: fix holders detection 1415/head
Daniel Horak [Thu, 6 Apr 2017 07:11:32 +0000 (09:11 +0200)]
osd autodiscovery mode: fix holders detection

Small fix for (probably copy&paste) issue from 42ffe6301.

Signed-off-by: Daniel Horak <dahorak@redhat.com>
8 years agoMerge pull request #1414 from ceph/scenario-alias
Alfredo Deza [Wed, 5 Apr 2017 21:42:06 +0000 (17:42 -0400)]
Merge pull request #1414 from ceph/scenario-alias

tests: add an alias of cluster for the centos7_cluster scenario

8 years agotests: add an alias of cluster for the centos7_cluster scenario 1414/head
Andrew Schoen [Wed, 5 Apr 2017 18:36:51 +0000 (13:36 -0500)]
tests: add an alias of cluster for the centos7_cluster scenario

When testing this downstream it makes more sense for this scenario to be
named just 'cluster' because have 'centos7' in the name is misleading.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1411 from ceph/bump-ansible
Sébastien Han [Wed, 5 Apr 2017 14:03:20 +0000 (16:03 +0200)]
Merge pull request #1411 from ceph/bump-ansible

tests: bump the version of ansible to 2.2.2

8 years agoMerge pull request #1409 from ceph/auto-dm
Sébastien Han [Wed, 5 Apr 2017 13:58:41 +0000 (15:58 +0200)]
Merge pull request #1409 from ceph/auto-dm

osd: autodiscovery mode, use holders to detect device

8 years agoMerge pull request #1410 from ceph/kraken-tests
Sébastien Han [Wed, 5 Apr 2017 11:53:17 +0000 (13:53 +0200)]
Merge pull request #1410 from ceph/kraken-tests

tests: run all tests for jewel and kraken

8 years agotests: bump the version of ansible to 2.2.2 1411/head
Alfredo Deza [Wed, 5 Apr 2017 11:38:58 +0000 (07:38 -0400)]
tests: bump the version of ansible to 2.2.2

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoosd: autodiscovery mode, use holders to detect device 1409/head
Sébastien Han [Tue, 4 Apr 2017 08:33:22 +0000 (10:33 +0200)]
osd: autodiscovery mode, use holders to detect device

As reported in
https://github.com/ceph/ceph-ansible/issues/1403 when devices are held
by lvm and `osd_auto_discovery` is set to true, it's not enough to check
for a partition count = 0 since Ansible does not report.
This patch also looks for 'holders' which in a case of lvm corresponds
to the name of the pv. Now we also look for holders = 0.

Fixes: #1403
Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agotests: run all tests for jewel and kraken 1410/head
Andrew Schoen [Mon, 3 Apr 2017 21:11:55 +0000 (16:11 -0500)]
tests: run all tests for jewel and kraken

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1404 from ceph/check-osd-id
Sébastien Han [Thu, 30 Mar 2017 12:52:58 +0000 (14:52 +0200)]
Merge pull request #1404 from ceph/check-osd-id

playbook: homogenize the way list osd ids

8 years agoplaybook: homogenize the way list osd ids 1404/head
Sébastien Han [Thu, 30 Mar 2017 09:51:38 +0000 (11:51 +0200)]
playbook: homogenize the way list osd ids

Problem: too many different commands to do the same thing. The 'cut'
command on infrastructure-playbooks/purge-cluster.yml was also wrong.
This sed command from osixia in ceph-docker
https://github.com/ceph/ceph-docker/pull/580/ addresses all the
scenarios.

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1399 from guits/fix_ntp_install
Sébastien Han [Wed, 29 Mar 2017 09:50:27 +0000 (11:50 +0200)]
Merge pull request #1399 from guits/fix_ntp_install

Common: Do not install ntp when ntp_service_enabled is false

8 years agoCommon: Do not install ntp when ntp_service_enabled is false 1399/head
Guillaume Abrioux [Tue, 28 Mar 2017 15:45:09 +0000 (17:45 +0200)]
Common: Do not install ntp when ntp_service_enabled is false

ntp is still installed even if ntp_service_enabled is set to false.
That could be a problem if the time synchronization is managed by
something else than ceph-ansible or if you want to use different NTP
implementation as suggested in #1354.

Fixes: #1354
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Signed-off-by: Guits <gabrioux@redhat.com>
8 years agoMerge pull request #1397 from ceph/debug
Sébastien Han [Tue, 28 Mar 2017 10:15:49 +0000 (12:15 +0200)]
Merge pull request #1397 from ceph/debug

vagrant: add debug option

8 years agovagrant: add debug option 1397/head
Sébastien Han [Tue, 28 Mar 2017 10:00:32 +0000 (12:00 +0200)]
vagrant: add debug option

If debug is set to true in vagrant_variables.yml then during the vagrant
provision phase Ansible will run with -vvvv option

Signed-off-by: Sébastien Han <seb@redhat.com>
8 years agoMerge pull request #1386 from WingkaiHo/master
Sébastien Han [Tue, 28 Mar 2017 07:50:39 +0000 (09:50 +0200)]
Merge pull request #1386 from WingkaiHo/master

Create recover-osds-after-ssd-journal-failure.yml

8 years agoMerge pull request #1391 from k0ste/newfeature
Sébastien Han [Mon, 27 Mar 2017 16:48:33 +0000 (18:48 +0200)]
Merge pull request #1391 from k0ste/newfeature

Resolve issues when groups names not in default value.

8 years agoMerge pull request #1396 from guits/fix_1374
Sébastien Han [Mon, 27 Mar 2017 16:13:51 +0000 (18:13 +0200)]
Merge pull request #1396 from guits/fix_1374

BugFix: Fix #1374

8 years agoResolve issues when groups names not in default value. 1391/head
Konstantin Shalygin [Fri, 24 Mar 2017 06:40:15 +0000 (13:40 +0700)]
Resolve issues when groups names not in default value.

8 years agoBugFix: Fix #1374 1396/head
Guillaume Abrioux [Thu, 23 Mar 2017 15:00:02 +0000 (16:00 +0100)]
BugFix: Fix #1374

If a group of hosts is empty, (for instance 'mdss', in case of a
deployment without any mds node), the playbook will fails when trying
to restart service with `"'dict object' has no attribute u'XXX'"` error.

The idea here is to force the `with_items` statements in all included handler tasks
to get at least an empty array.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
8 years agoMerge pull request #1394 from concubidated/master
Sébastien Han [Mon, 27 Mar 2017 09:12:15 +0000 (11:12 +0200)]
Merge pull request #1394 from concubidated/master

ceph-common: update sysctl file location

8 years agoremove the change 1386/head
WingkaiHo [Mon, 27 Mar 2017 03:06:32 +0000 (11:06 +0800)]
remove the change

8 years agoenable ceph-mon.target service after monitor start, fix the ceph monitor service...
WingkaiHo [Mon, 27 Mar 2017 03:01:35 +0000 (11:01 +0800)]
enable ceph-mon.target service after monitor start, fix the ceph monitor service do not start when the ceph reboot

8 years agoMerge https://github.com/ceph/ceph-ansible
WingkaiHo [Mon, 27 Mar 2017 02:50:38 +0000 (10:50 +0800)]
Merge https://github.com/ceph/ceph-ansible

8 years agoceph-common: update sysctl file location 1394/head
Concubidated [Fri, 24 Mar 2017 19:52:37 +0000 (12:52 -0700)]
ceph-common: update sysctl file location

systctl tuning should be in the sysctl.d directory. This creates
a seperation from what values were set specific to ceph, and what
values were set by the operator.

Signed-off-by: Tyler Brekke <tbrekke@redhat.com>
8 years agoMerge pull request #1389 from ceph/downstream-testing
Andrew Schoen [Fri, 24 Mar 2017 15:09:12 +0000 (10:09 -0500)]
Merge pull request #1389 from ceph/downstream-testing

tests: enable testing of rhcs

8 years agotests: change ceph/ubuntu-xenial boxes to rhel7 1389/head
Andrew Schoen [Thu, 23 Mar 2017 13:43:11 +0000 (08:43 -0500)]
tests: change ceph/ubuntu-xenial boxes to rhel7

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: when testing rhcs default CEPH_STABLE=false
Andrew Schoen [Thu, 23 Mar 2017 11:42:43 +0000 (06:42 -0500)]
tests: when testing rhcs default CEPH_STABLE=false

This will keep ceph-ansible from installing the upstream repo file on
the testing nodes.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agocommand module instead shell
WingkaiHo [Thu, 23 Mar 2017 09:38:41 +0000 (17:38 +0800)]
command module instead shell

8 years agoremove service enable
WingkaiHo [Thu, 23 Mar 2017 07:28:14 +0000 (15:28 +0800)]
remove service enable

8 years agobreak it into lines since you already use the string block synta and fix disable...
WingkaiHo [Thu, 23 Mar 2017 06:49:10 +0000 (14:49 +0800)]
break it into lines since you already use the string block synta and fix disable it here and enable again in later task

8 years agoremove this detection and simply rely on {{ cluster }}
WingkaiHo [Thu, 23 Mar 2017 01:22:06 +0000 (09:22 +0800)]
remove this detection and simply rely on {{ cluster }}

8 years agotests: change hosts in first play in rhcs_setup to localhost
Andrew Schoen [Thu, 23 Mar 2017 00:40:34 +0000 (19:40 -0500)]
tests: change hosts in first play in rhcs_setup to localhost

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: set MTU to 1400 on test node interfaces
Andrew Schoen [Wed, 22 Mar 2017 21:44:29 +0000 (16:44 -0500)]
tests: set MTU to 1400 on test node interfaces

In the environment we were testing on, MTU was set to 1500 which causes
download failures of our yum repos. There might be a better way to set
this instead of doing it here in ansible.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds a task to download a repo file for nightly rhel7 packages
Andrew Schoen [Wed, 22 Mar 2017 21:18:57 +0000 (16:18 -0500)]
tests: adds a task to download a repo file for nightly rhel7 packages

This is a url to an actual repo file, not a baseurl to use in a repo.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: fix ceph tools baseurl
Andrew Schoen [Wed, 22 Mar 2017 21:02:50 +0000 (16:02 -0500)]
tests: fix ceph tools baseurl

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: enable the downstream rhcs repos
Andrew Schoen [Wed, 22 Mar 2017 20:42:17 +0000 (15:42 -0500)]
tests: enable the downstream rhcs repos

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: fix task in rhcs_setup that changes vagrant box to rhel7
Andrew Schoen [Wed, 22 Mar 2017 17:38:12 +0000 (12:38 -0500)]
tests: fix task in rhcs_setup that changes vagrant box to rhel7

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: use the rhcs_setup.yml playbook in tox.ini
Andrew Schoen [Wed, 22 Mar 2017 15:14:41 +0000 (10:14 -0500)]
tests: use the rhcs_setup.yml playbook in tox.ini

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds a rhcs_setup.yml playbook
Andrew Schoen [Wed, 22 Mar 2017 15:13:51 +0000 (10:13 -0500)]
tests: adds a rhcs_setup.yml playbook

This is used to configure the test nodes for testing Ret Had Ceph
Storage.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotest: docker dmcrypt tests should use the site.docker.yml playbook
Andrew Schoen [Wed, 22 Mar 2017 14:16:06 +0000 (09:16 -0500)]
test: docker dmcrypt tests should use the site.docker.yml playbook

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agotests: adds a 'rhcs-' prefix to the testing scenarios matrix
Andrew Schoen [Wed, 22 Mar 2017 13:49:49 +0000 (08:49 -0500)]
tests: adds a 'rhcs-' prefix to the testing scenarios matrix

This allows for us to have a copy of the existing testing scenarios with
a 'rhcs-' prefix. We can use that in the tox.ini to take actions we need
to properly test Red Hat Ceph Storage.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
8 years agoMerge pull request #1345 from guits/fix_1338
Sébastien Han [Wed, 22 Mar 2017 11:02:35 +0000 (12:02 +0100)]
Merge pull request #1345 from guits/fix_1338

ceph-docker: fix bootstrap directories permissions

8 years agoceph-docker: fix bootstrap directories permissions 1345/head
Guillaume Abrioux [Fri, 3 Mar 2017 13:58:56 +0000 (14:58 +0100)]
ceph-docker: fix bootstrap directories permissions

Make bootstrap directories permissions work for both RedHat and Debian
os families.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Fix: #1338

8 years agofix some pelling mistakes and wirting format, use full device path for device name
WingkaiHo [Wed, 22 Mar 2017 09:48:34 +0000 (17:48 +0800)]
fix some pelling mistakes and wirting format, use full device path for device name

8 years agoThis assumes ceph as a cluster name. We need detect the name of the cluster
WingkaiHo [Wed, 22 Mar 2017 02:09:06 +0000 (10:09 +0800)]
This assumes ceph as a cluster name. We need detect the name of the cluster