Page MenuHomePhabricator

Recommend correct mwdebug server depending on data center switch
Closed, ResolvedPublic

Description

deploy-commands currently tells users to pull changes to mwdebug1002 and test them there, but that server is currently in the read-only datacenter. During the datacenter switch, the tool should recommend mwdebug2001 or mwdebug2002 instead.

Event Timeline

Semi-related: I’d also suggest replacing deploy1002.eqiad.wmnet with the alias deployment.eqiad.wmnet.

Since https://gerrit.wikimedia.org/r/714418 (workaround for T289246), https://noc.wikimedia.org/conf/debug.json lists the active datacenter debug hosts first, and I assume the intention is to keep it that way, i.e. edit debug.json on the next switch back to eqiad (edit: see also T289745). So one fairly simple way to implement this would probably be to download debug.json and use the first listed host for the instructions.

Change 714993 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[labs/tools/deploy-commands@master] Get mwdebug host from noc.wikimedia.org debug.json

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

Semi-related: I’d also suggest replacing deploy1002.eqiad.wmnet with the alias deployment.eqiad.wmnet.

Also done in https://gerrit.wikimedia.org/r/c/labs/tools/deploy-commands/+/714995 (I didn’t want to attach it directly to this task).

You have my sincere apologies, by being a member in phabricator, it doesn't send you an email for each ticket in the project (which I thought it would) so I didn't get any notification for any of these. I'm so sorry.

Change 714993 merged by Ladsgroup:

[labs/tools/deploy-commands@master] Get mwdebug host from noc.wikimedia.org debug.json

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