Skip to content

feat(monitoring): add ovn-controller stall and disconnect alerts #3892

Description

Background

Incident in Zendesk #369707 / RCA in #369908: ovn-controller exhibited poll-loop stalls of up to 54s on hypervisors with leaked OVS ports, causing OVS disconnects after the 5s inactivity probe and packet loss for VMs on the affected hosts. There is currently no alerting on ovn-controller health.

Related existing issue: #401 (Open vSwitch hangs but still passes readiness tests).

Proposal

Add Prometheus alerts for ovn-controller health, e.g.:

  • OVNControllerPollLoopStalled — long poll-loop intervals
  • OVNControllerSouthboundDisconnected — controller lost SBDB connection
  • OVNControllerCPUSaturated — sustained high CPU on the controller process

This likely requires scraping ovn-controller's Unix-socket stats (e.g. via a small textfile-collector script or a dedicated exporter). The exporter/scrape mechanism should be designed first, then the rules built on top.

Acceptance criteria

  • Decide on metric source (textfile collector vs exporter)
  • Scrape mechanism deployed via Atmosphere
  • Alert rules with promtool tests
  • Runbook entries
  • Release note

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions