containerized-data-importer: CDI Upload Server pod gets terminated by OOM Killer on Talos v1.9.x

What happened: Using the command k virt image-upload dv oi-hipster-gui-20240426-iso --image-path=./OI-hipster-gui-20240426.iso --size 3Gi --volume-mode filesystem --access-mode ReadWriteOnce --force-bind --uploadproxy-url=https://172.16.8.132:443/ --insecure any upload gets terminated, returning unexpected return value 502, error in upload-proxy: http: proxy error: write tcp 10.244.0.168:33826->10.99.16.191:443: write: connection reset by peer.

Looking into Talos’ dashboard I saw that the cdi-upload-server container was killed by oom_reaper.

I get this every single time I try to upload this image.

What you expected to happen: I expected the transfer to go successfully

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

  1. Issue the command I mentioned.
  2. The transfer starts and gets interrupted with the above-mentioned error.

Additional context: The machine has more than enough RAM available to do the job (or at least I think so): image

I have tried exposing the upload proxy both as a LoadBalancer and through a TLSRoute (since I initially thought the gateway controller was acting up and not OOM).

I have a dump of the error message: dmesg-oom.txt

Environment:

  • CDI version (use kubectl get deployments cdi-deployment -o yaml): v1.61.0
  • Kubernetes version (use kubectl version): v1.29.11
  • DV specification: N/A
  • Cloud provider or hardware configuration: Intel Core i5-8600K, 24GB of DDR4 RAM, bare-metal Talos installation
  • OS (e.g. from /etc/os-release): Talos Linux v1.9.0
  • Kernel (e.g. uname -a): 6.12.5-talos
  • Install tools: I installed CDI following the guide at https://kubevirt.io/user-guide/storage/containerized_data_importer/#install-cdi
  • Others: N/A

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 33 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Hello, very glad to report I had a successful import with a 10Gb link after upgrading to 1.9.5:

Image

Patch is in Talos so I imagine 1.9.5 will have it. I’ll be testing when that comes out.