Skip to content

[Bug]: No run metrics on kubernetes backend when privileged: true #3398

@un-def

Description

@un-def

Steps to reproduce

  1. Deploy a minikube cluster: minikube start --driver=kvm2 --container-runtime=containerd 1
  2. Start any run with privileged: true
  3. Check metrics: dstack metrics <run-name>

Actual behaviour

 NAME             STATUS   CPU  MEMORY  GPU
 dev-environment  running  -    -       -

Expected behaviour

No response

dstack version

0.20.0

Server logs

WARNING  dstack._internal.server.background.tasks.process_metrics:139 Failed to connect to job dev-environment-0-0 to collect metrics

Additional information

$ ssh <run-name>
# curl  -w "%{http_code}\n" http://localhost:10999/api/metrics
could not read memory usage: open /sys/fs/cgroup/memory.current: no such file or directory
500

Footnotes

  1. Cannot reproduce with docker container runtime

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions