Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Datadog Engineering 18 min read Incident hardMaster

2023-03-08 incident: A deep dive into the platform-level impact

A Datadog multi-region, multi-cloud outage was traced to a systemd security patch auto-installed by Ubuntu's unattended-upgrades on 22.04 hosts. The patch restarted systemd-networkd, whose v248+ behavior flushes foreign IP routing rules. That flush deleted the source-routing rules Cilium installs for pod traffic on AWS and Azure ENIs, cutting pods off. It also deleted Cilium's relocated priority-100 'lookup local' rule without restoring the default priority-0 rule, so nodes on every cloud lost network connectivity entirely. Because the unattended-upgrade timers fired in the same daily window everywhere, the change bypassed Datadog's progressive, region-by-region node replacement process; the ManageForeignRoutingPolicyRules setting can turn off the flush.

Assumes: Linux policy routing and ip rulesKubernetes pod networkingsystemd unitsCilium CNI basics

Related posts

  • 2023-03-08 incident: A deep dive into the platform-level recovery

    Datadog Engineering hardMaster

    Recovering from Datadog's March 8, 2023 multi-region outage, triggered by a systemd-networkd patch on Ubuntu 22.04 that cut network connectivity for nodes running Cilium, required restoring Kubernetes clusters in a strict order: parent control planes, then child control planes hosted on parent nodes, then application nodes. In EU1 (Google Cloud), impacted nodes could simply be rebooted. Scaling out to drain the backlog then hit a 15,500-instance network peering group limit and full pod subnets in three clusters, which normally run at around 40% IP usage. In US1 (AWS), Auto Scaling groups replaced tens of thousands of instances, so every node had to re-register through Vault, the Kubernetes API, and Cilium ENI/IP allocation via EC2 APIs, stressing those services and slowing the return to Ready capacity.

  • 2023-03-08 incident: A deep dive into our incident response

    Datadog Engineering mediumAdept

    Datadog's March 8, 2023 global outage, triggered by an automatic systemd upgrade that broke Kubernetes nodes across isolated regions on multiple clouds, tested an incident process built on out-of-band monitoring, senior incident-commander rotations, blameless culture and a 30-minute customer update cadence. Response was slowed by the loss of Datadog's own monitoring, intermittent failures of the incident tooling, and the assumption that isolated regions could not fail together, so diagnosing the Kubernetes node failure took over an hour. The response scaled to nearly 100 workstreams and 500-750 engineers in shifts, with workstream leads acting as untrained sub-commanders. Full infrastructure restoration took until 18:00-19:00 UTC.

  • Reconciling the Past: Correcting Records for Unfixed Kubernetes CVEs

    Kubernetes Blog mediumAdept

    The Kubernetes Security Response Committee is correcting CVE records for three old, unfixed vulnerabilities, CVE-2020-8561, CVE-2020-8562 and CVE-2021-25740, which wrongly listed a fixed version. The records now mark all versions as affected, so scanners may start flagging them. The three issues are webhook redirects to internal networks, a DNS TOCTOU proxy bypass, and cross-namespace forwarding via Endpoints. All are design tradeoffs that can't be patched without breaking core functionality. Administrators should mitigate through configuration: keep API server log verbosity below 10 with profiling disabled, run a caching DNS resolver like dnsmasq with min-cache-ttl on control plane nodes, and remove Endpoints/EndpointSlice write access from broad RBAC roles on upgraded clusters.

  • It’s always DNS . . . except when it’s not: A deep dive through gRPC, Kubernetes, and AWS networking

    Datadog Engineering hardMaster

    Errors during rollouts of Datadog's metrics query service looked like DNS failures, but the root cause was VPC connection tracking saturation on AWS ENIs. Clients kept sending SYNs to deleted pods' IPs. Because Cilium had removed the pod's route and IP rule, Linux reverse path filtering treated the packets as Martian and dropped them silently, even though it was configured in loose mode. With no RST or reply, clients' gRPC reconnect logic generated around 90,000 SYNs per old IP in 90 seconds, filling the hypervisor-level VPC conntrack while the Linux conntrack stayed low. The investigation shows how ENA conntrack_allowance_exceeded metrics, VPC Flow Logs aggregated by TCP flag, and kernel route lookups exposed the interaction between NodeLocal DNSCache, Cilium ENI mode, rp_filter and gRPC clients.

  • September 23 incident update

    Deno easyNovice

    A 35-minute outage on September 23, 2021 took down Deno Deploy projects, deno.land/x and /std module downloads, the dashboard and GitHub integration. It was caused by an unexpected Google Cloud Platform maintenance event on the primary Postgres database, during which HA failover to standby replicas is not possible. The database finished maintenance in an unknown failure state and recovered only after an automatic restart, with no data lost. Scheduled database maintenance has been halted while Deno works with GCP on the root cause and on making services resilient to primary database failures.

The quest for software engineering knowledge.

Look:
Layout: