Page MenuHomePhabricator

stop using $::site in description field of service.yaml
Closed, ResolvedPublic

Description

In service.yaml each description looks something like:

description: Main MediaWiki application server cluster, appservers.svc.%{::site}.wmnet

However the %{::site} gets expanded on the active Icinga host, and is always eqiad. This is confusing.

Event Timeline

Joe triaged this task as Low priority.Jul 23 2020, 1:35 PM

that description is used in a comment in pybal, where the $::site is evaluated correctly.

The problem here is that it was reused to make the icinga alerts unique AIUI. but we can also drop them of course, I'm just saying this is not just a mistake :)

Any objections to switching "svc.%{::site}.wmnet" to "discovery.wmnet" ?

Is this still relevant? I think we moved all LVS alerts off of icinga by now. But yeah no objection apart from what I stated above.

No, it's not relevant to icinga so much any more (and it's going to be less and less). It's still an interesting informational thing though and the replacement is easy enough that I am just gonna give it a try.

Change 936062 had a related patch set uploaded (by Alexandros Kosiaris; author: Alexandros Kosiaris):

[operations/puppet@production] service: Replace svc.%{::site} with discovery

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

Change 936062 merged by Alexandros Kosiaris:

[operations/puppet@production] service: Replace svc.%{::site} with discovery

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

akosiaris claimed this task.

PCC at https://puppet-compiler.wmflabs.org/output/936062/42341/ says 0 diff for alert hosts, lvs hosts see a comment change in configuration and there arguably the .discovery.wmnet approach is better anyway informationally. The alerting part of this task doesn't apply anymore anyway, I am gonna resolve this.