kubevirt / kubevirt

Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
https://kubevirt.io
Apache License 2.0
5.45k stars 1.31k forks source link

tests: WipeTestingInfrastructure() doesn't properly clean nodes #2158

Closed dollierp closed 5 years ago

dollierp commented 5 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

What happened:

After running KubeVirt functional tests with --deploy-testing-infra flag, we can observe some leftovers in the cluster:

What you expected to happen:

All the resources which are created by DeployTestingInfrastructure() function in tests/utils.go cluster should be deleted by WipeTestingInfrastructure().

How to reproduce it (as minimally and precisely as possible):

Run KubeVirt functional tests with --deploy-testing-infra.

Anything else we need to know?:

Most of the leftovers are resources created by manifests/testing/disks-images-provider.yaml.in.

My guess is that Deployments and DaemonSets are deleted but not recursively leaving their Pods behind them.

Environment:

dollierp commented 5 years ago

@slintes, @rmohr could you have a look at this issue and give me some directions about the best way to fix it?