Bug 1349311
| Summary: | Using EmptyDir as storage option for openshift pods leads to filling up openshift node storage space | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Elvir Kuric <ekuric> |
| Component: | Node | Assignee: | Seth Jennings <sjenning> |
| Status: | CLOSED ERRATA | QA Contact: | DeShuai Ma <dma> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.2.1 | CC: | agoldste, aos-bugs, decarr, eparis, erich, gsharma, jeder, jmencak, jokerman, mmccomas, tdawson, tstclair |
| Target Milestone: | --- | Keywords: | Performance |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Using hostPath for storage could lead to out of disk space.
Consequence: openshift root disk could become full and unusable.
Fix: add support for pod eviction based on disk space.
Result: If a pod using hostPath uses too much space it may be evicted from the node.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-04-12 19:05:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Elvir Kuric
2016-06-23 08:15:54 UTC
The out of disk eviction work that Derek is doing should help here (and might be sufficient to close this out). @Hou Jianwei The disk pressure changes were merged, can you verify that this resolves the usability issue? This is not in origin yet This has been merged into ose and is in OSE v3.4.0.12 or newer. I have tested this on version below, this is fixed: oc v3.4.0.23+24b1a58 kubernetes v1.4.0+776c994 The / is limited after I created a bigger size data: bash-4.3$ dd if=/dev/zero of=/tmp/test bs=3072M count=1 0+1 records in 0+1 records out 2147479552 bytes (2.1 GB) copied, 119.747 s, 17.9 MB/s On the node: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 10G 6.6G 3.5G 66% / So will update status to verified. Thanks. Upstream tracking issue: https://github.com/kubernetes/kubernetes/issues/35406 Upstream PR merged https://github.com/kubernetes/kubernetes/pull/37228 Origin PR opened https://github.com/openshift/origin/pull/12669 This has been merged into ocp and is in OCP v3.5.0.12 or newer. Verified on openshift v3.5.0.14+20b49d0 When pod is terminated, kubelet should remove disk backed emptydir volume. Steps: 1. Create Failed/Succeeded pods with host disk backed emptyDir volume $ oc create -f https://raw.githubusercontent.com/mdshuai/testfile-openshift/master/k8s/terminatedpods/emtydir-host.yaml 2. On node, Make sure disk backed emptyDir volume removed when pod become Failed/Succeeded # ls /var/lib/origin/openshift.local.volumes/pods/${pod.uid}/volumes/kubernetes.io~empty-dir/${volumeName} Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0884 |