Commit Graph

20 Commits (861dd2c3f112f34cfbfb84d27349d16b1b5b372b)

Author SHA1 Message Date
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