Home
DevCentral
Search
Configure Global Search
Log In
Transactions
T2140
Change Details
Change Details
Old
New
Diff
The wolfplexdb database currently contains tables for several applications, including two sets of tables for MediaWiki: mw_ and mw2_. This creates two consequences: # We need to maintain a dictionary of prefixes by wiki (1) # We can't easily run a maintenance script without using MediaWiki code to read that configuration (2) Applying D3736 is an example of (2) leading to this task creation: ``` $ salt db-B-001 state.apply roles/dbserver-mysql/content [...] --------- ID: dbserver_mysql_user_saas-mw-deploy_privilege_1_interwiki Function: mysql_grants.present Result: True Comment: Grant SELECT, INSERT, DELETE on nasqueron_wiki.interwiki to saas-mw-deploy@172.27.27.10 is already present Started: 12:29:27.597494 Duration: 8.7 ms Changes: ---------- ID: dbserver_mysql_user_saas-mw-deploy_privilege_2_interwiki Function: mysql_grants.present Result: False Comment: Failed to execute: "GRANT SELECT, INSERT, DELETE ON wolfplexdb.interwiki TO saas-mw-deploy@172.27.27.10" (MySQL Error 1146: Table 'wolfplexdb.interwiki' doesn't exist) Started: 12:29:27.606764 Duration: 11.573 ms Changes: [...] ```
The wolfplexdb database currently contains tables for several applications, including two sets of tables for MediaWiki: mw_ and mw2_. This creates a configuration burden: # We need to maintain a dictionary of prefixes by wiki (1) # We can't easily run a maintenance script without using MediaWiki code to read that configuration (2) Plan: # Create a new dedicated `wolfplex_wiki` database # Set wolfplex wiki in read-only mode # Migrate tables to `wolfplex_wiki` # Remove custom wgDBprefix value # Reload php-fpm # Se back wolfplex wiki in read-write mode Other wikis are not in scope of this task, as we currently don't need to run maintenance scripts on those. ____ (1) the configuration in SaaS contains 4 prefixes: ```name=config/Settings.php,lang=php 'wgDBprefix' => [ 'default' => '', // Legacy installations 'arsmagica' => 'arsm_', 'utopia' => 'wiki_', 'wolfplex' => 'mw_', // shared database ], ``` Note this was already tagged as legacy in March 2018 (the comment is from 22c2512). ____ (2) applying D3736: ``` $ salt db-B-001 state.apply roles/dbserver-mysql/content [...] --------- ID: dbserver_mysql_user_saas-mw-deploy_privilege_1_interwiki Function: mysql_grants.present Result: True Comment: Grant SELECT, INSERT, DELETE on nasqueron_wiki.interwiki to saas-mw-deploy@172.27.27.10 is already present Started: 12:29:27.597494 Duration: 8.7 ms Changes: ---------- ID: dbserver_mysql_user_saas-mw-deploy_privilege_2_interwiki Function: mysql_grants.present Result: False Comment: Failed to execute: "GRANT SELECT, INSERT, DELETE ON wolfplexdb.interwiki TO saas-mw-deploy@172.27.27.10" (MySQL Error 1146: Table 'wolfplexdb.interwiki' doesn't exist) Started: 12:29:27.606764 Duration: 11.573 ms Changes: [...] ``` What would be the source of truth if I define the prefix in rOPS too? the saas/mediawiki.sls pillar or the MediaWiki configuration ?
The wolfplexdb database currently contains tables for several applications, including two sets of tables for MediaWiki: mw_ and mw2_. This creates
two
a
con
sequences:
figuration burden:
# We need to maintain a dictionary of prefixes by wiki (1) # We can't easily run a maintenance script without using MediaWiki code to read that configuration (2)
Applying D3736 is an example of (2) leading to this task creation
Plan: # Create a new dedicated `wolfplex_wiki` database # Set wolfplex wiki in read-only mode # Migrate tables to `wolfplex_wiki` # Remove custom wgDBprefix value # Reload php-fpm # Se back wolfplex wiki in read-write mode Other wikis are not in scope of this task, as we currently don't need to run maintenance scripts on those. ____ (1) the configuration in SaaS contains 4 prefixes: ```name=config/Settings.php,lang=php 'wgDBprefix' => [ 'default' => '', // Legacy installations 'arsmagica' => 'arsm_', 'utopia' => 'wiki_', 'wolfplex' => 'mw_', // shared database ], ``` Note this was already tagged as legacy in March 2018 (the comment is from 22c2512). ____ (2) applying D3736
: ``` $ salt db-B-001 state.apply roles/dbserver-mysql/content [...] --------- ID: dbserver_mysql_user_saas-mw-deploy_privilege_1_interwiki Function: mysql_grants.present Result: True Comment: Grant SELECT, INSERT, DELETE on nasqueron_wiki.interwiki to saas-mw-deploy@172.27.27.10 is already present Started: 12:29:27.597494 Duration: 8.7 ms Changes: ---------- ID: dbserver_mysql_user_saas-mw-deploy_privilege_2_interwiki Function: mysql_grants.present Result: False Comment: Failed to execute: "GRANT SELECT, INSERT, DELETE ON wolfplexdb.interwiki TO saas-mw-deploy@172.27.27.10" (MySQL Error 1146: Table 'wolfplexdb.interwiki' doesn't exist) Started: 12:29:27.606764 Duration: 11.573 ms Changes: [...] ```
What would be the source of truth if I define the prefix in rOPS too? the saas/mediawiki.sls pillar or the MediaWiki configuration ?
Continue