summaryrefslogtreecommitdiffstats
path: root/roles/etcd_common/tasks
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-09-12 16:48:52 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-09-12 17:05:23 +0200
commit0f032bf5b92688d59b74f5f2900f8be7d9631a20 (patch)
tree75d51b9d4cc2535eac94945c333dc23271ef067d /roles/etcd_common/tasks
parentf4a328ad2dc1d1ba93efa15ac0bf4502bad40079 (diff)
downloadopenshift-0f032bf5b92688d59b74f5f2900f8be7d9631a20.tar.gz
openshift-0f032bf5b92688d59b74f5f2900f8be7d9631a20.tar.bz2
openshift-0f032bf5b92688d59b74f5f2900f8be7d9631a20.tar.xz
openshift-0f032bf5b92688d59b74f5f2900f8be7d9631a20.zip
double the required disk space for etcd backup
Diffstat (limited to 'roles/etcd_common/tasks')
-rw-r--r--roles/etcd_common/tasks/backup.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/roles/etcd_common/tasks/backup.yml b/roles/etcd_common/tasks/backup.yml
index 2bc486d3f..c1580640f 100644
--- a/roles/etcd_common/tasks/backup.yml
+++ b/roles/etcd_common/tasks/backup.yml
@@ -29,7 +29,6 @@
- name: Check current etcd disk usage
shell: du --exclude='*openshift-backup*' -k {{ l_etcd_data_dir }} | tail -n 1 | cut -f1
register: l_etcd_disk_usage
- when: r_etcd_common_embedded_etcd | bool
# AUDIT:changed_when: `false` because we are only inspecting
# state, not manipulating anything
changed_when: false
@@ -39,7 +38,7 @@
msg: >
{{ l_etcd_disk_usage.stdout }} Kb disk space required for etcd backup,
{{ l_avail_disk.stdout }} Kb available.
- when: (r_etcd_common_embedded_etcd | bool) and (l_etcd_disk_usage.stdout|int > l_avail_disk.stdout|int)
+ when: l_etcd_disk_usage.stdout|int*2 > l_avail_disk.stdout|int
# For non containerized and non embedded we should have the correct version of
# etcd installed already. So don't do anything.