ovn-kubernetes icon indicating copy to clipboard operation
ovn-kubernetes copied to clipboard

OVS Process metrics cannot be collected through the PID file location

Open girishmg opened this issue 10 months ago • 3 comments

the ovnkube-node daemon that runs on the node doesn't share the process namespace with the host and therefore will not be able to collect any ovs-vswitchd or ovsdb-server related processes.

@trozet @tssurya @jcaamano another issue in the metrics module

girishmg avatar Apr 10 '24 01:04 girishmg

Deploy Preview for subtle-torrone-bb0c84 ready!

Name Link
Latest commit 726b7d2200641e18ec5a4cf36843db89f8bf3685
Latest deploy log https://app.netlify.com/sites/subtle-torrone-bb0c84/deploys/6615e666a0734b00084aa89c
Deploy Preview https://deploy-preview-4267--subtle-torrone-bb0c84.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Apr 10 '24 01:04 netlify[bot]

@girishmg it does when not running in unprivleged mode? https://github.com/ovn-org/ovn-kubernetes/blob/master/dist/templates/ovnkube-node.yaml.j2#L34

trozet avatar Apr 30 '24 19:04 trozet

when not running in unprivleged

@trozet privileged or unprivileged mode refers to whether ovnkube-node daemon can exec into Pod NS and setup networking on Pod's interface.

In privileged mode ovnkube, CMD_ADD and CMD_DEL occur from within the running ovnkube-node daemon.

In unprivileged mode onvkube, CMD_ADD and CMD_DEL returns a result and the ovn-k8s-cni-overlay binary takes that results and does interface plumbing inside the Pod namespace.

In both the cases, ovnkube-node doesn't share the PID namespace of the host.

girishmg avatar May 01 '24 21:05 girishmg

@girishmg it does when not running in unprivleged mode? https://github.com/ovn-org/ovn-kubernetes/blob/master/dist/templates/ovnkube-node.yaml.j2#L34

You are right. I have fixed the PR accordingly, can you PTAL?

girishmg avatar May 05 '24 06:05 girishmg