Page MenuHomePhabricator

Prepare and check storage layer for liwikinews
Closed, ResolvedPublic

Description

The new wiki will be public.

Event Timeline

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

Please ping me (or anybody in the persistance team) when the wiki is created, and I can do the sanitzation

Banyek triaged this task as Medium priority.Sep 28 2018, 2:39 PM
Marostegui changed the task status from Open to Stalled.Oct 3 2018, 8:34 AM
Marostegui claimed this task.
Marostegui subscribed.

We are doing some maintenance on s3, moving wikis around - please ask DBA before creating this wikis (if they will be created before the switch back to eqiad - which is scheduled for 10th Oct)
Assigning it to me, to indicate it is blocked on me/DBA

Marostegui changed the task status from Stalled to Open.Oct 11 2018, 6:11 AM
Marostegui removed Marostegui as the assignee of this task.

This can now proceed whenver you guys want.

Banyek added subscribers: GTirloni, Bstorm, bd808.

ready for the views creation

@Banyek did GRANT this wiki into the labsdb user role grants? If not, the views will fail to be created

That and create the _p db. Silly bugs.

@Banyek did GRANT this wiki into the labsdb user role grants? If not, the views will fail to be created

No I did not. I'll look after

@Marostegui I found T178128 but it's still not clear how to GRANT this wiki (well new wikis) Could you show/tell me some more information?

So what @Bstorm refers to is to create first the views` DB (xxx_p) once that is done and due to: https://jira.mariadb.org/browse/MDEV-16466 we need to add the grants manually like this:
GRANT SELECT, SHOW VIEW ON `liwikinews\_p`.* TO 'labsdbuser';

root@labsdb1011.eqiad.wmnet[(none)]> set session sql_log_bin=0; create database liwikinews_p;
Query OK, 0 rows affected (0.00 sec)
root@labsdb1011.eqiad.wmnet[(none)]> set session sql_log_bin=0; GRANT SELECT, SHOW VIEW ON `liwikinews\_p`.* TO 'labsdbuser';
Query OK, 0 rows affected (0.00 sec)
root@labsdb1011.eqiad.wmnet[(none)]> pager grep liwikinews
PAGER set to 'grep liwikinews'
root@labsdb1011.eqiad.wmnet[(none)]> show grants for labsdbuser;
| GRANT SELECT, SHOW VIEW ON `liwikinews\_p`.* TO 'labsdbuser'             |
900 rows in set (0.00 sec)

@Bstorm I have done all that for this wiki, can you check creating the views now on all the hosts?

All set. Verified I can connect and select from cloud systems.