Commit Graph

29 Commits (7157afc7cee8105646f278e65622fda54feca08c)

Author SHA1 Message Date
Ben England bd61d19b94 requested format cleanup 2016-04-27 13:36:32 -04:00
Ben England f3355b9b5e cleanup /tmp/rh-storage-repo so newer repos are actually installed 2016-04-26 13:01:01 -04:00
Ben England 4d70b3621f devices var is defined in context of osds role 2016-04-12 09:49:44 -04:00
Ben England 8de1c32bb6 this is how ceph-disk partition really looks 2016-04-11 16:53:45 -04:00
Ben England 5c0d7fc937 rebased 2016-04-08 13:01:11 -04:00
Sébastien Han 2d21f741f5 ceph-rbd-mirror: add new role
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-04-08 12:12:15 +02:00
Ben England 8d03b40e5d more robust, simpler, idempotent 2016-04-06 15:58:17 -04:00
Sébastien Han 450feaac0a ceph: implement cluster name support
we now have the ability to enable the `cluster` variable with a specific
value that will determine the name of the cluster.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-03-30 18:08:38 +02:00
Sébastien Han 1eb12c4026 purge: clean install cache and purge rgw
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-03-29 01:59:24 +02:00
Deepak C Shetty 2d12cc52c3 purge-cluster: Add support for user prompt
Add support for user prompt before purging the cluster. This
ensure that accidental invocation of purge-cluster won't
purge the cluster. Defaults to no purging, unless user either
says 'yes' on the prompt or invokes the playbook with:
`-e ireallymeanit=yes`. This also aligns neatly with ceph cli's
--yes-i-really-mean-it option

Signed-off-by: Deepak C Shetty <deepakcs@redhat.com>
2016-03-25 04:41:34 +00:00
Sébastien Han 53a62f0c89 purge: remove monitor store and bootstrap keys
remove monitor store and bootstrap keys otherwise the play can not
complete

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-03-24 15:11:21 +01:00
Sébastien Han d9fb812029 purge-cluster: add a check for a device list
People who use `osd_auto_discovery` feature will not have a devices
variable populated, so we first check for the existence of devices.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-03-24 13:35:26 +01:00
Sébastien Han 14e957dfec purge-cluster: make stop service work on ubuntu
reworked the stop sequence by using ids instead of calling the 'all'
function which does not seem to be working all the time.

Signed-off-by: Sébastien Han <seb@redhat.com>
2016-03-24 12:10:35 +01:00
Ben England 25865bba24 oops dont need that 2016-03-23 13:52:28 -04:00
Ben England 690fd2c70d many fixes to make purge-cluster.yml reliable 2016-03-22 13:29:00 -04:00
Ben England f67e4e6bf5 only do ls on directory that exists 2016-03-13 09:26:34 -04:00
Ben England f643209999 so non-OSD hosts will not fail 2016-03-05 06:26:50 -05:00
Leseb 9cb5849cd2 Merge pull request #573 from bengland2/purge_cluster_fixes
extend to handle rgws, read in ceph-common defaults
2016-03-03 12:08:27 +01:00
KGoreczny b4f29f1869 Add zap journal devices for raw multi journal scenario
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
2016-02-29 13:22:13 +01:00
Ben England c4d69dafbc extend to handle rgws, read in ceph-common defaults 2016-02-28 06:53:31 -05:00
KGoreczny 6e03f4944b Unify quotation marks
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
2016-02-16 13:41:58 +01:00
KGoreczny 4e2303fce5 Add dnf package support; change condition checks for package managers
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
2016-02-15 16:51:16 +01:00
KGoreczny fc2ace7ba0 Use yum and apt modules instead of package to provide Ansible <2.0 support; fix typo
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
2016-02-15 16:01:00 +01:00
Krzysztof Goreczny bbcdf2fde7 Rewrite purge-cluster playbook
Signed-off-by: Krzysztof Goreczny <krzysztof.goreczny@intel.com>
2016-02-15 14:22:25 +01:00
Sébastien Han 5441b639f7 Do not zap disks on monitors
We don't necessary want to wipe and delete partition of the disks on the
monitor nodes, so we simply perform the operation on the OSD nodes.

Signed-off-by: Sébastien Han <seb@redhat.com>
2015-10-21 00:32:42 +02:00
Sébastien Han 3b49c57834 Move parted to the end of the playbook
If we call partprobe directly after the partition deletion the task will
get stucked.

Signed-off-by: Sébastien Han <seb@redhat.com>
2015-08-03 16:20:03 +02:00
Michael Sambol e6f22b948c Failed_when instead of ignore_errors
Changed ignore_errors to failed_when so the output doesn't show in
red.
2015-07-29 13:35:46 -05:00
leseb e249098f7b Improve purge playbook
We run a zap twice here since we can't combine with_items and
with_sequence yet. This will land in Ansible 2.0. We destroy all the
partitions and re-create new labels as well. We do this twice just
because sometimes one is not sufficient. We also call partprobe to make
sure that the kernel sees the changes.

Signed-off-by: leseb <seb@redhat.com>
2015-07-08 10:34:16 +02:00
Sébastien Han 6aaea43d1c Merge branch 'master' of https://github.com/ceph/ceph-ansible into improve-rolling-upgrade 2015-03-30 17:29:28 +02:00