summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-08-07 12:06:24 -0400
committerGitHub <noreply@github.com>2017-08-07 12:06:24 -0400
commit4c5906fe7309e82986803f87654df3381bfd1748 (patch)
treeeaab0f75266e845648c5d1adc10eb7a9f979a03e /playbooks
parente9eec293ab67f90c2a5e70f05e33cec65f88b42a (diff)
parentfc905cf14bbfc75e25a0a58fdb3c92f602ce9450 (diff)
downloadopenshift-4c5906fe7309e82986803f87654df3381bfd1748.tar.gz
openshift-4c5906fe7309e82986803f87654df3381bfd1748.tar.bz2
openshift-4c5906fe7309e82986803f87654df3381bfd1748.tar.xz
openshift-4c5906fe7309e82986803f87654df3381bfd1748.zip
Merge pull request #4960 from juanvallejo/jvallejo/verify-disk-memory-before-upgrade-no-flake
Merged by openshift-bot
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