Commit Graph

1615 Commits (860303c26543c18d2a8c9994399526ab6502fb30)
 

Author SHA1 Message Date
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
Andrew Schoen b01756488b Fetch keys from the mons when taking over a cluster
This fixes a bug where mons added to a "taken over" cluster
will get a newly generated key and do not join the cluster.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>

Resolves: rhbz#1357292
2016-07-18 10:06:20 -05:00
Leseb 70285a1bd4 Merge pull request #882 from dang/nmap-fix
Only check ports if NMAP exists
2016-07-18 11:01:37 +02:00
Leseb 5b21bb8110 Merge pull request #886 from ceph/rhbz-1357065
ceph-common: skip default installs on redhat if ISO needs to be used
2016-07-15 19:45:52 +02:00
Alfredo Deza 9cba7735bd ceph-common: skip default installs on redhat if ISO needs to be used
Because the ISO installs would happen later in the playbook.

Signed-off-by: Alfredo Deza <adeza@redhat.com>

Resolves: rhbz#1357065
2016-07-15 13:09:32 -04:00
Leseb 83f59de3b4 Merge pull request #883 from dang/docker-fsid
Allow generating FSID for docker
2016-07-15 11:33:03 +02:00
Leseb 25374b3677 Merge pull request #885 from racpatel/fix-quotes
Adding missing quotes
2016-07-15 11:30:09 +02:00
Rachana Patel d495b3f494 adding missing quotes
fixes: #884
Signed-off-by: Rachana Patel <rachana83.patel@gmail.com>
2016-07-15 00:04:09 -04:00
Daniel Gryniewicz 352824cee7 Allow generating FSID for docker
The docker case wasn't able to generate an FSID, it required it to be
set.  Allow generating it.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2016-07-13 13:19:22 -04:00
Daniel Gryniewicz 71e7aa348e Only check ports if NMAP exists
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2016-07-13 13:17:49 -04:00
Leseb 3e32eebdc1 Merge pull request #865 from PiotrProkop/containerized-osd-with-kv-fix
Fixing containerized deployment with kv
2016-07-13 10:39:49 +02:00
pprokop a11eb03aae Fixing typos 2016-07-13 10:25:05 +02:00
pprokop 69cce9c135 Removing --rm flag from prepare osd 2016-07-13 10:22:17 +02:00