Page MenuHomePhabricator

UpdateSearchIndexConfig.php fails with "Named cluster (dnsdisc) is not configured for maintenance operations"
Closed, ResolvedPublic1 Estimated Story Points

Description

zabe@deploy1003:~$ mwscript extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php --wiki rkiwiki --cluster=all
Updating cluster dnsdisc...
indexing namespaces...
Named cluster (dnsdisc) is not configured for maintenance operations. Allowed clusters: eqiad, codfw, cloudelastic
zabe@deploy1003:~$

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1177939 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/CirrusSearch@master] UpdateSearchIndexConfig get the writable clusters not all of them

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

dcausse set the point value for this task to 1.

Change #1177939 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@master] UpdateSearchIndexConfig get the writable clusters not all of them

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

Change #1178616 had a related patch set uploaded (by Zabe; author: DCausse):

[mediawiki/extensions/CirrusSearch@wmf/1.45.0-wmf.13] UpdateSearchIndexConfig get the writable clusters not all of them

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

Change #1178617 had a related patch set uploaded (by Zabe; author: DCausse):

[mediawiki/extensions/CirrusSearch@wmf/1.45.0-wmf.14] UpdateSearchIndexConfig get the writable clusters not all of them

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

Change #1178616 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@wmf/1.45.0-wmf.13] UpdateSearchIndexConfig get the writable clusters not all of them

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

Change #1178617 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@wmf/1.45.0-wmf.14] UpdateSearchIndexConfig get the writable clusters not all of them

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

Mentioned in SAL (#wikimedia-operations) [2025-08-13T20:53:12Z] <zabe@deploy1003> Started scap sync-world: Backport for [[gerrit:1178617|UpdateSearchIndexConfig get the writable clusters not all of them (T401633)]], [[gerrit:1178616|UpdateSearchIndexConfig get the writable clusters not all of them (T401633)]]

Mentioned in SAL (#wikimedia-operations) [2025-08-13T20:55:14Z] <zabe@deploy1003> zabe: Backport for [[gerrit:1178617|UpdateSearchIndexConfig get the writable clusters not all of them (T401633)]], [[gerrit:1178616|UpdateSearchIndexConfig get the writable clusters not all of them (T401633)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-08-13T21:01:54Z] <zabe@deploy1003> Finished scap sync-world: Backport for [[gerrit:1178617|UpdateSearchIndexConfig get the writable clusters not all of them (T401633)]], [[gerrit:1178616|UpdateSearchIndexConfig get the writable clusters not all of them (T401633)]] (duration: 08m 41s)

I re-ran this now for rkiwiki (and a few others). Could you check if it worked as intended?

@Zabe thanks for the backport, checked rkiwiki and the main indices got created on the 3 clusters (eqiad/codfw/cloudelastic).
The archive index on the other hand has not been created, the logs do not mention the archive index so somehow it got skipped, something is not yet working as expected.
From mw-script logs I see that you created tlwikisource, zghwiktionary, rkiwiki, minwikibooks and madwikisource, am I missing anything?
I'll fix the script and check these wikis.

Mentioned in SAL (#wikimedia-operations) [2025-08-18T07:43:41Z] <dcausse> T401633: creating archive index on tlwikisource, zghwiktionary, rkiwiki, minwikibooks and madwikisource

@Zabe thanks for the backport, checked rkiwiki and the main indices got created on the 3 clusters (eqiad/codfw/cloudelastic).
The archive index on the other hand has not been created, the logs do not mention the archive index so somehow it got skipped, something is not yet working as expected.
From mw-script logs I see that you created tlwikisource, zghwiktionary, rkiwiki, minwikibooks and madwikisource, am I missing anything?

Nope, that where the ones I did.

I'll fix the script and check these wikis.

Change #1179681 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/CirrusSearch@master] UpdateSearchIndexConfig: don't use the default cluster to infer index types

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

Change #1179681 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@master] UpdateSearchIndexConfig: don't use the default cluster to infer index types

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

Gehel added a project: Essential-Work.