summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorjuanvallejo <jvallejo@redhat.com>2017-06-06 12:41:49 -0400
committerjuanvallejo <jvallejo@redhat.com>2017-08-02 09:54:06 -0400
commitfc905cf14bbfc75e25a0a58fdb3c92f602ce9450 (patch)
tree41564f655bf5d553bfc03546074a9d94014753fc /playbooks
parentbf0bf407479458206f48885e43d3e1d3a2eab6e1 (diff)
downloadopenshift-fc905cf14bbfc75e25a0a58fdb3c92f602ce9450.tar.gz
openshift-fc905cf14bbfc75e25a0a58fdb3c92f602ce9450.tar.bz2
openshift-fc905cf14bbfc75e25a0a58fdb3c92f602ce9450.tar.xz
openshift-fc905cf14bbfc75e25a0a58fdb3c92f602ce9450.zip
add pre-flight checks to ugrade path
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml13
-rw-r--r--playbooks/common/openshift-cluster/upgrades/v3_6/upgrade.yml4
2 files changed, 17 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml b/playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml
new file mode 100644
index 000000000..497709d25
--- /dev/null
+++ b/playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml
@@ -0,0 +1,13 @@
+---
+- name: Verify Host Requirements
+ hosts: oo_all_hosts
+ roles:
+ - openshift_health_checker
+ vars:
+ - r_openshift_health_checker_playbook_context: upgrade
+ post_tasks:
+ - action: openshift_health_check
+ args:
+ checks:
+ - disk_availability
+ - memory_availability
diff --git a/playbooks/common/openshift-cluster/upgrades/v3_6/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/v3_6/upgrade.yml
index 5b9ac9e8f..da4444867 100644
--- a/playbooks/common/openshift-cluster/upgrades/v3_6/upgrade.yml
+++ b/playbooks/common/openshift-cluster/upgrades/v3_6/upgrade.yml
@@ -70,6 +70,10 @@
# docker is configured and running.
skip_docker_role: True
+- include: ../pre/verify_health_checks.yml
+ tags:
+ - pre_upgrade
+
- include: ../pre/verify_control_plane_running.yml
tags:
- pre_upgrade