Page MenuHomePhabricator

Cookbooks that do DNS discovery change should check recdns
Open, MediumPublic

Description

Following the discovery of a powerdns configuration issue during T331541: 14 March 2023 eqiad Service repooling, we discovered that cookbooks that deal with discovery pooling and depooling only check authdns servers.
Ideally, they should check recdns from every site that the correct IPs are returned after wiping cache.

Event Timeline

I am not sure what would be the goal of checking the dns recursors in that situation, as far as running the cookbook would be concerned. Say we wipe the cache and the recdns isn't in our desired state; what can the cookbook do as a corrective measure? Does it make sense to throw an error?

I think it could be more interesting to have a function to go check the state of the dns recursors compared to etcd to run as a monitoring check maybe.