Closed
Description
What steps did you take and what happened:
- Run
make test
- Wait for it to start running tests.
- Hit CTRL+C
- Find garbage consuming RAM if you have
/tmp
mounted astmpfs
(common practice):
$ du -sh /tmp/k8s_test_framework_*
8.0K /tmp/k8s_test_framework_047782320
8.0K /tmp/k8s_test_framework_062909171
62M /tmp/k8s_test_framework_101046869
62M /tmp/k8s_test_framework_198215715
62M /tmp/k8s_test_framework_263455972
62M /tmp/k8s_test_framework_353449833
62M /tmp/k8s_test_framework_547879397
8.0K /tmp/k8s_test_framework_851006388
8.0K /tmp/k8s_test_framework_971301376
- Sometimes you can also find orphan etcd processes using
pgrep etcd
.
If you run test suite often or you only care about tests passing in a certain package while developing (Makefile currently does not allow specifying which tests to run, but for some packages you must run tests via Makefile to bring up the test suite up), I ended up few times with 10GB+ of data in /tmp
consuming a lot of RAM and many etcd
processes running consuming CPU.
What did you expect to happen:
Test suite ensures that resources are cleaned up after starting.
Environment:
- Cluster-api version: 046ab29
- Minikube/KIND version:
- Kubernetes version: (use
kubectl version
): - OS (e.g. from
/etc/os-release
):
/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]