Page MenuHomePhabricator

Add "do not use this server" login message to non active mwmaint* server
Closed, ResolvedPublic

Description

It would be very useful if the non active mwmaint* server gave the same "do not use this server" message that deploy* hosts do; it would help alleviate some confusion

     _         _   _  ___ _____                    _   _     _
  __| | ___   | \ | |/ _ \_   _|  _   _ ___  ___  | |_| |__ (_)___
/  _` |/ _ \  |  \| | | | || |   | | | / __|/ _ \ | __| '_ \| / __|
| (_| | (_) | | |\  | |_| || |   | |_| \__ \  __/ | |_| | | | \__ \
 \__,_|\___/  |_| \_|\___/ |_|    \__,_|___/\___|  \__|_| |_|_|___/

                              _
 ___  ___ _ ____   _____ _ __| |
/ __|/ _ \ '__\ \ / / _ \ '__| |
\__ \  __/ |   \ V /  __/ |  |_|
|___/\___|_|    \_/ \___|_|  (_)



While it is perfectly working, this is not the active deployment server.

If you want to deploy software, you should /not/ do it from here; it
will probably work, but the next deployer could lose track of any of
your changes. Connect to 'deploy1001.eqiad.wmnet' instead, it will
route you to the correct server.

With deployment replaced with maintenance etc

Event Timeline

I've added the "Datacenter-Switchover-2018" project as this was filed as a response to a question in the staff channel (where the active maintenance server wasn't obvious). Not sure if that's over-stretching the use case of that project, if so, please remove.

Change 461011 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] mediawiki_maintenance: add inactive warning in motd

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

Change 461011 merged by Dzahn:
[operations/puppet@production] mediawiki_maintenance: add inactive warning in motd

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

mwmaint1001 now has a warning, mwmaint2001 does not, as it should.

Linux mwmaint1001 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64
Debian GNU/Linux 9.5 (stretch)
     _         _   _  ___ _____                    _   _     _
  __| | ___   | \ | |/ _ \_   _|  _   _ ___  ___  | |_| |__ (_)___
/  _` |/ _ \  |  \| | | | || |   | | | / __|/ _ \ | __| '_ \| / __|
| (_| | (_) | | |\  | |_| || |   | |_| \__ \  __/ | |_| | | | \__ \
 \__,_|\___/  |_| \_|\___/ |_|    \__,_|___/\___|  \__|_| |_|_|___/

                              _
 ___  ___ _ ____   _____ _ __| |
/ __|/ _ \ '__\ \ / / _ \ '__| |
\__ \  __/ |   \ V /  __/ |  |_|
|___/\___|_|    \_/ \___|_|  (_)


While it is perfectly working, this is not the active maintenance server.

If you want to run maintenance scripts, you should /not/ do it from here.

Please connect to the server in the active data center instead.

mwmaint1001 is a Mediawiki Maintenance Server: pagetriage extension (mediawiki::maintenance::pagetriage)
mwmaint1001 is a Mediawiki Maintenance Server: parser cache purging (mediawiki::maintenance::parsercachepurging)
mwmaint1001 is a noc.wikimedia.org (noc::site)
The last Puppet run was at Tue Sep 18 00:45:24 UTC 2018 (1 minutes ago). 
Debian GNU/Linux 9 auto-installed on Tue May 8 16:49:53 UTC 2018.
Last login: Tue Sep 18 00:24:49 2018 from 2620:0:861:3:208:80:154:86
[mwmaint1001:~] $

Note the only thing different from deployment_server is that we don't actually output the name of the correct server to use.
In https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/457492/ this name was removed from Hiera so i don't think we can easily display it anymore in the template.

ok like this ?

please feel free to reopen if you think it also needs to have the server name and/or have a suggestion how to add it. besides that.. resolved and as close to existing setup for deployment_server as possible

Dzahn closed this task as Resolved.
Dzahn removed a project: Patch-For-Review.
Dzahn moved this task from Backlog to Done on the Datacenter-Switchover board.
Dzahn added subscribers: Joe, Volans, akosiaris.