Skip to content

Interrupting test suite leaves orphan etcd processes and data in /tmp #4278

Closed
@invidian

Description

@invidian

What steps did you take and what happened:

  1. Run make test
  2. Wait for it to start running tests.
  3. Hit CTRL+C
  4. Find garbage consuming RAM if you have /tmp mounted as tmpfs (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
  1. 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions