Currentl, $::mw_primary is just used to alert and a few secondary changes on databases, remove it and use etcd instead.
This was the patch: https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/345346/
Currentl, $::mw_primary is just used to alert and a few secondary changes on databases, remove it and use etcd instead.
This was the patch: https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/345346/
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | akosiaris | T199073 Perform a datacenter switchover (2018-19 Q1) | |||
Resolved | Joe | T199124 Remove all usages of $::mw_primary on puppet | |||
Resolved | Marostegui | T200509 Make sure multi-instance slaves page |
@Volans @Joe @Marostegui I have prepared 2 approaches to achieve this, one is to call conftool on the perl check script and return a CRIT or WARNING based on the host dc: https://gerrit.wikimedia.org/r/345346
The other is to use the conftool puppet function (does it work, I don't see it being in use?) to decide it beforehand and configuring if it is paging or not: https://gerrit.wikimedia.org/r/449742 Please give me any feedback you can about what is the best (or possible) approach to remove all uses of $::mw_primary puppet variable.
Change 461012 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] mediawiki_maintenance: remove mw_primary remnant
Change 461012 merged by Dzahn:
[operations/puppet@production] mediawiki_maintenance: remove mw_primary remnant
Change 461013 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] mediawiki_maintenance: reverse absent/present for inactive motd
Change 461013 merged by Dzahn:
[operations/puppet@production] mediawiki_maintenance: reverse absent/present for inactive motd