Commit Graph

1627 Commits (9d296a7121d00b485907627e1f3efe944a48067e)
 

Author SHA1 Message Date
Leseb 68f6d0a52c Merge pull request #926 from jsaintrocc/purge-local-sudo
Fix local_action Requiring Root and Various Small Fixes
2016-08-10 08:53:10 +02:00
James Saint-Rossy c2e347c155 Various small fixes: local_action required root, ansible2 warnings, using file module instead of rm 2016-08-09 22:53:07 -04:00
James Saint-Rossy 5f61ff7867 ceph_devices.yml cleanup and optimization 2016-08-09 18:57:41 -04:00
Sébastien Han b0907aaeea ceph-common: test mon initial members
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-08-09 13:50:57 +02:00
Leseb 3590ed0d9f Merge pull request #910 from font/ntp_enable
Add option to enable ntp
2016-08-09 10:26:57 +02:00
James Saint-Rossy b91aa17053 rebased with master 2016-08-08 17:31:18 -04:00
James Saint-Rossy 402a597fe6 Added initial multisite support 2016-08-08 17:29:56 -04:00
Ivan Font ba92eb48e8 Update ntp atomic plays to use is_atomic variable
Signed-off-by: Ivan Font <ivan.font@redhat.com>
2016-08-08 10:16:48 -07:00
Ivan Font 8c67689d08 Add option to enable ntp
This fixes #845 for containerized deployments. We now also mount the
/etc/localtime volume in the containers in order to synchronize the host
timezone with the container timezone.

Signed-off-by: Ivan Font <ivan.font@redhat.com>
2016-08-08 10:16:48 -07:00
Leseb f72d748bce Merge pull request #891 from ceph/dmcrypt
ceph-osd: add dmcrypt scenario
2016-08-08 16:27:34 +02:00
Sébastien Han 788b75efec ceph-osd: re-arrange osd scenario numbers
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-08-08 15:55:12 +02:00
Leseb 0490b3d70a Merge pull request #920 from mbukatov/drop-disable-swap
remove ability to disable swap
2016-08-08 11:45:14 +02:00
Martin Bukatovic 1e998120f6 remove ability to disable swap
Addressing issue #919.
2016-08-08 11:35:22 +02:00
Leseb 68782732c6 Merge pull request #916 from ktdreyer/client-libvirt
ceph-common: client settings are for libvirt
2016-08-08 10:42:42 +02:00
Leseb b14f5953c7 Merge pull request #918 from jsaintrocc/yum-clean-fix
Fix purge yum cache
2016-08-08 09:58:17 +02:00
James Saint-Rossy 183c6eae9f Added initial multisite support 2016-08-07 23:16:15 -04:00
James Saint-Rossy a4d057f555 Fix purge yum cache 2016-08-04 01:26:59 -04:00
Ken Dreyer 19c3fdc53a ceph-common: client settings are for libvirt
Prior to this change, each ceph cluster node would end up with several
"qemu-client-$pid.log" files owned by root. The [client] section would
capture *all* client activity (for example the "ceph health" command,
etc), not just librbd-in-qemu.

Restrict this section to libvirt clients only so that we don't generate
these spurious log files for other Ceph client traffic.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2016-08-02 10:00:22 -06:00
Leseb c127df7981 Merge pull request #914 from asheplyakov/secure-cluster-913
ceph-mon: fix the loop in `secure the cluster' task
2016-08-01 10:54:08 +02:00
Alexey Sheplyakov 76a3d876ee ceph-mon: fix the loop in `secure the cluster' task
Deployment fails when the ``secure_cluster`` is false:

TASK [ceph-mon : secure the cluster]
*******************************************
fatal: [saceph-mon.vm.ceph.asheplyakov]: FAILED! => {"failed": true, "msg": "'dict object' has no attribute 'stdout_lines'"}
fatal: [saceph-mon2.vm.ceph.asheplyakov]: FAILED! => {"failed": true, "msg": "'dict object' has no attribute 'stdout_lines'"}
fatal: [saceph-mon3.vm.ceph.asheplyakov]: FAILED! => {"failed": true, "msg": "'dict object' has no attribute 'stdout_lines'"}

A conditional include evaluates all included tasks with the (additional)
conditional applied to every task [1]. Thus all tasks from `secure_cluster.yml'
are always evaluated (with an additional 'when: secure_cluster' condition).
The `secure the cluster' task iterates over ``ceph_pools.stdout_lines``
even if ``secure_cluster`` is false: in loops ansible applies conditional
to every item (by design) [2]. However the `collect all the pools' task
is skipped if the very same condition evaluates to false, which leaves
the ``ceph_pools`` undefined, so the `secure the cluster' task fails:

Provide the default (empty) list to avoid the problem.

[1] http://docs.ansible.com/ansible/playbooks_conditionals.html#applying-when-to-roles-and-includes
[2] http://docs.ansible.com/ansible/playbooks_conditionals.html#loops-and-conditionals

Closes: #913

Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
2016-07-29 14:08:12 +03:00
Leseb 7c745cba92 Merge pull request #912 from font/check_cluster
Fix to check if cluster is running
2016-07-29 10:46:52 +02:00
Ivan Font 08e54d7722 Fix to check if cluster is running
Update each role's task to use the respective role's username, image
name, and image tag to check if a container is already running. This was
causing false failures because we were not matching any running
containers and subsequently running checks.yml to check the status of
cluster files being left behind.

Signed-off-by: Ivan Font <ivan.font@redhat.com>
2016-07-28 18:10:49 -07:00
Leseb c34179e492 Merge pull request #911 from font/purge
Updates to containerized purge cluster playbook
2016-07-28 17:29:01 +02:00
Ivan Font 3d2487d2a1 Updates to containerized purge cluster playbook
- Reorder package removal steps
- Remove package dependencies after package is removed

