During an automated schema change, db1112 was downtimed but then a replica lag alert fired anyway.
Relevant SAL entries, all 2022-05-28:
18:41 ladsgroup@cumin1001: START - Cookbook sre.hosts.downtime for 6:00:00 on db1112.eqiad.wmnet with reason: Maintenance 18:41 ladsgroup@cumin1001: END (PASS) - Cookbook sre.hosts.downtime (exit_code=0) for 6:00:00 on db1112.eqiad.wmnet with reason: Maintenance 18:41 ladsgroup@cumin1001: dbctl commit (dc=all): 'Depooling db1112 (T309311)', diff saved to https://phabricator.wikimedia.org/P28851 and previous config saved to /var/cache/conftool/dbconfig/20220528-184125-ladsgroup.json
So the six-hour downtime should have lasted until 00:41.
Then, it paged:
19:05:40 <+icinga-wm> PROBLEM - MariaDB Replica Lag: s3 #page on db1112 is CRITICAL: CRITICAL slave_sql_lag Replication lag: 1391.14 seconds https://wikitech.wikimedia.org/wiki/MariaDB/troubleshooting%23Depooling_a_replica
When I opened https://icinga.wikimedia.org/cgi-bin/icinga/extinfo.cgi?type=1&host=db1112&scroll=187 at 19:08, I saw the expected downtime:
When @Marostegui looked at the same time, it appeared to him the host was not downtimed, then he refreshed and it was. None of us changed anything at the time.
Architecturally I can't think of any reason Icinga downtimes would be eventually-consistent or anything like that, but maybe I'm missing something -- is there any reason a page would still fire 24 minutes after the downtime began? Anything we can do to prevent it?
