summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-06-13 19:11:43 +0200
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-06-22 14:30:58 +0200
commit75082afc3a2cc9fed1966479dc31946962101488 (patch)
treec1eb7598cdd5a9b88fae4350200b7b096246b475
parent7a643daa7ed629cd904cfb5fd5eec4260f0f1582 (diff)
downloadopenshift-75082afc3a2cc9fed1966479dc31946962101488.tar.gz
openshift-75082afc3a2cc9fed1966479dc31946962101488.tar.bz2
openshift-75082afc3a2cc9fed1966479dc31946962101488.tar.xz
openshift-75082afc3a2cc9fed1966479dc31946962101488.zip
Require at least 1GB in /usr/bin/local and tempdir
During install, those paths are used and require some free space.
-rw-r--r--roles/openshift_health_checker/openshift_checks/disk_availability.py14
-rw-r--r--roles/openshift_health_checker/test/disk_availability_test.py2
2 files changed, 15 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/disk_availability.py b/roles/openshift_health_checker/openshift_checks/disk_availability.py
index dbcbfbc8e..2c4642352 100644
--- a/roles/openshift_health_checker/openshift_checks/disk_availability.py
+++ b/roles/openshift_health_checker/openshift_checks/disk_availability.py
@@ -1,5 +1,6 @@
# pylint: disable=missing-docstring
import os.path
+import tempfile
from openshift_checks import OpenShiftCheck, OpenShiftCheckException, get_var
from openshift_checks.mixins import NotContainerizedMixin
@@ -19,6 +20,19 @@ class DiskAvailability(NotContainerizedMixin, OpenShiftCheck):
'nodes': 15 * 10**9,
'etcd': 20 * 10**9,
},
+ # Used to copy client binaries into,
+ # see roles/openshift_cli/library/openshift_container_binary_sync.py.
+ '/usr/local/bin': {
+ 'masters': 1 * 10**9,
+ 'nodes': 1 * 10**9,
+ 'etcd': 1 * 10**9,
+ },
+ # Used as temporary storage in several cases.
+ tempfile.gettempdir(): {
+ 'masters': 1 * 10**9,
+ 'nodes': 1 * 10**9,
+ 'etcd': 1 * 10**9,
+ },
}
@classmethod
diff --git a/roles/openshift_health_checker/test/disk_availability_test.py b/roles/openshift_health_checker/test/disk_availability_test.py
index de09c51da..0c111a46d 100644
--- a/roles/openshift_health_checker/test/disk_availability_test.py
+++ b/roles/openshift_health_checker/test/disk_availability_test.py
@@ -81,7 +81,7 @@ def test_cannot_determine_available_disk(ansible_mounts, extra_words):
[{
# not enough space on / ...
'mount': '/',
- 'size_available': 0,
+ 'size_available': 2 * 10**9,
}, {
# ... but enough on /var
'mount': '/var',