Those variables are in the process to be moved to Etcd to make the
configuration dynamic, see [1] and related tasks, hence (re)moving the
problem in the first place. Even in the case that this will not go to
production in time, the hardcoded part in Switchdc can be easily removed,
please find my detailed reply directly in the task in [2].
Riccardo
[1]
On Mon, May 1, 2017 at 1:37 AM, Eddie Greiner-Petter <
wikimedia.org(a)eddie-sh.de> wrote:
Hey,
I had a quick chat with Zppix about how to solve this and we ended up
creating this task instead of just sending in a patch:
https://phabricator.wikimedia.org/T164177
While it looks quite trivial to change the strings in the config files
on the first glance, I noticed that the switchdc script actually
hardcodes this message in the scripts used to set mediawiki ro and back
rw (maybe also somewhere else, haven't checked), which needs us to pay
attention to not break switchdc by exchanging that message. Details are
described on the task, let's continue there.
- Eddie
On 01.05.2017 00:18, Jaime Crespo wrote:
On Sun, Apr 30, 2017 at 9:24 PM, Eddie
Greiner-Petter <
wikimedia.org(a)eddie-sh.de> wrote:
That reminds me that we noticed during switch to
codfw that the message
shown when trying to really edit a page (the mediawiki read-only
message) contains:
The system administrator who locked it offered this explanation:
MediaWiki is in read-only mode for maintenance. Please try again in a
few minutes
which isn't quite informative. Is there a task for changing the "offered
explanation" part? Some hint about the DC switch (and maybe a link to
the meta page) would be better.
The read-only messages are controlled by these strings:
https://phabricator.wikimedia.org/source/mediawiki-config/
browse/master/wmf-config/db-codfw.php;a65f35adbc9d2c8c9a85e956a64661
783d2c973d$645
browse/master/wmf-config/db-eqiad.php;a65f35adbc9d2c8c9a85e956a64661
783d2c973d$664
I think with the pressure of keeping everything up, plus discussing
internally if we should declare a specific amount of time (given it
doesn't
auto-update) we ended up a very generic message.
We are, however, looking
at showing better error messages like on the ticket I reported at
https://phabricator.wikimedia.org/T163455#3199813
Please send a pull request or file a new ticket on Phabricator with the
#operations and #codfw-rollout tags with a proposal and we can definitely
change it by Wednesday.
Thanks,
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l