| Summary: | Garbage Collector not removing dead/exited OpenShift Containers | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Eric Jones <erjones> |
| Component: | Node | Assignee: | Andy Goldstein <agoldste> |
| Status: | CLOSED NOTABUG | QA Contact: | DeShuai Ma <dma> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.1.0 | CC: | aos-bugs, erjones, jokerman, mmccomas |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
OpenShift Enterprise 3.1.1.6
|
|
| Last Closed: | 2016-03-28 16:27:45 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: | |
|
Description
Eric Jones
2016-03-22 20:39:58 UTC
I tested this with a modified version of 3.1.1.6 to add some debugging to the container GC logic so I could see what it was doing. It correctly deleted containers to get me down to the maximum number I had specified. Could we please get: - docker ps -a - oc get pod -o yaml - for a container you expect to be deleted, docker inspect <container> Eric, please see comment #1 Customer reported 104 total containers on the node, 4 running. Which means 100 are dead. It sounds like the node has been configured with max dead containers = 100, and it looks like this is working properly. Could we confirm what's in node-config.yaml under kubeletArguments? Could they provide a copy of that section of the config file? Hi Andy,
Customer was unable to provide the full file but they did provide the following:
kubletArguments:
maximum-dead-containers-per-container:
- "1"
maximum-dead-containers:
- "25"
As shown in comment #6, customer had a typo in the config file. kubletArguments Should be kubeletArguments Rather than providing an error/warning message the config file simply skipped over that section and used the default settings (1m, 2, 100). I am closing this bug and I have filed bug #1321622 as an RFE to provide an error/warning if something like this occurs |