Today while deploying https://gerrit.wikimedia.org/r/537220 (for T223602), I accidentally forgot one extra level of splitting up.
The commit essentially does three things: Create IS.php, update CS.php reference from VS.php to IS.php, delete VS.php.
I synced it as:
- scap sync-file wmf-config/IS.php '3373247e123b53 - create new file'
- scap sync-dir wmf-config/
What I should have done is:
- scap sync-file wmf-config/IS.php '3373247e123b53 - create new file'
- scap sync-file wmf-config/CS.php
- scap sync-dir wmf-config/ (implicitly deletes old VS.php)
I thought forwards but forgot to think backwards as well. While all servers had the new file, due to the race in rsync deleting VS.php and updating CS.php, it were possible for servers to have VS.php delete first (thus fatalling all MW backend traffic), and receive the update to CS.php afterwards.
This is exactly what happened. There wasn't anything I could or had to do about it, as by the end of the sync it would all be fine again.
However, during the 30-40 seconds of the last step of the deploy, Logstash recorded 1,964 fatal errors due to VariantSettings.php not existing.
Looks like this wasn't the first time it has happened, either:
So, let's set this option inside Scap!