Signed-off-by: Ivan Font <ivan.font@redhat.com>
2016-07-28 07:55:37 -07:00
Leseb 87c7ad97a5 Merge pull request #908 from jsaintrocc/purge-cluster-fix
Fix purge-cluster.yml fail by removing unnecessary ceph_stable_rh_storage_iso_install check.
2016-07-28 14:53:40 +02:00
James Saint-Rossy ba1db2313a Removed check for ceph_stable_rh_storage_iso_install when removing rh_storage.repo as it is can be undefined and cause the playbook to fail. The check is redundant since the task will only remove the repo if it is present. 2016-07-28 00:01:00 -04:00
Leseb 45915e9739 Merge pull request #906 from ktdreyer/rm-ice
remove references to Inktank Ceph Storage
2016-07-26 23:59:08 +02:00
Ken Dreyer 1b7e08ad50 remove references to Inktank Ceph Storage
ICE is beyond end-of-life, and this Inktank GPG key is considered
untrusted (https://access.redhat.com/blogs/766093/posts/2176181)

RIP ICE, we will not miss you.
2016-07-26 13:57:32 -06:00
Leseb 5a26dff9c0 Merge pull request #902 from ceph/journal-default
common: set journal size to 5GB
2016-07-26 13:53:26 +02:00
Sébastien Han b0e152d684 common: set journal size to 5GB
Journal size is not mandatory anymore, a default from 5GB is being
added. A simple warning message will show up if the size is set to
something below 5GB.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-07-26 13:51:32 +02:00
Leseb 80417dba2d Merge pull request #905 from chengweiv5/remove-dup-option
sgdisk: remove duplicated option `-g`
2016-07-26 11:11:20 +02:00
Sébastien Han 2ca0734c38 common: refresh config template module
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-07-26 10:44:12 +02:00
Leseb 77792632c5 Merge pull request #904 from cloudnull/config_template-update
Added option to support case-insensitive keys
2016-07-26 10:26:52 +02:00
Chengwei Yang 1bfab44aa9 sgdisk: remove duplicated option `-g`
Option `-g` of sgdisk is duplicated with `--mbrtogpt`, so lets remove it.

This fix #896

Signed-off-by: Chengwei Yang <yangchengwei@qiyi.com>
2016-07-26 08:55:43 +08:00
Kevin Carter 2aa894167a
Added option to support case-insensitive keys
This change allows keys in INI format to be any case.
The default ConfigParse module sets this to be lower
however in some cases keys are needed to be upper and/or
mixed.

Change-Id: I4e0dedb1b73ee596929bd425af6b0aaefd3a6c27
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
(cherry picked from commit f946160dd0)
2016-07-25 16:39:23 -05:00
Alfredo Deza 30ce663c22 purge-cluster: remove -q flag from grep to prevent broken pipes
Signed-off-by: Alfredo Deza <adeza@redhat.com>

Resolves: rhbz#1339576
2016-07-25 12:16:26 -04:00
Leseb 46720ebf4a Merge pull request #892 from font/purge
Add ability to purge containerized Ceph cluster
2016-07-22 11:00:53 +02:00
Ivan Font 4c0f1c893e Updates to containerized purge cluster playbook
- Update plays to use *_group_name variables that can be overridden by
  user on the command line to use whatever group names desired
- Only gather_facts when necessary to greatly increase speed of playbook
- Prompt user for removing packages on non-atomic hosts only if desired
- Removed unnecessary package-removal
- Zap OSD devices twice to avoid lingering partitions

Signed-off-by: Ivan Font <ivan.font@redhat.com>
2016-07-21 22:36:42 -07:00
Ivan Font ee91c6335a Add ability to purge containerized Ceph cluster
This removes containers, container images, packages, configuration files
and all the data. Removal of container image tasks are tagged with
'remove_img' to skip removal if desired.

Signed-off-by: Ivan Font <ivan.font@redhat.com>
2016-07-21 22:36:42 -07:00
Leseb f63524f1bc Merge pull request #894 from ceph/enhanced-aio
aio: more flexible script
2016-07-20 17:55:35 +02:00
Sébastien Han 8142c461b2 aio: more flexible script
we can now chose the install source

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-07-20 17:53:20 +02:00
Sébastien Han 5978d55d22 ceph-osd: add dmcrypt scenario
add the ability to encrypt osd data store using dm-crypt

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-07-19 18:02:11 +02:00
Leseb 578768cc23 Merge pull request #890 from ceph/arm7
common: prepare arm support
2016-07-19 17:54:31 +02:00
Sébastien Han afb1b16353 common: prepare arm support
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-07-19 17:17:16 +02:00
Leseb b0a26aeeb3 Merge pull request #888 from CSC-IT-Center-for-Science/support-check
Added support for --check flag in ceph-common
2016-07-19 15:10:21 +02:00
Kalle Happonen 3100d81831 Added support for --check flag in ceph-common
The ceph-common role fails when you run ansible with --check. Adding
always_run to a few tasks makes the check go through easier (although
it's not foolproof).
2016-07-19 15:52:45 +03:00
Leseb ce3258898f Merge pull request #879 from ceph/rbd-mirror-docker
rbd-mirror: container deployment support
2016-07-19 12:07:56 +02:00
Leseb 48599c07cc Merge pull request #848 from font/master
Add option to enable ntp
2016-07-18 18:24:54 +02:00
Sébastien Han e6097469bd rbd-mirror: container deployment support
add the ability to deploy a containerized version of the rbd mirror
daemon.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-07-18 18:13:27 +02:00
Leseb 25019b7a91 Merge pull request #887 from ceph/RHBZ-1357292
Fetch keys from the mons when taking over a cluster
2016-07-18 17:35:20 +02:00