Page MenuHomePhabricator

Modify db-mysql to connect to an-redacteddb1001 from cumin hosts
Open, MediumPublic

Description

cumin hosts have a .my.cnf that is configured so we can access clouddb* host just reading it while using db-mysql:

[clientlabsdb]
user     = root
password = XXX

With an-redacteddb1001 we need to tell db-mysql to also read that entry.
@BTullis can you send a patch so that can be fixed, as otherwise an-redactddb1001 can not be accessed from cumin hosts with the current tooling, I believe dbutil.py is what we need to start changing - @Ladsgroup can you confirm?

Details

TitleReferenceAuthorSource BranchDest Branch
Prepare version 0.1.5 releaserepos/sre/wmfdb!17btullisrelease_v_0_1_5main
Configure mysql client preferences for an-redacteddb* hostsrepos/sre/wmfdb!16btullisswitch_redacteddbmain
Customize query in GitLab

Event Timeline

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

I believe dbutil.py is what we need to start changing - @Ladsgroup can you confirm?

Actually I think that file is not used anymore or only used in switchover and some other scripts. You need to change the scripts in wmfdb: https://gitlab.wikimedia.org/repos/sre/wmfdb

BTullis triaged this task as Medium priority.Wed, Jun 26, 10:27 AM

Thanks both. I have created a merge request here: https://gitlab.wikimedia.org/repos/sre/wmfdb/-/merge_requests/16

See if you think it's OK.