Volans has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/351616 )
Change subject: Change the expected message in the db configurations
......................................................................
Change the expected message in the db configurations
This is a consequence of change I5648209dd
Bug: T164177
Change-Id: I58c65427b5d6e10dff13eb5de7f21485b9e3576f
---
M switchdc/stages/t02_start_mediawiki_readonly.py
M switchdc/stages/t08_stop_mediawiki_readonly.py
2 files changed, 16 insertions(+), 16 deletions(-)
Approvals:
jenkins-bot: Verified
Volans: Looks good to me, approved
diff --git a/switchdc/stages/t02_start_mediawiki_readonly.py
b/switchdc/stages/t02_start_mediawiki_readonly.py
index 900bddb..07368c8 100644
--- a/switchdc/stages/t02_start_mediawiki_readonly.py
+++ b/switchdc/stages/t02_start_mediawiki_readonly.py
@@ -16,14 +16,14 @@
message = 'Set MediaWiki in read-only mode in datacenter
{dc_from}'.format(dc_from=dc_from)
filename = 'db-{dc_from}'.format(dc_from=dc_from)
expected = """'readOnlyBySection' => [
-\t's1' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's2' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t'DEFAULT' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes', # s3
-\t's4' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's5' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's6' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-\t's7' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-],"""
+\t's1' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's2' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t'DEFAULT' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.', # s3
+\t's4' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's5' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's6' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+\t's7' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+],""" # noqa: E501
if not mediawiki.check_config_line(filename, expected):
log_message = 'MediaWiki read-only period starts at:
{now}'.format(now=datetime.utcnow())
diff --git a/switchdc/stages/t08_stop_mediawiki_readonly.py
b/switchdc/stages/t08_stop_mediawiki_readonly.py
index f4575a5..f060c00 100644
--- a/switchdc/stages/t08_stop_mediawiki_readonly.py
+++ b/switchdc/stages/t08_stop_mediawiki_readonly.py
@@ -16,14 +16,14 @@
message = 'Set MediaWiki in read-write mode in datacenter
{dc_to}'.format(dc_to=dc_to)
filename = 'db-{dc_to}'.format(dc_to=dc_to)
expected = """'readOnlyBySection' => [
-#\t's1' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's2' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t'DEFAULT' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes', # s3
-#\t's4' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's5' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's6' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-#\t's7' => 'MediaWiki is in read-only mode for maintenance. Please try
again in a few minutes',
-],"""
+#\t's1' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's2' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t'DEFAULT' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.', # s3
+#\t's4' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's5' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's6' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+#\t's7' => 'This wiki is in read-only mode for a datacenter switchover
test. See https://meta.wikimedia.org/wiki/codfw for more information.',
+],""" # noqa: E501
if not mediawiki.check_config_line(filename, expected):
mediawiki.scap_sync_config_file(filename, message)
--
To view, visit https://gerrit.wikimedia.org/r/351616
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I58c65427b5d6e10dff13eb5de7f21485b9e3576f
Gerrit-PatchSet: 3
Gerrit-Project: operations/switchdc
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: EddieGP <[email protected]>
Gerrit-Reviewer: Volans <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits