Page MenuHomePhabricator

Zarcillo's interactions with main-etcd are misconfigured
Closed, ResolvedPublic

Description

After depooling all etcd client traffic from eqiad today for T428495 following the etcd primary switchover yesterday (T433554), we discovered an undocumented client still reading from etcd in eqiad, polling dbconfig-instance entities every 2m from an aux-k8s-eqiad Pod IP.

This looks like zarcillo's data-sync worker. That statically follows the conftool.eqiad.wmnet SRV record domain, which switched over yesterday (with all of the other conftool SRV domains) to be backed by the codfw cluster. Unfortunately, zarcillo configures a network policy that only allows egress to eqiad cluster hosts. What that means is that I cannot simply restart zarcillo to force re-resolution, and indeed this has been subtly broken since then (i.e., a pod simply being rescheduled by k8s would break this).

While I could fix the network policy on my own, there's a second problem: There are pending helmfile diffs for the zarcillo service that appear unsafe to apply, as if there's an addition values file required that exists outside of version control.

In order to unblock the work in T428495, we need either:

  1. To safely fix the network policy; or
  2. An ACK from DBA that it is acceptable for zarcillo to degraded / broken until #1 is done.

Event Timeline

Scott_French added a subscriber: FCeratto-WMF.

Change #1321611 had a related patch set uploaded (by Scott French; author: Scott French):

[operations/deployment-charts@master] zarcillo: Allow egress to etcd in codfw

https://gerrit.wikimedia.org/r/1321611

Change #1321611 merged by jenkins-bot:

[operations/deployment-charts@master] zarcillo: Allow egress to etcd in codfw

https://gerrit.wikimedia.org/r/1321611

Scott_French lowered the priority of this task from High to Medium.Wed, Aug 5, 6:48 PM

Dropping the priority, since this now fixed (and no longer blocks the etcd maintenance). Many thanks for @FCeratto-WMF for hopping in an deploying the network policy change.

Federico - When you get a chance, if you could add zarcillo to the list of clients in https://wikitech.wikimedia.org/wiki/Etcd/Main_cluster#Usage_in_production, that would be greatly appreciated.

Scott_French claimed this task.

Federico has updated the client list in Wikitech, and I'll include zarcillo in my switchover docs refresh for T433554.

With that, I don't think there's anything else explicitly tracked here. Thanks again, Federico!