Uploaded image for project: 'Openshift sandboxed containers'
  1. Openshift sandboxed containers
  2. KATA-2168

`make test` isn't tearing down the test environment when done

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • None
    • None
    • False
    • None
    • False
    • Kata Sprint #236
    • 0
    • 0

      Description

      `make test` is a dependency of `make docker-build` which is used frequently when doing local development. A kube-apiserver and a etcd process are left behind each time. After a number of runs, `make test` starts failing with cryptic errors. The error goes away if the leaked processes are killed manually.

      Steps to reproduce

      1. clone https://github.com/openshift/sandboxed-containers-operator.git
      2. pkill -e 'etcd|kube-apiserver'
      3. run make test

      Expected result

      No matter if the test succeed or fails :

      $ pgrep 'etcd|kube-apiserver'
      $ 
      

      Actual result

      $ pgrep 'etcd|kube-apiserver'
      86592
      86615
      $
      

      Impact

      DoS for anyone or anything heavily relying on `make test`

      Env

      Additional helpful info

              rhgkurz Greg Kurz
              rhgkurz Greg Kurz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: