kata-containers / kata-containers

Kata Containers is an open source project and community working to build a standard implementation of lightweight Virtual Machines (VMs) that feel and perform like containers, but provide the workload isolation and security advantages of VMs. https://katacontainers.io/
Apache License 2.0
5.08k stars 1k forks source link

runtime: panic when gathering metrics when running with a remote hypervisor #9826

Closed littlejawa closed 1 week ago

littlejawa commented 2 weeks ago

Description of problem

When running with a remote hypervisor, the shim makes a panic whenever kata-monitor tries to gather metrics.

Expected result

kata-monitor should be able to gather metrics from the shim, for all hypervisors

Actual result

No metrics can be gathered, and a panic stack dump is found in the kata logs

Further information

The "GetVirtioFsPid()" function is called when the shim wants to gather metrics. This function is not implemented for remote hypervisor, and a call to panic() is made instead.