Skip to content

Commit

Permalink
add pre-flight checks to ugrade path
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Jun 14, 2017
1 parent 6df334d commit 73e0a2e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions playbooks/common/openshift-cluster/upgrades/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@
set_fact:
os_firewall_use_firewalld: false
when: "'Active: active' in service_iptables_status.stdout"

- include: ./pre/verify_memory_and_diskspace.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _print_check_failure_summary(self, failed_checks, context):
'Variables can be set in the inventory or passed on the\n'
'command line using the -e flag to ansible-playbook.\n'
).format(playbook=self._playbook_file, checks=checks)
if context in ['pre-install', 'health']:
if context in ['pre-install', 'upgrade', 'health']:
summary = (
'\n'
'You may choose to configure or disable failing checks by\n'
Expand Down

0 comments on commit 73e0a2e

Please sign in to comment.